public static interface MetaModelManager.Factory
Modifier and Type | Field and Description |
---|---|
static int |
CAN_HANDLE |
static int |
CANNOT_HANDLE |
static int |
MAY_HANDLE |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Configure the MetaModelManager's external ResourceSet.
|
int |
getHandlerPriority(org.eclipse.emf.ecore.EObject eObject)
Return a positive handler priority if this factory can handle creation of a Pivot type from the
available object, negative if it cannot.
|
int |
getHandlerPriority(org.eclipse.emf.ecore.resource.Resource resource)
Return a positive handler priority if this factory can handle creation of a Pivot resource from the
available resource, negative if it cannot.
|
org.eclipse.emf.common.util.URI |
getPackageURI(org.eclipse.emf.ecore.EObject eObject)
Return the URI of an eObject if it can be treated as a Package.
|
<T extends Element> |
getPivotOf(MetaModelManager metaModelManager,
java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject) |
Element |
importFromResource(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.common.util.URI uri)
Return the root element in the Pivot resource resulting from import of the available
resource.
|
static final int CANNOT_HANDLE
static final int MAY_HANDLE
static final int CAN_HANDLE
void configure(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet
- int getHandlerPriority(@NonNull org.eclipse.emf.ecore.EObject eObject)
int getHandlerPriority(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
@Nullable org.eclipse.emf.common.util.URI getPackageURI(@NonNull org.eclipse.emf.ecore.EObject eObject)
<T extends Element> T getPivotOf(@NonNull MetaModelManager metaModelManager, @NonNull java.lang.Class<T> pivotClass, @NonNull org.eclipse.emf.ecore.EObject eObject) throws ParserException
ParserException
@Nullable Element importFromResource(@NonNull MetaModelManager metaModelManager, @NonNull org.eclipse.emf.ecore.resource.Resource resource, @Nullable org.eclipse.emf.common.util.URI uri) throws ParserException
uriFragment
- ParserException