public abstract class UML2Pivot extends AbstractEcore2Pivot
Modifier and Type | Class and Description |
---|---|
static class |
UML2Pivot.Inner
A UML2Pivot$Inner adapts an unconverted UML resource that has been imported during
the conversion of some other UML resource.
|
static class |
UML2Pivot.Outer
A UML2Pivot$Outer adapts an unconverted UML resource and hosts the additional conversions
necessary for imported UML resources.
|
AbstractConversion.Predicate<T extends org.eclipse.emf.ecore.EObject>
Modifier and Type | Field and Description |
---|---|
static MetaModelManager.Factory |
FACTORY |
protected Root |
pivotRoot |
static java.lang.String |
STEREOTYPE_BASE_PREFIX |
static java.lang.String |
STEREOTYPE_EXTENSION_PREFIX |
protected org.eclipse.emf.ecore.resource.Resource |
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(org.eclipse.emf.ecore.resource.Resource umlResource,
MetaModelManager metaModelManager) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addCreated(org.eclipse.emf.ecore.EObject umlElement,
Element pivotElement) |
void |
addImportedPackages(java.util.List<? extends org.eclipse.uml2.uml.Package> importedPackages) |
abstract void |
addImportedResource(org.eclipse.emf.ecore.resource.Resource importedResource) |
abstract void |
addProperties(java.util.List<org.eclipse.uml2.uml.Property> properties,
AbstractConversion.Predicate<org.eclipse.uml2.uml.Property> predicate) |
abstract void |
addStereotypeApplication(org.eclipse.emf.ecore.EObject stereotypeApplication) |
protected org.eclipse.emf.common.util.URI |
createPivotURI() |
void |
dispose() |
abstract void |
error(java.lang.String message) |
static UML2Pivot |
findAdapter(org.eclipse.emf.ecore.resource.Resource resource,
MetaModelManager metaModelManager) |
static UML2Pivot |
getAdapter(org.eclipse.emf.ecore.resource.Resource resource,
MetaModelManager metaModelManager) |
abstract <T extends Element> |
getCreated(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject) |
abstract UML2PivotDeclarationSwitch |
getDeclarationPass() |
abstract Root |
getPivotRoot() |
abstract Type |
getPivotType(org.eclipse.emf.ecore.EObject eObject) |
org.eclipse.emf.ecore.resource.Resource |
getResource() |
abstract UML2Pivot.Outer |
getRoot() |
org.eclipse.emf.common.notify.Notifier |
getTarget() |
org.eclipse.emf.common.util.URI |
getURI() |
static Element |
importFromUML(MetaModelManager metaModelManager,
java.lang.String alias,
org.eclipse.emf.ecore.EObject eObject)
Convert a UML object to a pivot element.
|
static Root |
importFromUML(MetaModelManager metaModelManager,
java.lang.String alias,
org.eclipse.emf.ecore.resource.Resource umlResource)
Convert a UML resource to a Pivot Model.
|
static java.lang.String |
initialize(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Initialize registries to support OCL and UML usage.
|
static java.lang.String |
initialize(StandaloneProjectMap projectMap) |
protected Root |
installDeclarations(org.eclipse.emf.ecore.resource.Resource pivotResource) |
boolean |
isAdapterFor(MetaModelManager metaModelManager) |
boolean |
isAdapterForType(java.lang.Object type) |
protected boolean |
isPivot(java.util.Collection<org.eclipse.emf.ecore.EObject> umlContents) |
static boolean |
isUML(org.eclipse.emf.ecore.resource.Resource resource) |
void |
metaModelManagerDisposed(MetaModelManager metaModelManager)
Respond to disposal of the MetaModelManager by eliminating all further usage.
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
protected <T extends Element> |
refreshElement(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EClass pivotEClass,
org.eclipse.emf.ecore.EObject umlElement) |
protected <T extends NamedElement> |
refreshNamedElement(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EClass pivotEClass,
org.eclipse.uml2.uml.NamedElement umlNamedElement) |
protected Type |
resolveType(org.eclipse.uml2.uml.Type umlType) |
protected Type |
resolveTypeParameter(org.eclipse.emf.ecore.EGenericType eGenericType) |
protected Type |
resolveWildcardType(org.eclipse.emf.ecore.EGenericType eGenericType) |
protected void |
setOriginalMapping(Element pivotElement,
org.eclipse.emf.ecore.EObject umlElement) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
void |
setUMLURI(org.eclipse.emf.common.util.URI umlURI) |
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget) |
addGenericType, addMapping, queueReference, refreshElement, refreshNamedElement
basicGet, getEPackage, getMetaModelManager, isId, refreshList, refreshSet
@NonNull public static final java.lang.String STEREOTYPE_BASE_PREFIX
@NonNull public static final java.lang.String STEREOTYPE_EXTENSION_PREFIX
public static MetaModelManager.Factory FACTORY
@NonNull protected final org.eclipse.emf.ecore.resource.Resource umlResource
protected Root pivotRoot
protected UML2Pivot(@NonNull org.eclipse.emf.ecore.resource.Resource umlResource, @NonNull MetaModelManager metaModelManager)
@Nullable public static UML2Pivot findAdapter(@NonNull org.eclipse.emf.ecore.resource.Resource resource, @NonNull MetaModelManager metaModelManager)
@NonNull public static UML2Pivot getAdapter(@NonNull org.eclipse.emf.ecore.resource.Resource resource, @Nullable MetaModelManager metaModelManager)
public static Root importFromUML(@NonNull MetaModelManager metaModelManager, java.lang.String alias, org.eclipse.emf.ecore.resource.Resource umlResource) throws ParserException
alias
- umlResource
- the UML resourceParserException
public static Element importFromUML(@NonNull MetaModelManager metaModelManager, java.lang.String alias, org.eclipse.emf.ecore.EObject eObject) throws ParserException
eObject
- the UML objectParserException
public static java.lang.String initialize(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
A null resourceSet may be provided to initialize the global package registry and global URI mapping registry.
A non-null resourceSet may be provided to identify specific package and global URI mapping registries.
This method is used to configure the ResourceSet used to load the OCL Standard Library.
resourceSet
- to be initialized or null for global initializationpublic static java.lang.String initialize(@NonNull StandaloneProjectMap projectMap)
public static boolean isUML(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
public abstract void addCreated(@NonNull org.eclipse.emf.ecore.EObject umlElement, @NonNull Element pivotElement)
public void addImportedPackages(@NonNull java.util.List<? extends org.eclipse.uml2.uml.Package> importedPackages)
public abstract void addImportedResource(@NonNull org.eclipse.emf.ecore.resource.Resource importedResource)
public abstract void addProperties(@NonNull java.util.List<org.eclipse.uml2.uml.Property> properties, @Nullable AbstractConversion.Predicate<org.eclipse.uml2.uml.Property> predicate)
public abstract void addStereotypeApplication(@NonNull org.eclipse.emf.ecore.EObject stereotypeApplication)
@NonNull protected org.eclipse.emf.common.util.URI createPivotURI()
public void dispose()
public abstract void error(@NonNull java.lang.String message)
error
in class AbstractEcore2Pivot
@Nullable public abstract <T extends Element> T getCreated(@NonNull java.lang.Class<T> requiredClass, @NonNull org.eclipse.emf.ecore.EObject eObject)
@NonNull public abstract UML2PivotDeclarationSwitch getDeclarationPass()
@NonNull public abstract Root getPivotRoot() throws ParserException
ParserException
@Nullable public abstract Type getPivotType(@NonNull org.eclipse.emf.ecore.EObject eObject)
@NonNull public org.eclipse.emf.ecore.resource.Resource getResource()
@NonNull public abstract UML2Pivot.Outer getRoot()
@NonNull public org.eclipse.emf.common.notify.Notifier getTarget()
@NonNull public org.eclipse.emf.common.util.URI getURI()
@NonNull protected Root installDeclarations(@NonNull org.eclipse.emf.ecore.resource.Resource pivotResource)
public boolean isAdapterFor(@NonNull MetaModelManager metaModelManager)
public boolean isAdapterForType(java.lang.Object type)
protected boolean isPivot(@NonNull java.util.Collection<org.eclipse.emf.ecore.EObject> umlContents)
public void metaModelManagerDisposed(@NonNull MetaModelManager metaModelManager)
MetaModelManagerListener
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
protected <T extends Element> T refreshElement(@NonNull java.lang.Class<T> pivotClass, org.eclipse.emf.ecore.EClass pivotEClass, @NonNull org.eclipse.emf.ecore.EObject umlElement)
@NonNull protected <T extends NamedElement> T refreshNamedElement(@NonNull java.lang.Class<T> pivotClass, org.eclipse.emf.ecore.EClass pivotEClass, @NonNull org.eclipse.uml2.uml.NamedElement umlNamedElement)
@Nullable protected Type resolveType(@NonNull org.eclipse.uml2.uml.Type umlType)
@Nullable protected Type resolveTypeParameter(@NonNull org.eclipse.emf.ecore.EGenericType eGenericType)
@Nullable protected Type resolveWildcardType(@NonNull org.eclipse.emf.ecore.EGenericType eGenericType)
protected void setOriginalMapping(@NonNull Element pivotElement, @NonNull org.eclipse.emf.ecore.EObject umlElement)
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
public void setUMLURI(org.eclipse.emf.common.util.URI umlURI)
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)