org.eclipse.ocl.examples.pivot.uml
Class UML2Ecore2Pivot
java.lang.Object
org.eclipse.ocl.examples.pivot.utilities.AbstractConversion
org.eclipse.ocl.examples.pivot.ecore.AbstractEcore2Pivot
org.eclipse.ocl.examples.pivot.ecore.Ecore2Pivot
org.eclipse.ocl.examples.pivot.uml.UML2Ecore2Pivot
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, MetaModelManagedAdapter, MetaModelManagerListener, PivotConstants, External2Pivot
public class UML2Ecore2Pivot
- extends Ecore2Pivot
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary |
protected org.eclipse.emf.ecore.resource.Resource |
umlResource
|
Fields inherited from interface org.eclipse.ocl.examples.pivot.PivotConstants |
ACCUMULATOR_SEPARATOR, ANNOTATED_IMPLICIT_OPPOSITE_LOWER_VALUE, ANNOTATED_IMPLICIT_OPPOSITE_ORDERED, ANNOTATED_IMPLICIT_OPPOSITE_UNIQUE, ANNOTATED_IMPLICIT_OPPOSITE_UPPER_VALUE, ANNOTATION_QUOTE, AS_LIBRARY_ANNOTATION_SOURCE, AS_METAMODEL_ANNOTATION_SOURCE, BINDINGS_PREFIX, COLLECTION_NAVIGATION_OPERATOR, DEFAULT_IMPLICIT_OPPOSITE_LOWER_VALUE, DEFAULT_IMPLICIT_OPPOSITE_ORDERED, DEFAULT_IMPLICIT_OPPOSITE_UNIQUE, DEFAULT_IMPLICIT_OPPOSITE_UPPER_VALUE, DOCUMENTATION_ANNOTATION_KEY, DOCUMENTATION_ANNOTATION_SOURCE, DOT_OCL_AS_FILE_EXTENSION, DUPLICATES_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, MESSAGE_PART_NAME, 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_AS_FILE_EXTENSION, OCL_LANGUAGE, OCL_NAME, OMG_OCL_ANNOTATION_SOURCE, ORPHANAGE_NAME, ORPHANAGE_PREFIX, ORPHANAGE_URI, OVERFLOW_MARKER, PARAMETER_PREFIX, PARAMETER_SEPARATOR, PARAMETER_SUFFIX, PIVOT_ECORE, PLUGIN_ID, PRECEDENCE_PREFIX, PRIMITIVE_TYPES_URI_PREFIX, REDEFINES_ANNOTATION_SOURCE, roleNames, SEVERITY_PART_NAME, STATUS_PART_NAME, 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 |
Methods inherited from class org.eclipse.ocl.examples.pivot.ecore.Ecore2Pivot |
addCreated, addGenericType, error, getBaseURI, getEcore2PivotMap, getEcoreResource, getPivotElement, getPivotOfEcore, getPivotType, getURI, importFromEcore, importFromEcore, importObjects, initializeEcore2PivotMap, installImports, isAdapterFor, isEcore, isLibrary, isPivot, loadFromEcore, loadImports, loadImports, metaModelManagerDisposed, notifyChanged, queueReference, refreshElement, resolveDataType, resolveGenericType, resolveSimpleType, resolveType, resolveTypeParameter, resolveWildcardType, setEcoreURI, toString, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
umlResource
@NonNull
protected final org.eclipse.emf.ecore.resource.Resource umlResource
UML2Ecore2Pivot
public UML2Ecore2Pivot(@NonNull
org.eclipse.emf.ecore.resource.Resource umlResource,
@NonNull
MetaModelManager metaModelManager)
findAdapter
public static UML2Ecore2Pivot findAdapter(@NonNull
org.eclipse.emf.ecore.resource.Resource resource,
@Nullable
MetaModelManager metaModelManager)
getAdapter
public static UML2Ecore2Pivot getAdapter(@NonNull
org.eclipse.emf.ecore.resource.Resource resource,
@NonNull
MetaModelManager metaModelManager)
importFromUML
public static Root importFromUML(@NonNull
MetaModelManager metaModelManager,
java.lang.String alias,
@NonNull
org.eclipse.emf.ecore.resource.Resource umlResource)
- Convert an (annotated) Ecore resource to a Pivot Model.
- Parameters:
alias
- umlResource
- the annotated Ecore resource
- Returns:
- the Pivot root package
isUML
public static boolean isUML(org.eclipse.emf.ecore.resource.Resource resource)
addMapping
public void addMapping(@NonNull
org.eclipse.emf.ecore.EObject eObject,
@NonNull
Element pivotElement)
- Overrides:
addMapping
in class Ecore2Pivot
createPivotURI
@NonNull
protected org.eclipse.emf.common.util.URI createPivotURI()
- Overrides:
createPivotURI
in class Ecore2Pivot
dispose
public void dispose()
- Overrides:
dispose
in class Ecore2Pivot
getCreated
@Nullable
public <T extends Element> T getCreated(@NonNull
java.lang.Class<T> requiredClass,
@NonNull
org.eclipse.emf.ecore.EObject eObject)
- Overrides:
getCreated
in class Ecore2Pivot
getPivotOfUML
@Nullable
public <T extends Element> T getPivotOfUML(@NonNull
java.lang.Class<T> requiredClass,
@NonNull
org.eclipse.emf.ecore.EObject eObject)
getPivotRoot
@NonNull
public Root getPivotRoot()
- Overrides:
getPivotRoot
in class Ecore2Pivot
getResource
@Nullable
public org.eclipse.emf.ecore.resource.Resource getResource()
- Specified by:
getResource
in interface External2Pivot
- Overrides:
getResource
in class Ecore2Pivot
getTarget
@NonNull
public org.eclipse.emf.common.notify.Notifier getTarget()
- Specified by:
getTarget
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
getTarget
in class Ecore2Pivot
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
isAdapterForType
in class Ecore2Pivot
setTarget
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
- Specified by:
setTarget
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
setTarget
in class Ecore2Pivot
unsetTarget
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
- Specified by:
unsetTarget
in interface org.eclipse.emf.common.notify.Adapter.Internal
- Overrides:
unsetTarget
in class Ecore2Pivot