public class AS2Ecore extends AbstractConversion
Modifier and Type | Class and Description |
---|---|
class |
AS2Ecore.InverseConversion
An InverseConversion is installed as an Ecore2AS converter following an AS2Ecore conversion so
that requests for Ecore2AS conversions are satisfoed by inverting the AS2Ecore rather than by
performing an additional conflicting Ecore2AS conversion.
|
AbstractConversion.Predicate<T extends EObject>
Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
static String |
OPTION_ADD_INVARIANT_COMMENTS
True to add comments to the invariant context and diagnostics parameters.
|
static String |
OPTION_BOOLEAN_INVARIANTS
True to apply result = () wrapper to invariant body.
|
static String |
OPTION_GENERATE_STRUCTURAL_XMI_IDS
True to use XMIUtil.StructuralENamedElementIdCreator to assign xmi:ids.
|
static String |
OPTION_INVARIANT_PREFIX
True to apply a prefix to invariant names.
|
static String |
OPTION_SUPPRESS_DUPLICATES
True to suppress the UML2Ecore duplicates EAnnotation.
|
Constructor and Description |
---|
AS2Ecore(EnvironmentFactoryInternal environmentFactory,
URI ecoreURI,
Map<String,Object> options) |
Modifier and Type | Method and Description |
---|---|
XMLResource |
convertResource(Resource asResource,
URI ecoreURI) |
static void |
copyAnnotationComments(EAnnotation eModelElement,
Constraint pivotConstraint) |
static void |
copyComments(EModelElement eModelElement,
Element pivotElement)
Deprecated.
Use copyCommentsAndDocumentation
|
static void |
copyCommentsAndDocumentation(EModelElement eModelElement,
Element pivotElement)
Create/add/remove a http://www.eclipse.org/emf/2002/GenModel::documentation detail to eModelElement
to correspond to the splice of all pivotElement's Comment bodies and http://www.eclipse.org/emf/2002/GenModel
Annotation documentation details.
|
static EOperation |
createConstraintEOperation(Constraint pivotConstraint,
String operationName,
Map<String,Object> options) |
static XMLResource |
createResource(EnvironmentFactoryInternal environmentFactory,
Resource asResource,
URI ecoreURI,
Map<String,Object> options) |
void |
defer(Element pivotElement) |
static Boolean |
getBoolean(Map<String,Object> options,
String key) |
<T extends EObject> |
getCreated(Class<T> requiredClass,
Element pivotElement) |
DelegateInstaller |
getDelegateInstaller() |
URI |
getEcoreURI() |
static String |
getExportDelegateURI(Map<String,Object> options) |
static String |
getInvariantPrefix(Map<String,Object> options) |
Map<String,Object> |
getOptions() |
String |
getPrimitiveTypesUriPrefix() |
static String |
getString(Map<String,Object> options,
String key) |
static boolean |
isAddInvariantComments(Map<String,Object> options) |
static boolean |
isBooleanInvariants(Map<String,Object> options) |
CollectionType |
isEcoreCollection(Type asType)
Return the non-Null CollectionType if asType can use Ecore multiplicities to express the (outer) collection.
|
boolean |
isPivot(Package asPackage)
Return tre if asPackage is a Pivot Metamodel.
|
boolean |
isSuppressDuplicates() |
void |
putCreated(Element pivotElement,
EModelElement eModelElement) |
getEnvironmentFactory, getEPackage, getMetamodelManager, getStandardLibrary, isId, refreshList
public static final Logger logger
public static final String OPTION_ADD_INVARIANT_COMMENTS
public static final String OPTION_BOOLEAN_INVARIANTS
public static final String OPTION_INVARIANT_PREFIX
public static final String OPTION_SUPPRESS_DUPLICATES
public static final String OPTION_GENERATE_STRUCTURAL_XMI_IDS
public AS2Ecore(EnvironmentFactoryInternal environmentFactory, URI ecoreURI, Map<String,Object> options)
public static void copyAnnotationComments(EAnnotation eModelElement, Constraint pivotConstraint)
@Deprecated public static void copyComments(EModelElement eModelElement, Element pivotElement)
public static void copyCommentsAndDocumentation(EModelElement eModelElement, Element pivotElement)
public static EOperation createConstraintEOperation(Constraint pivotConstraint, String operationName, Map<String,Object> options)
public static XMLResource createResource(EnvironmentFactoryInternal environmentFactory, Resource asResource, URI ecoreURI, Map<String,Object> options)
public XMLResource convertResource(Resource asResource, URI ecoreURI)
public void defer(Element pivotElement)
public DelegateInstaller getDelegateInstaller()
public final URI getEcoreURI()
public String getPrimitiveTypesUriPrefix()
public CollectionType isEcoreCollection(Type asType)
public boolean isPivot(Package asPackage)
public boolean isSuppressDuplicates()
public void putCreated(Element pivotElement, EModelElement eModelElement)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.