Package com._1c.g5.v8.dt.core.naming
Class BaseFqnProviderDelegate
- java.lang.Object
-
- com._1c.g5.v8.dt.core.naming.BaseFqnProviderDelegate
-
- All Implemented Interfaces:
IFqnProviderDelegate
- Direct Known Subclasses:
RightsQualifiedNameProvider
public abstract class BaseFqnProviderDelegate extends Object implements IFqnProviderDelegate
Base class for implementors ofIFqnProviderDelegate
-
-
Constructor Summary
Constructors Constructor Description BaseFqnProviderDelegate(org.eclipse.emf.ecore.EPackage... supportedPackages)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.naming.QualifiedName
getContainedBmObjectFqn(IBmObject object)
Gets FQN of the specified contained BM object.protected abstract org.eclipse.xtext.naming.QualifiedName
getFullyQualifiedNameInternal(org.eclipse.emf.ecore.EObject object)
Descendant classes implement this method to provide specific logic for generating qualified names for contained BM objects and non-BM objects.org.eclipse.xtext.naming.QualifiedName
getNonBmObjectFqn(org.eclipse.emf.ecore.EObject object)
Gets FQN of the specified non-BM object.Collection<org.eclipse.emf.ecore.EPackage>
getSupportedPackages()
Gets the collections of the supported packages.
-
-
-
Constructor Detail
-
BaseFqnProviderDelegate
public BaseFqnProviderDelegate(org.eclipse.emf.ecore.EPackage... supportedPackages)
Constructs a new instance.- Parameters:
supportedPackages
- the packages supported by this delegate. Note that at least one packages must be specified, otherwise an exception will be thrown.
-
-
Method Detail
-
getSupportedPackages
public final Collection<org.eclipse.emf.ecore.EPackage> getSupportedPackages()
Gets the collections of the supported packages.- Specified by:
getSupportedPackages
in interfaceIFqnProviderDelegate
- Returns:
- the collection of the supported packages.
-
getContainedBmObjectFqn
public final org.eclipse.xtext.naming.QualifiedName getContainedBmObjectFqn(IBmObject object)
Gets FQN of the specified contained BM object.- Specified by:
getContainedBmObjectFqn
in interfaceIFqnProviderDelegate
- Parameters:
object
- the object, may not benull
.- Returns:
- the qualified name or
null
.
-
getNonBmObjectFqn
public final org.eclipse.xtext.naming.QualifiedName getNonBmObjectFqn(org.eclipse.emf.ecore.EObject object)
Gets FQN of the specified non-BM object.- Specified by:
getNonBmObjectFqn
in interfaceIFqnProviderDelegate
- Parameters:
object
- the object, may not benull
.- Returns:
- the qualified name or
null
.
-
getFullyQualifiedNameInternal
protected abstract org.eclipse.xtext.naming.QualifiedName getFullyQualifiedNameInternal(org.eclipse.emf.ecore.EObject object)
Descendant classes implement this method to provide specific logic for generating qualified names for contained BM objects and non-BM objects.- Parameters:
object
- the object to generate qualified name for, may not benull
.- Returns:
- qualified name or
null
.
-
-