public static class UML2Pivot.Outer extends UML2Pivot
UML2Pivot.Inner, UML2Pivot.Outer
AbstractConversion.Predicate<T extends org.eclipse.emf.ecore.EObject>
Modifier and Type | Field and Description |
---|---|
protected UML2PivotDeclarationSwitch |
declarationPass |
protected UML2PivotReferenceSwitch |
referencePass |
FACTORY, pivotRoot, STEREOTYPE_BASE_PREFIX, STEREOTYPE_EXTENSION_PREFIX, umlResource
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
Modifier | Constructor and Description |
---|---|
protected |
UML2Pivot.Outer(org.eclipse.emf.ecore.resource.Resource umlResource,
MetaModelManager metaModelManager) |
Modifier and Type | Method and Description |
---|---|
void |
addCreated(org.eclipse.emf.ecore.EObject eObject,
Element pivotElement) |
void |
addGenericType(org.eclipse.emf.ecore.EGenericType eObject) |
void |
addImportedResource(org.eclipse.emf.ecore.resource.Resource importedResource) |
void |
addMapping(org.eclipse.emf.ecore.EObject eObject,
Element pivotElement) |
void |
addProperties(java.util.List<org.eclipse.uml2.uml.Property> properties,
AbstractConversion.Predicate<org.eclipse.uml2.uml.Property> predicate) |
void |
addStereotypeApplication(org.eclipse.emf.ecore.EObject umlStereotypeApplication) |
void |
error(java.lang.String message) |
<T extends Element> |
getCreated(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject) |
UML2PivotDeclarationSwitch |
getDeclarationPass() |
java.util.List<org.eclipse.emf.ecore.resource.Resource> |
getImportedResources() |
Root |
getPivotRoot() |
Type |
getPivotType(org.eclipse.emf.ecore.EObject eObject) |
UML2Pivot.Outer |
getRoot() |
protected void |
installAliases(org.eclipse.emf.ecore.resource.Resource pivotResource) |
protected void |
installImports() |
protected void |
installProperties() |
protected void |
installReferences() |
protected void |
installStereotypes() |
void |
queueReference(org.eclipse.emf.ecore.EObject umlElement) |
protected Type |
resolveStereotype(org.eclipse.emf.ecore.EObject umlStereotypeApplication,
java.util.List<org.eclipse.uml2.uml.Element> umlStereotypedElements)
Return the UML Stereotype referenced by the UML stereotype application to some UML Stereotyped Elements.
|
protected java.util.Map<Element,java.util.List<org.eclipse.emf.ecore.EObject>> |
resolveStereotypeApplications(java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<org.eclipse.uml2.uml.Element>> stereotypedElements)
Determine the UML stereotype applications for each stereotyped pivot element, given a pre-computed mapping
of stereotyped UML elements for each UML stereotype application.
|
protected java.util.List<org.eclipse.uml2.uml.Element> |
resolveStereotypedElements(org.eclipse.emf.ecore.EObject umlStereotypeApplication)
Determine the list of UML elements stereotyped by a UML stereotype application.
|
addImportedPackages, createPivotURI, dispose, findAdapter, getAdapter, getResource, getTarget, getURI, importFromUML, importFromUML, initialize, initialize, installDeclarations, isAdapterFor, isAdapterForType, isPivot, isUML, metaModelManagerDisposed, notifyChanged, refreshElement, refreshNamedElement, resolveType, resolveTypeParameter, resolveWildcardType, setOriginalMapping, setTarget, setUMLURI, unsetTarget
refreshElement, refreshNamedElement
basicGet, getEPackage, getMetaModelManager, isId, refreshList, refreshSet
@NonNull protected final UML2PivotDeclarationSwitch declarationPass
@NonNull protected final UML2PivotReferenceSwitch referencePass
protected UML2Pivot.Outer(@NonNull org.eclipse.emf.ecore.resource.Resource umlResource, @NonNull MetaModelManager metaModelManager)
public void addCreated(@NonNull org.eclipse.emf.ecore.EObject eObject, @NonNull Element pivotElement)
addCreated
in class UML2Pivot
public void addGenericType(@NonNull org.eclipse.emf.ecore.EGenericType eObject)
addGenericType
in class AbstractEcore2Pivot
public void addImportedResource(@NonNull org.eclipse.emf.ecore.resource.Resource importedResource)
addImportedResource
in class UML2Pivot
public void addMapping(@NonNull org.eclipse.emf.ecore.EObject eObject, @NonNull Element pivotElement)
addMapping
in class AbstractEcore2Pivot
public void addProperties(@NonNull java.util.List<org.eclipse.uml2.uml.Property> properties, @Nullable AbstractConversion.Predicate<org.eclipse.uml2.uml.Property> predicate)
addProperties
in class UML2Pivot
public void addStereotypeApplication(@NonNull org.eclipse.emf.ecore.EObject umlStereotypeApplication)
addStereotypeApplication
in class UML2Pivot
public <T extends Element> T getCreated(@NonNull java.lang.Class<T> requiredClass, @NonNull org.eclipse.emf.ecore.EObject eObject)
getCreated
in class UML2Pivot
@NonNull public final UML2PivotDeclarationSwitch getDeclarationPass()
getDeclarationPass
in class UML2Pivot
@Nullable public java.util.List<org.eclipse.emf.ecore.resource.Resource> getImportedResources()
@NonNull public Root getPivotRoot() throws ParserException
getPivotRoot
in class UML2Pivot
ParserException
public Type getPivotType(@NonNull org.eclipse.emf.ecore.EObject eObject)
getPivotType
in class UML2Pivot
@NonNull public UML2Pivot.Outer getRoot()
protected void installAliases(@NonNull org.eclipse.emf.ecore.resource.Resource pivotResource)
protected void installImports() throws ParserException
ParserException
protected void installProperties()
protected void installReferences()
protected void installStereotypes()
public void queueReference(@NonNull org.eclipse.emf.ecore.EObject umlElement)
queueReference
in class AbstractEcore2Pivot
@NonNull protected java.util.Map<Element,java.util.List<org.eclipse.emf.ecore.EObject>> resolveStereotypeApplications(@NonNull java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<org.eclipse.uml2.uml.Element>> stereotypedElements)
@Nullable protected Type resolveStereotype(@NonNull org.eclipse.emf.ecore.EObject umlStereotypeApplication, @NonNull java.util.List<org.eclipse.uml2.uml.Element> umlStereotypedElements)
Note that the reference ine the UML Stereotype application is a to a particular Ecore version of the Profile, rather than to the UML profile, so we have to locate the UML profile by URI and name.
@NonNull protected java.util.List<org.eclipse.uml2.uml.Element> resolveStereotypedElements(@NonNull org.eclipse.emf.ecore.EObject umlStereotypeApplication)