public class UML2Ecore2Pivot extends Ecore2Pivot
Modifier and Type | Class and Description |
---|---|
protected static class |
UML2Ecore2Pivot.UML2EcoreConverterWithReverseMap |
AbstractConversion.Predicate<T extends org.eclipse.emf.ecore.EObject>
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.resource.Resource |
umlResource
Convert an (annotated) Ecore object to a pivot element.
|
declarationPass, ecoreResource, FACTORY, pivotRoot, referencePass
metaModelManager
ACCUMULATOR_SEPARATOR, ANNOTATION_QUOTE, BINDINGS_PREFIX, COLLECTION_NAVIGATION_OPERATOR, DOCUMENTATION_ANNOTATION_KEY, DOCUMENTATION_ANNOTATION_SOURCE, GEN_MODEL_URI, GREATER_THAN_OPERATOR, GREATER_THAN_OR_EQUAL_OPERATOR, IMPORT_ANNOTATION_SOURCE, ITERATOR_SEPARATOR, LESS_THAN_OPERATOR, LESS_THAN_OR_EQUAL_OPERATOR, LIBRARY_MONIKER_PREFIX, MESSAGE_ANNOTATION_DETAIL_SUFFIX, MONIKER_EXP_CHILD_PREFIX, MONIKER_IF_EXP, MONIKER_INVALID_LITERAL_EXP, MONIKER_LET_EXP, MONIKER_NULL_LITERAL_EXP, MONIKER_OPERATOR_SEPARATOR, MONIKER_OVERFLOW_LIMIT, MONIKER_PART_SEPARATOR, MONIKER_ROOT, MONIKER_ROOT_EXP, MONIKER_SCOPE_SEPARATOR, MONIKER_STRING_LITERAL_EXP, MONIKER_TUPLE_LITERAL_EXP, MONIKER_UNLIMITED_NATURAL_LITERAL_EXP, NULL_MARKER, NULL_ROOT, OBJECT_NAVIGATION_OPERATOR, OCL_LANGUAGE, OCL_NAME, ORPHANAGE_NAME, ORPHANAGE_PREFIX, ORPHANAGE_URI, OVERFLOW_MARKER, PARAMETER_PREFIX, PARAMETER_SEPARATOR, PARAMETER_SUFFIX, PIVOT_ECORE, PLUGIN_ID, PRECEDENCE_PREFIX, PRIMITIVE_TYPES_URI_PREFIX, roleNames, SYSML_ANNOTATION_SOURCE, TEMPLATE_BINDING_PREFIX, TEMPLATE_BINDING_SEPARATOR, TEMPLATE_BINDING_SUFFIX, TEMPLATE_PARAMETER_PREFIX, TEMPLATE_SIGNATURE_PREFIX, TEMPLATE_SIGNATURE_SEPARATOR, TEMPLATE_SIGNATURE_SUFFIX, TUPLE_SIGNATURE_PART_SEPARATOR, TUPLE_SIGNATURE_PREFIX, TUPLE_SIGNATURE_SUFFIX, TUPLE_SIGNATURE_TYPE_SEPARATOR, UNKNOWN_TYPE_TEXT, UNRESOLVED_PROXY_MARKER, WILDCARD_INDICATOR, WILDCARD_NAME
Constructor and Description |
---|
UML2Ecore2Pivot(org.eclipse.emf.ecore.resource.Resource umlResource,
MetaModelManager metaModelManager) |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(org.eclipse.emf.ecore.EObject eObject,
Element pivotElement) |
protected org.eclipse.emf.common.util.URI |
createPivotURI() |
void |
dispose() |
static UML2Ecore2Pivot |
findAdapter(org.eclipse.emf.ecore.resource.Resource resource,
MetaModelManager metaModelManager) |
static UML2Ecore2Pivot |
getAdapter(org.eclipse.emf.ecore.resource.Resource resource,
MetaModelManager metaModelManager) |
<T extends Element> |
getCreated(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject) |
<T extends Element> |
getPivotOfUML(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject) |
Root |
getPivotRoot() |
org.eclipse.emf.ecore.resource.Resource |
getResource() |
org.eclipse.emf.common.notify.Notifier |
getTarget() |
static Root |
importFromUML(MetaModelManager metaModelManager,
java.lang.String alias,
org.eclipse.emf.ecore.resource.Resource umlResource)
Convert an (annotated) Ecore resource to a Pivot Model.
|
boolean |
isAdapterForType(java.lang.Object type) |
static boolean |
isUML(org.eclipse.emf.ecore.resource.Resource resource) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget) |
addCreated, addGenericType, error, getEcore2PivotMap, getEcoreResource, getPivotElement, getPivotOfEcore, getPivotType, getURI, importFromEcore, importFromEcore, importObjects, initializeEcore2PivotMap, installImports, isAdapterFor, isEcore, isPivot, metaModelManagerDisposed, notifyChanged, queueReference, refreshElement, resolveDataType, resolveGenericType, resolveSimpleType, resolveType, resolveTypeParameter, resolveWildcardType, setEcoreURI, update
refreshNamedElement
basicGet, getEPackage, getMetaModelManager, isId, refreshList, refreshSet
@NonNull protected final org.eclipse.emf.ecore.resource.Resource umlResource
public UML2Ecore2Pivot(@NonNull org.eclipse.emf.ecore.resource.Resource umlResource, @NonNull MetaModelManager metaModelManager)
public static UML2Ecore2Pivot findAdapter(@NonNull org.eclipse.emf.ecore.resource.Resource resource, @Nullable MetaModelManager metaModelManager)
public static UML2Ecore2Pivot getAdapter(@NonNull org.eclipse.emf.ecore.resource.Resource resource, @NonNull MetaModelManager metaModelManager)
public static Root importFromUML(@NonNull MetaModelManager metaModelManager, java.lang.String alias, @NonNull org.eclipse.emf.ecore.resource.Resource umlResource)
alias
- ecoreResource
- the annotated Ecore resourcepublic static boolean isUML(org.eclipse.emf.ecore.resource.Resource resource)
public void addMapping(@NonNull org.eclipse.emf.ecore.EObject eObject, @NonNull Element pivotElement)
addMapping
in class Ecore2Pivot
@NonNull protected org.eclipse.emf.common.util.URI createPivotURI()
createPivotURI
in class Ecore2Pivot
public void dispose()
dispose
in class Ecore2Pivot
@Nullable public <T extends Element> T getCreated(@NonNull java.lang.Class<T> requiredClass, @NonNull org.eclipse.emf.ecore.EObject eObject)
getCreated
in class Ecore2Pivot
@Nullable public <T extends Element> T getPivotOfUML(@NonNull java.lang.Class<T> requiredClass, @NonNull org.eclipse.emf.ecore.EObject eObject)
@NonNull public Root getPivotRoot()
getPivotRoot
in class Ecore2Pivot
@Nullable public org.eclipse.emf.ecore.resource.Resource getResource()
getResource
in interface External2Pivot
getResource
in class Ecore2Pivot
@NonNull public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
getTarget
in class Ecore2Pivot
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
isAdapterForType
in class Ecore2Pivot
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter
setTarget
in class Ecore2Pivot
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
unsetTarget
in interface org.eclipse.emf.common.notify.Adapter.Internal
unsetTarget
in class Ecore2Pivot