|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.pivot.utilities.AbstractConversion
org.eclipse.ocl.examples.pivot.ecore.AbstractEcore2Pivot
org.eclipse.ocl.examples.pivot.uml.UML2Pivot
public abstract class UML2Pivot
Nested Class Summary | |
---|---|
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. |
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.pivot.utilities.AbstractConversion |
---|
AbstractConversion.Predicate<T extends org.eclipse.emf.ecore.EObject> |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
static TracingOption |
ADD_ELEMENT_EXTENSION
|
static TracingOption |
ADD_IMPORTED_RESOURCE
|
static TracingOption |
ADD_PROFILE_APPLICATION
|
static TracingOption |
ADD_STEREOTYPE_APPLICATION
|
static TracingOption |
ADD_TYPE_EXTENSION
|
static TracingOption |
APPLICABLE_STEREOTYPES
|
static TracingOption |
CONVERT_RESOURCE
|
protected Root |
pivotRoot
|
static java.lang.String |
STEREOTYPE_BASE_PREFIX
|
static java.lang.String |
STEREOTYPE_EXTENSION_PREFIX
|
static TracingOption |
TYPE_EXTENSIONS
|
protected org.eclipse.emf.ecore.resource.Resource |
umlResource
|
Fields inherited from class org.eclipse.ocl.examples.pivot.utilities.AbstractConversion |
---|
metaModelManager |
Constructor Summary | |
---|---|
protected |
UML2Pivot(org.eclipse.emf.ecore.resource.Resource umlResource,
MetaModelManager metaModelManager)
|
Method Summary | ||
---|---|---|
abstract void |
addCreated(org.eclipse.emf.ecore.EObject umlElement,
Element pivotElement)
|
|
void |
addImportedPackage(org.eclipse.uml2.uml.Package importedPackage)
|
|
void |
addImportedPackages(java.util.List<? extends org.eclipse.uml2.uml.Package> importedPackages)
|
|
abstract void |
addImportedResource(org.eclipse.emf.ecore.resource.Resource importedResource)
|
|
abstract void |
addProfileApplication(ProfileApplication asProfileApplication)
|
|
abstract void |
addProperty(Type asType,
Property asProperty)
|
|
abstract void |
addStereotype(Stereotype asStereotype)
|
|
abstract void |
addStereotypeApplication(org.eclipse.emf.ecore.EObject stereotypeApplication)
|
|
abstract void |
addTypeExtension(TypeExtension asTypeExtension)
|
|
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
|
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 asResource)
|
|
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)
|
|
static UML2Pivot |
loadFromUML(ASResource umlASResource,
org.eclipse.emf.common.util.URI umlURI)
|
|
void |
metaModelManagerDisposed(MetaModelManager metaModelManager)
Respond to disposal of the MetaModelManager by eliminating all further usage. |
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
|
|
abstract void |
queueUse(org.eclipse.emf.ecore.EObject eObject)
|
|
protected
|
refreshElement(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EClass pivotEClass,
org.eclipse.emf.ecore.EObject umlElement)
|
|
protected
|
refreshNamedElement(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EClass pivotEClass,
org.eclipse.uml2.uml.NamedElement umlNamedElement)
|
|
Stereotype |
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 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)
|
|
java.lang.String |
toString()
|
|
void |
unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
|
Methods inherited from class org.eclipse.ocl.examples.pivot.ecore.AbstractEcore2Pivot |
---|
addGenericType, addMapping, getOriginalName, isInvariant, queueReference, refreshElement, refreshNamedElement |
Methods inherited from class org.eclipse.ocl.examples.pivot.utilities.AbstractConversion |
---|
basicGet, getEPackage, getMetaModelManager, isId, refreshList, refreshSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@NonNull public static final TracingOption ADD_ELEMENT_EXTENSION
@NonNull public static final TracingOption ADD_IMPORTED_RESOURCE
@NonNull public static final TracingOption ADD_PROFILE_APPLICATION
@NonNull public static final TracingOption ADD_STEREOTYPE_APPLICATION
@NonNull public static final TracingOption ADD_TYPE_EXTENSION
@NonNull public static final TracingOption APPLICABLE_STEREOTYPES
@NonNull public static final TracingOption CONVERT_RESOURCE
@NonNull public static final TracingOption TYPE_EXTENSIONS
@NonNull public static final java.lang.String STEREOTYPE_BASE_PREFIX
@NonNull public static final java.lang.String STEREOTYPE_EXTENSION_PREFIX
@NonNull protected final org.eclipse.emf.ecore.resource.Resource umlResource
protected Root pivotRoot
Constructor Detail |
---|
protected UML2Pivot(@NonNull org.eclipse.emf.ecore.resource.Resource umlResource, @NonNull MetaModelManager metaModelManager)
Method Detail |
---|
@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 resource
ParserException
public static Element importFromUML(@NonNull MetaModelManager metaModelManager, java.lang.String alias, org.eclipse.emf.ecore.EObject eObject) throws ParserException
eObject
- the UML object
ParserException
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 initialization
public static java.lang.String initialize(@NonNull StandaloneProjectMap projectMap)
public static boolean isUML(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
public static UML2Pivot loadFromUML(@NonNull ASResource umlASResource, @NonNull org.eclipse.emf.common.util.URI umlURI)
public abstract void addCreated(@NonNull org.eclipse.emf.ecore.EObject umlElement, @NonNull Element pivotElement)
public void addImportedPackage(@NonNull org.eclipse.uml2.uml.Package importedPackage)
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 addProfileApplication(@NonNull ProfileApplication asProfileApplication)
public abstract void addProperty(@NonNull Type asType, @NonNull Property asProperty)
public abstract void addStereotype(@NonNull Stereotype asStereotype)
public abstract void addStereotypeApplication(@NonNull org.eclipse.emf.ecore.EObject stereotypeApplication)
public abstract void addTypeExtension(@NonNull TypeExtension asTypeExtension)
@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 asResource)
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)
public abstract void queueUse(@NonNull org.eclipse.emf.ecore.EObject eObject)
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 public Stereotype resolveStereotype(@NonNull org.eclipse.emf.ecore.EObject umlStereotypeApplication, @NonNull java.util.List<org.eclipse.uml2.uml.Element> umlStereotypedElements)
Note that the reference in the UML Stereotype application is 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.
@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 java.lang.String toString()
toString
in class java.lang.Object
public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |