Class RightsSymbolicNameServiceDelegate
java.lang.Object
com._1c.g5.v8.dt.internal.rights.naming.RightsSymbolicNameServiceDelegate
- All Implemented Interfaces:
ISymbolicNameServiceDelegate
public final class RightsSymbolicNameServiceDelegate
extends Object
implements ISymbolicNameServiceDelegate
Implementation of
ISymbolicNameServiceDelegate
contributed by 'rights' bundle.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.util.URI
convertCommonSymbolicNameToUri
(String name, org.eclipse.emf.ecore.EClass targetType, IBmEngine engine) Converts common symbolic name to URI.org.eclipse.emf.common.util.URI
convertContextSpecificSymbolicNameToUri
(String name, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EReference contextFeature, String contextTopObjectFqn, IBmEngine engine) Converts context specific symbolic name to URI.convertUriToCommonSymbolicName
(org.eclipse.emf.common.util.URI targetUri) Converts URI to common symbolic name.convertUriToContextSpecificSymbolicName
(org.eclipse.emf.common.util.URI targetUri, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EReference contextFeature) Converts URI to context specific symbolic name.generateCommonSymbolicName
(org.eclipse.emf.ecore.EObject targetObject) Generates common symbolic name.generateContextSpecificSymbolicName
(org.eclipse.emf.ecore.EObject targetObject, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EReference contextFeature) Generates context specific symbolic name.
-
Constructor Details
-
RightsSymbolicNameServiceDelegate
public RightsSymbolicNameServiceDelegate()
-
-
Method Details
-
convertCommonSymbolicNameToUri
public org.eclipse.emf.common.util.URI convertCommonSymbolicNameToUri(String name, org.eclipse.emf.ecore.EClass targetType, IBmEngine engine) Description copied from interface:ISymbolicNameServiceDelegate
Converts common symbolic name to URI.- Specified by:
convertCommonSymbolicNameToUri
in interfaceISymbolicNameServiceDelegate
- Parameters:
name
- The symbolic name to convert, may not benull
.targetType
- The target object type, may benull
.engine
- The BM engine, may not benull
.- Returns:
- URI or
null
if the name is not supported by this delegate.
-
convertContextSpecificSymbolicNameToUri
public org.eclipse.emf.common.util.URI convertContextSpecificSymbolicNameToUri(String name, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EReference contextFeature, String contextTopObjectFqn, IBmEngine engine) Description copied from interface:ISymbolicNameServiceDelegate
Converts context specific symbolic name to URI.- Specified by:
convertContextSpecificSymbolicNameToUri
in interfaceISymbolicNameServiceDelegate
- Parameters:
name
- The symbolic name to convert, may not benull
.contextObject
- The context object, may not benull
.contextFeature
- The context feature, may not benull
.contextTopObjectFqn
- The context top object FQN, may not benull
.engine
- The BM engine, may not benull
.- Returns:
- URI or
null
if the context object is not supported by this delegate or no specific logic is required in this context.
-
generateCommonSymbolicName
Description copied from interface:ISymbolicNameServiceDelegate
Generates common symbolic name.- Specified by:
generateCommonSymbolicName
in interfaceISymbolicNameServiceDelegate
- Parameters:
targetObject
- The object to generate symbolic name for, may not benull
.- Returns:
- symbolic name or
null
if the target object is not supported by this delegate or the object does not have a common symbolic name.
-
convertUriToCommonSymbolicName
Description copied from interface:ISymbolicNameServiceDelegate
Converts URI to common symbolic name.- Specified by:
convertUriToCommonSymbolicName
in interfaceISymbolicNameServiceDelegate
- Parameters:
targetUri
- The URI to convert, may not benull
.- Returns:
- symbolic name or
null
if the URI is not supported by this delegate or it cannot be converted to a symbolic name (e.g. the target object does not have a symbolic name).
-
generateContextSpecificSymbolicName
public String generateContextSpecificSymbolicName(org.eclipse.emf.ecore.EObject targetObject, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EReference contextFeature) Description copied from interface:ISymbolicNameServiceDelegate
Generates context specific symbolic name.- Specified by:
generateContextSpecificSymbolicName
in interfaceISymbolicNameServiceDelegate
- Parameters:
targetObject
- The object to generate symbolic name for, may not benull
.contextObject
- The context object, may not benull
.contextFeature
- The context feature, may not benull
.- Returns:
- symbolic name or
null
if the context object is not supported by this delegate or no specific logic is required in this context.
-
convertUriToContextSpecificSymbolicName
public String convertUriToContextSpecificSymbolicName(org.eclipse.emf.common.util.URI targetUri, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EReference contextFeature) Description copied from interface:ISymbolicNameServiceDelegate
Converts URI to context specific symbolic name.- Specified by:
convertUriToContextSpecificSymbolicName
in interfaceISymbolicNameServiceDelegate
- Parameters:
targetUri
- The URI to convert, may not benull
.contextObject
- The context object, may not benull
.contextFeature
- The context feature, may not benull
.- Returns:
- symbolic name or
null
if the context object is not supported by this delegate or no specific logic is required in this context.
-