public class AS2Ecore extends AbstractConversion
AbstractConversion.Predicate<T extends org.eclipse.emf.ecore.EObject>
Modifier and Type | Field and Description |
---|---|
protected DelegateInstaller |
delegateInstaller |
protected org.eclipse.emf.common.util.URI |
ecoreURI |
static org.apache.log4j.Logger |
logger |
static java.lang.String |
OPTION_ADD_INVARIANT_COMMENTS
True to add comments to the invariant context and doagnostics parameters.
|
static java.lang.String |
OPTION_BOOLEAN_INVARIANTS
True to apply result = () wrapper to invariant body.
|
static java.lang.String |
OPTION_INVARIANT_PREFIX
True to apply a prefix to invariant names.
|
static java.lang.String |
OPTION_SUPPRESS_DUPLICATES
True to suppress the UML2Ecore duplicates EAnnotation.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
options |
protected AS2EcoreDeclarationVisitor |
pass1 |
protected AS2EcoreReferenceVisitor |
pass2 |
protected java.lang.String |
primitiveTypesUriPrefix |
completeEnvironment, environmentFactory, metamodelManager, standardLibrary
Constructor and Description |
---|
AS2Ecore(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.common.util.URI ecoreURI,
java.util.Map<java.lang.String,java.lang.Object> options) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convert(Element pivotObject) |
org.eclipse.emf.ecore.xmi.XMLResource |
convertResource(org.eclipse.emf.ecore.resource.Resource asResource,
org.eclipse.emf.common.util.URI ecoreURI) |
static void |
copyAnnotationComments(org.eclipse.emf.ecore.EAnnotation eModelElement,
Constraint pivotConstraint) |
static void |
copyComments(org.eclipse.emf.ecore.EModelElement eModelElement,
Element pivotElement) |
static org.eclipse.emf.ecore.EOperation |
createConstraintEOperation(Constraint pivotConstraint,
java.lang.String operationName,
java.util.Map<java.lang.String,java.lang.Object> options) |
static org.eclipse.emf.ecore.xmi.XMLResource |
createResource(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.ecore.resource.Resource asResource,
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> |
getCreated(java.lang.Class<T> requiredClass,
Element pivotElement) |
DelegateInstaller |
getDelegateInstaller() |
org.eclipse.emf.common.util.URI |
getEcoreURI() |
static java.lang.String |
getExportDelegateURI(java.util.Map<java.lang.String,java.lang.Object> options) |
static java.lang.String |
getInvariantPrefix(java.util.Map<java.lang.String,java.lang.Object> options) |
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 |
isAddInvariantComments(java.util.Map<java.lang.String,java.lang.Object> options) |
static boolean |
isBooleanInvariants(java.util.Map<java.lang.String,java.lang.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,
org.eclipse.emf.ecore.EModelElement eModelElement) |
protected void |
setGenerationInProgress(Package asPackage,
boolean isGenerating) |
protected void |
setGenerationInProgress(org.eclipse.emf.ecore.resource.Resource asResource,
boolean isLoading) |
basicGet, getEnvironmentFactory, getEPackage, getMetamodelManager, getStandardLibrary, isId, refreshList, refreshSet
public static final org.apache.log4j.Logger logger
@NonNull public static final java.lang.String OPTION_ADD_INVARIANT_COMMENTS
@NonNull public static final java.lang.String OPTION_BOOLEAN_INVARIANTS
@NonNull public static final java.lang.String OPTION_INVARIANT_PREFIX
@NonNull public static final java.lang.String OPTION_SUPPRESS_DUPLICATES
@NonNull protected final java.util.Map<java.lang.String,java.lang.Object> options
@NonNull protected final DelegateInstaller delegateInstaller
@NonNull protected final AS2EcoreDeclarationVisitor pass1
@NonNull protected final AS2EcoreReferenceVisitor pass2
@NonNull protected final org.eclipse.emf.common.util.URI ecoreURI
@Nullable protected final java.lang.String primitiveTypesUriPrefix
public AS2Ecore(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.common.util.URI ecoreURI, @Nullable java.util.Map<java.lang.String,java.lang.Object> options)
public static void copyAnnotationComments(@NonNull org.eclipse.emf.ecore.EAnnotation eModelElement, @NonNull Constraint pivotConstraint)
public static void copyComments(org.eclipse.emf.ecore.EModelElement eModelElement, Element pivotElement)
@NonNull public static org.eclipse.emf.ecore.EOperation createConstraintEOperation(Constraint pivotConstraint, java.lang.String operationName, @Nullable java.util.Map<java.lang.String,java.lang.Object> options)
@NonNull public static org.eclipse.emf.ecore.xmi.XMLResource createResource(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.ecore.resource.Resource asResource, @NonNull org.eclipse.emf.common.util.URI ecoreURI, @Nullable java.util.Map<java.lang.String,java.lang.Object> options)
@NonNull public static java.lang.Boolean getBoolean(@Nullable java.util.Map<java.lang.String,java.lang.Object> options, @NonNull java.lang.String key)
@Nullable public static java.lang.String getExportDelegateURI(@Nullable java.util.Map<java.lang.String,java.lang.Object> options)
@Nullable public static java.lang.String getInvariantPrefix(@Nullable java.util.Map<java.lang.String,java.lang.Object> options)
@Nullable public static java.lang.String getString(@Nullable java.util.Map<java.lang.String,java.lang.Object> options, @NonNull java.lang.String key)
public static boolean isAddInvariantComments(@NonNull java.util.Map<java.lang.String,java.lang.Object> options)
public static boolean isBooleanInvariants(@NonNull java.util.Map<java.lang.String,java.lang.Object> options)
@NonNull public org.eclipse.emf.ecore.xmi.XMLResource convertResource(@NonNull org.eclipse.emf.ecore.resource.Resource asResource, @NonNull org.eclipse.emf.common.util.URI ecoreURI)
protected void error(@NonNull java.lang.String message)
public <T extends org.eclipse.emf.ecore.EObject> T getCreated(@NonNull java.lang.Class<T> requiredClass, @NonNull Element pivotElement)
@NonNull public DelegateInstaller getDelegateInstaller()
@NonNull public final org.eclipse.emf.common.util.URI getEcoreURI()
@NonNull public java.util.Map<java.lang.String,java.lang.Object> getOptions()
public java.lang.String getPrimitiveTypesUriPrefix()
@Nullable public CollectionType isEcoreCollection(@Nullable Type asType)
public boolean isPivot(@NonNull Package asPackage)
public boolean isSuppressDuplicates()
public void putCreated(@NonNull Element pivotElement, @NonNull org.eclipse.emf.ecore.EModelElement eModelElement)
protected void setGenerationInProgress(@NonNull org.eclipse.emf.ecore.resource.Resource asResource, boolean isLoading)