public class EcoreIdResolver extends AbstractIdResolver implements org.eclipse.emf.common.notify.Adapter
Given an initial seed of a standard library and one or more root EObjects, packages are discovered by locating all packages and nested packages directly contained by the seed roots or by the roots of any object referenced by any contained by the seed roots.
AbstractIdResolver.Id2InstanceVisitor
environment, nsURI2package, roots2package, standardLibrary
Constructor and Description |
---|
EcoreIdResolver(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> roots,
ExecutorStandardLibrary standardLibrary) |
Modifier and Type | Method and Description |
---|---|
protected Package |
addEPackage(org.eclipse.emf.ecore.EPackage ePackage) |
void |
dispose() |
CompleteInheritance |
getInheritance(org.eclipse.emf.ecore.EClassifier eClassifier) |
org.eclipse.emf.common.notify.Notifier |
getTarget() |
TupleType |
getTupleType(TupleTypeId typeId) |
TupleType |
getTupleType(TypedElement... parts) |
Class |
getType(org.eclipse.emf.ecore.EClassifier eClassifier) |
boolean |
isAdapterForType(java.lang.Object type) |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
addRoot, boxedValueOf, boxedValueOf, boxedValueOf, boxedValueOfEnumerator, createBagOfAll, createBagOfEach, createCollectionOfAll, createCollectionOfAll, createInstance, createMapOfAll, createOrderedSetOfAll, createOrderedSetOfEach, createSequenceOfAll, createSequenceOfEach, createSetOfAll, createSetOfEach, ecoreValueOf, ecoreValuesOfAll, ecoreValuesOfEach, getClass, getCollectionType, getCollectionType, getDynamicTypeOf, getDynamicTypeOf, getDynamicTypeOf, getEnvironment, getJavaType, getMapType, getOperation, getPackage, getProperty, getStandardLibrary, getStaticTypeOf, getStaticTypeOf, getStaticTypeOf, getTuplePart, getTuplePart, getType, oclEquals, processCrossReferencedRoots, processDirectRoots, unboxedValueOf, unboxedValueOf, unboxedValuesOfAll, unboxedValuesOfEach, visitClassId, visitCollectedId, visitCollectionTypeId, visitDataTypeId, visitEnumerationId, visitEnumerationLiteralId, visitInvalidId, visitLambdaTypeId, visitMapTypeId, visitNestedPackageId, visitNsURIPackageId, visitNullId, visitOperationId, visitPrimitiveTypeId, visitPropertyId, visitRootPackageId, visitTemplateableTypeId, visitTemplateBinding, visitTemplateParameterId, visitTuplePartId, visitTupleTypeId, visitUnspecifiedId, weakGet
public EcoreIdResolver(@NonNull java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> roots, @NonNull ExecutorStandardLibrary standardLibrary)
@NonNull protected Package addEPackage(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
addEPackage
in class AbstractIdResolver
public void dispose()
dispose
in interface IdResolver
dispose
in class AbstractIdResolver
@NonNull public CompleteInheritance getInheritance(@NonNull org.eclipse.emf.ecore.EClassifier eClassifier)
getInheritance
in interface IdResolver
public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
@NonNull public TupleType getTupleType(@NonNull TupleTypeId typeId)
getTupleType
in interface IdResolver
getTupleType
in class AbstractIdResolver
@NonNull public TupleType getTupleType(TypedElement... parts)
@NonNull public Class getType(@NonNull org.eclipse.emf.ecore.EClassifier eClassifier)
getType
in interface IdResolver
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter