public class DefaultDeclarativeQualifiedNameProvider extends IQualifiedNameProvider.AbstractImpl
QualifiedName qualifiedName(MyType ele)SimpleCache. Under
some circumstances, this may downgrade the performance.
Clients may want to override computeFullyQualifiedName(EObject) or getOrComputeFullyQualifiedName(EObject).IQualifiedNameProvider.AbstractImpl| Constructor and Description |
|---|
DefaultDeclarativeQualifiedNameProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected QualifiedName |
computeFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
Computes the fully qualified name for the given object, if any.
|
protected QualifiedName |
computeFullyQualifiedNameFromNameAttribute(org.eclipse.emf.ecore.EObject obj)
Tries to read an
EAttribute name from the
given object and appends that to its container's qualified name. |
protected IQualifiedNameConverter |
getConverter()
Returns the
IQualifiedNameConverter that is used to convert a string which was read from a model
to an instance of QualifiedName. |
QualifiedName |
getFullyQualifiedName(org.eclipse.emf.ecore.EObject obj) |
protected QualifiedName |
getOrComputeFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
Tries to obtain the FQN of the given object from the
cache. |
protected com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String> |
getResolver() |
protected QualifiedName |
qualifiedName(java.lang.Object ele)
Default for qualifiedName dispatcher.
|
applypublic DefaultDeclarativeQualifiedNameProvider()
protected com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String> getResolver()
public QualifiedName getFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
null if this IQualifiedNameProvider is not
responsible or if the given object doesn't have qualified name.protected QualifiedName getOrComputeFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
cache. If it is absent,
it computes a new name.computeFullyQualifiedName(EObject)protected QualifiedName qualifiedName(java.lang.Object ele)
protected IQualifiedNameConverter getConverter()
IQualifiedNameConverter that is used to convert a string which was read from a model
to an instance of QualifiedName.protected QualifiedName computeFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
PolymorphicDispatcher on the method name qualifiedName(Object).
If there is no such reflective name found, it tries to read an EAttribute name from the
given object and appends that to its containers qualified name.computeFullyQualifiedNameFromNameAttribute(EObject)protected QualifiedName computeFullyQualifiedNameFromNameAttribute(org.eclipse.emf.ecore.EObject obj)
EAttribute name from the
given object and appends that to its container's qualified name.