|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.EcoreUtil org.eclipse.ocl.examples.pivot.utilities.AbstractConversion org.eclipse.ocl.examples.pivot.ecore.Ecore2Pivot org.eclipse.ocl.examples.pivot.uml.UML2Ecore2Pivot
public class UML2Ecore2Pivot
Nested Class Summary |
---|
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 class org.eclipse.emf.ecore.util.EcoreUtil |
---|
org.eclipse.emf.ecore.util.EcoreUtil.AbstractFilteredSettingsIterator<E>, org.eclipse.emf.ecore.util.EcoreUtil.ContentTreeIterator<E>, org.eclipse.emf.ecore.util.EcoreUtil.Copier, org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.EGenericTypeConverter, org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper, org.eclipse.emf.ecore.util.EcoreUtil.ExternalCrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.FilteredSettingsIterator, org.eclipse.emf.ecore.util.EcoreUtil.ProperContentIterator<E>, org.eclipse.emf.ecore.util.EcoreUtil.ProxyCrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.UnresolvedProxyCrossReferencer, org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
static TypeManager.Factory |
FACTORY
|
protected org.eclipse.emf.ecore.resource.Resource |
umlResource
Convert an (annotated) Ecore object to a pivot element. |
Fields inherited from class org.eclipse.ocl.examples.pivot.ecore.Ecore2Pivot |
---|
declarationPass, ecoreResource, pivotRoot, referencePass, typeManager |
Fields inherited from class org.eclipse.emf.ecore.util.EcoreUtil |
---|
GEN_MODEL_PACKAGE_NS_URI, GET, IS_SET, SET, UNSET |
Constructor Summary | |
---|---|
UML2Ecore2Pivot(org.eclipse.emf.ecore.resource.Resource umlResource,
TypeManager typeManager)
|
Method Summary | ||
---|---|---|
static UML2Ecore2Pivot |
getAdapter(org.eclipse.emf.ecore.resource.Resource resource,
TypeManager typeManager)
|
|
|
getCreated(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject)
|
|
|
getPivotOfUML(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject)
|
|
Package |
getPivotRoot()
|
|
org.eclipse.emf.ecore.resource.Resource |
getResource()
|
|
org.eclipse.emf.common.notify.Notifier |
getTarget()
|
|
static Package |
importFromUML(TypeManager typeManager,
java.lang.String alias,
org.eclipse.emf.ecore.resource.Resource umlResource)
Convert an (annotated) Ecore 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. |
|
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)
|
Methods inherited from class org.eclipse.ocl.examples.pivot.ecore.Ecore2Pivot |
---|
addCreated, addGenericType, computeMoniker2PivotMap, error, findAdapter, getEcore2PivotMap, getEcoreResource, getPivotOfEcore, getPivotType, getTypeManager, getURI, importFromEcore, importFromEcore, importObjects, initializeEcore2PivotMap, isEcore, notifyChanged, queueReference, refreshNamedElement, resolveDataType, resolveGenericType, resolveSimpleType, resolveType, resolveTypeParameter, resolveWildcardType |
Methods inherited from class org.eclipse.ocl.examples.pivot.utilities.AbstractConversion |
---|
basicGet, getEPackage, isId, refreshList, refreshSet |
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil |
---|
computeDiagnostic, convertToString, copy, copyAll, create, createFromString, delete, delete, equals, filterDescendants, freeze, generateUUID, generateUUID, getAdapter, getAdapterFactory, getAllContents, getAllContents, getAllContents, getAllContents, getAllContents, getAllProperContents, getAllProperContents, getAllProperContents, getAllProperContents, getAnnotation, getConstraints, getDocumentation, getExistingAdapter, getID, getIdentification, getInvocationDelegateFactory, getInvocationDelegates, getObjectByType, getObjectsByType, getRegisteredAdapter, getRegisteredAdapter, getRootContainer, getRootContainer, getSettingDelegateFactory, getSettingDelegates, getURI, getValidationDelegates, indexOf, isAncestor, isAncestor, isAncestor, isAncestor, isInvariant, isSuppressedVisibility, isSuppressedVisibility, remove, remove, remove, replace, replace, replace, resolve, resolve, resolve, resolveAll, resolveAll, resolveAll, setAnnotation, setConstraints, setDocumentation, setEList, setEList, setID, setInvocationDelegates, setSettingDelegates, setSuppressedVisibility, setSuppressedVisibility, setValidationDelegates, toJavaInstanceTypeName, wrapperClassFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static TypeManager.Factory FACTORY
protected final org.eclipse.emf.ecore.resource.Resource umlResource
Constructor Detail |
---|
public UML2Ecore2Pivot(org.eclipse.emf.ecore.resource.Resource umlResource, TypeManager typeManager)
Method Detail |
---|
public static UML2Ecore2Pivot getAdapter(org.eclipse.emf.ecore.resource.Resource resource, TypeManager typeManager)
public static Package importFromUML(TypeManager typeManager, java.lang.String alias, org.eclipse.emf.ecore.resource.Resource umlResource)
alias
- ecoreResource
- the annotated Ecore resource
public static java.lang.String initialize(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.
The locations of the org.eclipse.ocl.uml and org.eclipse.uml2.uml.resources plugins must be identified by the correspondingly named Java properties. A standalone application command line might do this by incorporating
-Dorg.eclipse.ocl.uml=C:/Eclipse/plugins/org.eclipse.ocl.uml
-Dorg.eclipse.uml2.uml.resources=C:/Eclipse/plugins/org.eclipse.uml2.uml.resources
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 boolean isUML(org.eclipse.emf.ecore.resource.Resource resource)
public <T extends Element> T getCreated(java.lang.Class<T> requiredClass, org.eclipse.emf.ecore.EObject eObject)
getCreated
in class Ecore2Pivot
public <T extends Element> T getPivotOfUML(java.lang.Class<T> requiredClass, org.eclipse.emf.ecore.EObject eObject)
public Package getPivotRoot()
getPivotRoot
in class Ecore2Pivot
public org.eclipse.emf.ecore.resource.Resource getResource()
getResource
in interface External2Pivot
getResource
in class Ecore2Pivot
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |