Package com._1c.g5.v8.dt.xdto.resource
Class XdtoLinkProvider
java.lang.Object
com._1c.g5.v8.dt.xdto.resource.XdtoLinkProvider
- All Implemented Interfaces:
IBmExternalUriResolver
IBmExternalUriResolver implementation for Xdto-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectgetObject(org.eclipse.emf.common.util.URI uri) Resolves the specified URI.org.eclipse.emf.ecore.resource.ResourcegetResource(org.eclipse.emf.common.util.URI uri) Ask link providers to obtain resource matched with specified URI.booleanDesignates that resources being returned by this resolver remain as-is (with original resource set and so on) and not being copied to the session.booleansupports(org.eclipse.emf.common.util.URI uri) Checks if the specified URI is supported.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.bm.core.IBmExternalUriResolver
resetCaches
-
Constructor Details
-
XdtoLinkProvider
public XdtoLinkProvider()
-
-
Method Details
-
getResource
public org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri) Ask link providers to obtain resource matched with specified URI. Used to provider resources for system types.- Specified by:
getResourcein interfaceIBmExternalUriResolver- Parameters:
uri- The resource URI. May not benull- Returns:
- the loaded resource if found, otherwise
null.
-
supports
public boolean supports(org.eclipse.emf.common.util.URI uri) Description copied from interface:IBmExternalUriResolverChecks if the specified URI is supported.- Specified by:
supportsin interfaceIBmExternalUriResolver- Parameters:
uri- The URI to run the check against. May not benull.- Returns:
trueif the URI is supported by this resolver, otherwisefalse.
-
getObject
public org.eclipse.emf.ecore.EObject getObject(org.eclipse.emf.common.util.URI uri) Description copied from interface:IBmExternalUriResolverResolves the specified URI.- Specified by:
getObjectin interfaceIBmExternalUriResolver- Parameters:
uri- The URI. May not benull.- Returns:
- the object identified by the specified URI if found, otherwise
null.
-
isPassthrough
public boolean isPassthrough()Description copied from interface:IBmExternalUriResolverDesignates that resources being returned by this resolver remain as-is (with original resource set and so on) and not being copied to the session. This approach can be used by complex resource providers requiring specific support from original resource sets (like Xtext).
BM could use such link providers for seamless URI resolution to external resources that shouldn't be cached out in the BM resource set.- Specified by:
isPassthroughin interfaceIBmExternalUriResolver- Returns:
trueif this resolver works in the passthrough mode;falseotherwise.
-