org.eclipse.xtext.naming
Class DefaultDeclarativeQualifiedNameProvider

java.lang.Object
  extended by org.eclipse.xtext.naming.IQualifiedNameProvider.AbstractImpl
      extended by org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider
All Implemented Interfaces:
com.google.common.base.Function<org.eclipse.emf.ecore.EObject,QualifiedName>, IQualifiedNameProvider

public class DefaultDeclarativeQualifiedNameProvider
extends IQualifiedNameProvider.AbstractImpl

Author:
Sven Efftinge - Initial contribution and API, Jan Koehnlein computes the fully qualified name of an EObject by first invoking a method
String qualifiedName(MyType ele)
reflectively. And if no such method is found looks up a property 'name' and invokes the value and concatenates it to the eContainer's qualifiedName separated by a delimiter, which is returned by #getDelimiter()

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.naming.IQualifiedNameProvider
IQualifiedNameProvider.AbstractImpl
 
Constructor Summary
DefaultDeclarativeQualifiedNameProvider()
           
 
Method Summary
protected  IQualifiedNameConverter getConverter()
           
 QualifiedName getFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
           
protected  com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String> getResolver()
           
 
Methods inherited from class org.eclipse.xtext.naming.IQualifiedNameProvider.AbstractImpl
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

DefaultDeclarativeQualifiedNameProvider

public DefaultDeclarativeQualifiedNameProvider()
Method Detail

getResolver

protected com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String> getResolver()

getFullyQualifiedName

public QualifiedName getFullyQualifiedName(org.eclipse.emf.ecore.EObject obj)
Returns:
the qualified name for the given object, null if this IQualifiedNameProvider is not responsible or if the given object doesn't have qualified name.

getConverter

protected IQualifiedNameConverter getConverter()