Package org.eclipse.xtext.resource.impl
Class DefaultResourceDescriptionStrategy
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy
-
- All Implemented Interfaces:
IDefaultResourceDescriptionStrategy
- Direct Known Subclasses:
XtextResourceDescriptionStrategy
public class DefaultResourceDescriptionStrategy extends java.lang.Object implements IDefaultResourceDescriptionStrategy
By default, all elements with a not nullname
feature and all cross-resource crossrefs are indexed.
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceDescriptionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.util.IAcceptor<IEObjectDescription> acceptor)
Calculates theIEObjectDescription
s foreObject
and passes them to the acceptor.protected IReferenceDescription
createReferenceDescription(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.emf.ecore.EReference eReference, int indexInList, org.eclipse.emf.ecore.EObject target)
boolean
createReferenceDescriptions(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.xtext.util.IAcceptor<IReferenceDescription> acceptor)
Calculates theIReferenceDescription
s for external cross references fromeObject
and passes them to the acceptor.LazyURIEncoder
getLazyURIEncoder()
IQualifiedNameProvider
getQualifiedNameProvider()
protected boolean
isIndexable(org.eclipse.emf.ecore.EReference eReference)
protected boolean
isResolvedAndExternal(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.ecore.EObject to)
void
setLazyURIEncoder(LazyURIEncoder uriEncoder)
void
setQualifiedNameProvider(IQualifiedNameProvider qualifiedNameProvider)
-
-
-
Method Detail
-
setQualifiedNameProvider
public void setQualifiedNameProvider(IQualifiedNameProvider qualifiedNameProvider)
-
getQualifiedNameProvider
public IQualifiedNameProvider getQualifiedNameProvider()
-
setLazyURIEncoder
public void setLazyURIEncoder(LazyURIEncoder uriEncoder)
- Since:
- 2.0
-
getLazyURIEncoder
public LazyURIEncoder getLazyURIEncoder()
- Since:
- 2.0
-
createEObjectDescriptions
public boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.util.IAcceptor<IEObjectDescription> acceptor)
Description copied from interface:IDefaultResourceDescriptionStrategy
Calculates theIEObjectDescription
s foreObject
and passes them to the acceptor.- Specified by:
createEObjectDescriptions
in interfaceIDefaultResourceDescriptionStrategy
- Returns:
- true if the children of
eObject
should be traversed.
-
createReferenceDescriptions
public boolean createReferenceDescriptions(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.xtext.util.IAcceptor<IReferenceDescription> acceptor)
Description copied from interface:IDefaultResourceDescriptionStrategy
Calculates theIReferenceDescription
s for external cross references fromeObject
and passes them to the acceptor.- Specified by:
createReferenceDescriptions
in interfaceIDefaultResourceDescriptionStrategy
- Returns:
- true if the children of
eObject
should be traversed.
-
createReferenceDescription
protected IReferenceDescription createReferenceDescription(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.common.util.URI exportedContainerURI, org.eclipse.emf.ecore.EReference eReference, int indexInList, org.eclipse.emf.ecore.EObject target)
- Since:
- 2.0
-
isIndexable
protected boolean isIndexable(org.eclipse.emf.ecore.EReference eReference)
-
isResolvedAndExternal
protected boolean isResolvedAndExternal(org.eclipse.emf.ecore.EObject from, org.eclipse.emf.ecore.EObject to)
-
-