Package com._1c.g5.v8.dt.ws.resource
Class WSDefinitionLinkProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.ws.resource.WSDefinitionLinkProvider
-
- All Implemented Interfaces:
IBmExternalUriResolver
public class WSDefinitionLinkProvider extends Object implements IBmExternalUriResolver
IBmLinkProvider
implementation for WSDefinition
-
-
Constructor Summary
Constructors Constructor Description WSDefinitionLinkProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObject
getObject(org.eclipse.emf.common.util.URI uri)
Resolves the specified URI.org.eclipse.emf.ecore.resource.Resource
getResource(org.eclipse.emf.common.util.URI uri)
Ask link providers to obtain resource matched with specified URI.boolean
isPassthrough()
Designates that resources being returned by this resolver remain as-is (with original resource set and so on) and not being copied to the session.boolean
supports(org.eclipse.emf.common.util.URI uri)
Checks if the specified URI is supported.
-
-
-
Method Detail
-
getResource
public org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri)
Description copied from interface:IBmExternalUriResolver
Ask link providers to obtain resource matched with specified URI. Used to provider resources for system types.- Specified by:
getResource
in 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:IBmExternalUriResolver
Checks if the specified URI is supported.- Specified by:
supports
in interfaceIBmExternalUriResolver
- Parameters:
uri
- The URI to run the check against. May not benull
.- Returns:
true
if 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:IBmExternalUriResolver
Resolves the specified URI.- Specified by:
getObject
in 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:IBmExternalUriResolver
Designates 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:
isPassthrough
in interfaceIBmExternalUriResolver
- Returns:
true
if this resolver works in the passthrough mode;false
otherwise.
-
-