org.eclipse.xtext.resource
Interface IDefaultResourceDescriptionStrategy

All Known Implementing Classes:
DefaultResourceDescriptionStrategy, EcoreResourceDescriptionStrategy, Xtend2ResourceDescriptionStrategy, XtextResourceDescriptionStrategy

public interface IDefaultResourceDescriptionStrategy

Allows easy way to customize of what is indexed, i.e. put into a DefaultReferenceDescription.

Author:
Jan Koehnlein - Initial contribution and API

Method Summary
 boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, IAcceptor<IEObjectDescription> acceptor)
          Calculates the IEObjectDescriptions for eObject and passes them to the acceptor.
 boolean createReferenceDescriptions(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.URI exportedContainerURI, IAcceptor<IReferenceDescription> acceptor)
          Calculates the IReferenceDescriptions for external cross references from eObject and passes them to the acceptor.
 

Method Detail

createEObjectDescriptions

boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject,
                                  IAcceptor<IEObjectDescription> acceptor)
Calculates the IEObjectDescriptions for eObject and passes them to the acceptor.

Returns:
true if the children of eObject should be traversed.

createReferenceDescriptions

boolean createReferenceDescriptions(org.eclipse.emf.ecore.EObject eObject,
                                    org.eclipse.emf.common.util.URI exportedContainerURI,
                                    IAcceptor<IReferenceDescription> acceptor)
Calculates the IReferenceDescriptions for external cross references from eObject and passes them to the acceptor.

Returns:
true if the children of eObject should be traversed.