org.eclipse.ocl.examples.pivot.ecore
Class Pivot2Ecore
java.lang.Object
org.eclipse.emf.ecore.util.EcoreUtil
org.eclipse.ocl.examples.pivot.utilities.AbstractConversion
org.eclipse.ocl.examples.pivot.ecore.Pivot2Ecore
public class Pivot2Ecore
- extends AbstractConversion
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 |
Fields inherited from class org.eclipse.emf.ecore.util.EcoreUtil |
GEN_MODEL_PACKAGE_NS_URI, GET, IS_SET, SET, UNSET |
Constructor Summary |
Pivot2Ecore(MetaModelManager metaModelManager,
org.eclipse.emf.common.util.URI ecoreURI,
java.util.Map<java.lang.String,java.lang.Object> options)
|
Method Summary |
protected org.eclipse.emf.ecore.EObject |
convert(Element pivotObject)
|
protected java.util.List<org.eclipse.emf.ecore.EObject> |
convertAll(java.util.List<? extends org.eclipse.emf.ecore.EObject> pivotObjects)
|
static void |
copyComments(org.eclipse.emf.ecore.EModelElement eModelElement,
Element pivotElement)
|
static org.eclipse.emf.ecore.EOperation |
createConstraintEOperation(Constraint pivotConstraint,
java.lang.String operationName)
|
static org.eclipse.emf.ecore.xmi.XMLResource |
createResource(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.resource.Resource pivotResource,
org.eclipse.emf.common.util.URI ecoreURI,
java.util.Map<java.lang.String,java.lang.Object> options)
|
void |
defer(Element pivotElement)
|
protected void |
error(java.lang.String message)
|
static java.lang.Boolean |
getBoolean(java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.String key)
|
<T extends org.eclipse.emf.ecore.EObject>
T |
|
getCreated(java.lang.Class<T> requiredClass,
Element pivotElement)
|
org.eclipse.emf.common.util.URI |
getEcoreURI()
|
MetaModelManager |
getMetaModelManager()
|
java.util.Map<java.lang.String,java.lang.Object> |
getOptions()
|
java.lang.String |
getPrimitiveTypesUriPrefix()
|
static java.lang.String |
getString(java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.String key)
|
static boolean |
installDelegate(org.eclipse.emf.ecore.EModelElement eModelElement,
Constraint pivotConstraint,
org.eclipse.emf.common.util.URI ecoreURI)
|
static void |
installDelegate(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.EOperation eOperation)
|
static void |
installDelegate(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.EStructuralFeature eFeature)
|
static void |
installDelegates(org.eclipse.emf.ecore.EPackage ePackage)
|
static void |
installDelegates(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.EClassifier eClassifier,
Type pivotType)
|
void |
putCreated(Element pivotElement,
org.eclipse.emf.ecore.EModelElement eModelElement)
|
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil |
computeDiagnostic, convertToString, copy, copyAll, create, createFromString, delete, delete, equals, equals, filterDescendants, freeze, generateUUID, generateUUID, getAdapter, getAdapterFactory, getAllContents, getAllContents, getAllContents, getAllContents, getAllContents, getAllProperContents, getAllProperContents, getAllProperContents, getAllProperContents, getAnnotation, getConstraints, getConversionDelegateFactory, getConversionDelegates, 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, setConversionDelegates, 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 |
logger
public static final org.apache.log4j.Logger logger
PRIMITIVE_TYPES_URI_PREFIX
public static final java.lang.String PRIMITIVE_TYPES_URI_PREFIX
- String-valued URI prefix of a package defining the primitive types. Proxy references to
e.g. OCL's String rather than Ecore's EString are constructed by just appending 'String' to
the prefix.
- See Also:
- Constant Field Values
pass1
protected final Pivot2EcoreDeclarationVisitor pass1
pass2
protected final Pivot2EcoreReferenceVisitor pass2
ecoreURI
protected final org.eclipse.emf.common.util.URI ecoreURI
options
protected final java.util.Map<java.lang.String,java.lang.Object> options
primitiveTypesUriPrefix
protected final java.lang.String primitiveTypesUriPrefix
Pivot2Ecore
public Pivot2Ecore(MetaModelManager metaModelManager,
org.eclipse.emf.common.util.URI ecoreURI,
java.util.Map<java.lang.String,java.lang.Object> options)
copyComments
public static void copyComments(org.eclipse.emf.ecore.EModelElement eModelElement,
Element pivotElement)
createConstraintEOperation
public static org.eclipse.emf.ecore.EOperation createConstraintEOperation(Constraint pivotConstraint,
java.lang.String operationName)
createResource
public static org.eclipse.emf.ecore.xmi.XMLResource createResource(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.resource.Resource pivotResource,
org.eclipse.emf.common.util.URI ecoreURI,
java.util.Map<java.lang.String,java.lang.Object> options)
getBoolean
public static java.lang.Boolean getBoolean(java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.String key)
getString
public static java.lang.String getString(java.util.Map<java.lang.String,java.lang.Object> options,
java.lang.String key)
installDelegate
public static boolean installDelegate(org.eclipse.emf.ecore.EModelElement eModelElement,
Constraint pivotConstraint,
org.eclipse.emf.common.util.URI ecoreURI)
installDelegate
public static void installDelegate(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.EOperation eOperation)
installDelegate
public static void installDelegate(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.EStructuralFeature eFeature)
installDelegates
public static void installDelegates(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.EClassifier eClassifier,
Type pivotType)
installDelegates
public static void installDelegates(org.eclipse.emf.ecore.EPackage ePackage)
convert
protected org.eclipse.emf.ecore.EObject convert(Element pivotObject)
convertAll
protected java.util.List<org.eclipse.emf.ecore.EObject> convertAll(java.util.List<? extends org.eclipse.emf.ecore.EObject> pivotObjects)
defer
public void defer(Element pivotElement)
error
protected void error(java.lang.String message)
getCreated
public <T extends org.eclipse.emf.ecore.EObject> T getCreated(java.lang.Class<T> requiredClass,
Element pivotElement)
getEcoreURI
public final org.eclipse.emf.common.util.URI getEcoreURI()
getMetaModelManager
public final MetaModelManager getMetaModelManager()
getOptions
public java.util.Map<java.lang.String,java.lang.Object> getOptions()
getPrimitiveTypesUriPrefix
public java.lang.String getPrimitiveTypesUriPrefix()
putCreated
public void putCreated(Element pivotElement,
org.eclipse.emf.ecore.EModelElement eModelElement)