Package com._1c.g5.v8.dt.bm.index.emf
Class BasicEObjectEmfIndexBuilder
java.lang.Object
com._1c.g5.v8.dt.bm.index.emf.BasicEObjectEmfIndexBuilder
- All Implemented Interfaces:
Visitors.IVisitor
- Direct Known Subclasses:
FormEObjectEmfIndexBuilder,MdEObjectEmfIndexBuilder
TODO Think on what to do with unresolved contained objects. It seems we need to update the index in case of getting the
notification about resolved reference (proxy).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidstoreIndex(org.eclipse.emf.ecore.EObject topObject, List<org.eclipse.xtext.resource.IEObjectDescription> exportedEObjects) Stores index in external storage.booleanvisit(org.eclipse.emf.ecore.EObject eObject) Builds EMF index for supported objects.
-
Constructor Details
-
BasicEObjectEmfIndexBuilder
public BasicEObjectEmfIndexBuilder()
-
-
Method Details
-
visit
public boolean visit(org.eclipse.emf.ecore.EObject eObject) Builds EMF index for supported objects.- Specified by:
visitin interfaceVisitors.IVisitor- Parameters:
eObject- Source object to build/update index for- Returns:
- True if internal contents of the object should be visited as well; false otherwise
-
storeIndex
protected abstract void storeIndex(org.eclipse.emf.ecore.EObject topObject, List<org.eclipse.xtext.resource.IEObjectDescription> exportedEObjects) Stores index in external storage.- Parameters:
topObject- Top object being used to collect index changes.exportedEObjects- List of updated index entries.
-