org.eclipse.xtext.ecore
Class EcoreResourceDescriptionStrategy

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy
      extended by org.eclipse.xtext.ecore.EcoreResourceDescriptionStrategy
All Implemented Interfaces:
IDefaultResourceDescriptionStrategy

public class EcoreResourceDescriptionStrategy
extends DefaultResourceDescriptionStrategy

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
static java.lang.String NS_URI_INDEX_ENTRY
           
 
Constructor Summary
EcoreResourceDescriptionStrategy()
           
 
Method Summary
 boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, IAcceptor<IEObjectDescription> acceptor)
          Calculates the IEObjectDescriptions for eObject and passes them to the acceptor.
protected  boolean createEObjectDescriptions(IQualifiedNameProvider qualifiedNameProvider, boolean isNsURI, org.eclipse.emf.ecore.EObject eObject, IAcceptor<IEObjectDescription> acceptor)
           
 
Methods inherited from class org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy
createReferenceDescription, createReferenceDescriptions, getLazyURIEncoder, getQualifiedNameProvider, isIndexable, isResolvedAndExternal, setLazyURIEncoder, setQualifiedNameProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NS_URI_INDEX_ENTRY

public static final java.lang.String NS_URI_INDEX_ENTRY
See Also:
Constant Field Values
Constructor Detail

EcoreResourceDescriptionStrategy

public EcoreResourceDescriptionStrategy()
Method Detail

createEObjectDescriptions

public boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject,
                                         IAcceptor<IEObjectDescription> acceptor)
Description copied from interface: IDefaultResourceDescriptionStrategy
Calculates the IEObjectDescriptions for eObject and passes them to the acceptor.

Specified by:
createEObjectDescriptions in interface IDefaultResourceDescriptionStrategy
Overrides:
createEObjectDescriptions in class DefaultResourceDescriptionStrategy
Returns:
true if the children of eObject should be traversed.

createEObjectDescriptions

protected boolean createEObjectDescriptions(IQualifiedNameProvider qualifiedNameProvider,
                                            boolean isNsURI,
                                            org.eclipse.emf.ecore.EObject eObject,
                                            IAcceptor<IEObjectDescription> acceptor)