|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.EcoreSwitch
org.eclipse.uml2.uml.util.UMLUtil.Ecore2UMLConverter
A converter that converts Ecore model elements to representative UML elements.
Field Summary | |
static int |
ANNOTATION_DETAILS
The diagnostic code for cases where annotation details are encountered. |
static int |
ECORE_TAGGED_VALUE
The diagnostic code for cases where an Ecore tagged value is encountered. |
protected Map |
eModelElementToElementMap
|
protected Collection |
ePackages
|
static String |
OPTION__ANNOTATION_DETAILS
The option for handling cases where annotation details are encountered. |
static String |
OPTION__ECORE_TAGGED_VALUES
The option for handling cases where an Ecore tagged value is encountered. |
static String |
OPTION__REDEFINES_ANNOTATIONS
The option for handling cases where a redefines
annotation is encountered. |
static String |
OPTION__SUBSETS_ANNOTATIONS
The option for handling cases where a subsets
annotation is encountered. |
static String |
OPTION__UNION_ANNOTATIONS
The option for handling cases where a union annotation
is encountered. |
static int |
REDEFINES_ANNOTATION
The diagnostic code for cases where a redefines
annotation is encountered. |
static int |
SUBSETS_ANNOTATION
The diagnostic code for cases where a subsets
annotation is encountered. |
static int |
UNION_ANNOTATION
The diagnostic code for cases where a union annotation
is encountered. |
Fields inherited from class org.eclipse.emf.ecore.util.EcoreSwitch |
modelPackage |
Constructor Summary | |
UMLUtil.Ecore2UMLConverter()
|
Method Summary | |
Object |
caseEAttribute(EAttribute eAttribute)
|
Object |
caseEClass(EClass eClass)
|
Object |
caseEDataType(EDataType eDataType)
|
Object |
caseEEnum(EEnum eEnum)
|
Object |
caseEEnumLiteral(EEnumLiteral eEnumLiteral)
|
Object |
caseEModelElement(EModelElement eModelElement)
|
Object |
caseEOperation(EOperation eOperation)
|
Object |
caseEPackage(EPackage ePackage)
|
Object |
caseEParameter(EParameter eParameter)
|
Object |
caseEReference(EReference eReference)
|
Object |
caseETypedElement(ETypedElement eTypedElement)
|
Collection |
convert(Collection eObjects,
Map options,
DiagnosticChain diagnostics,
Map context)
Converts the specified objects using the specified options, reporting problems to the specified diagnostics, within the specified context. |
Object |
defaultCase(EObject eObject)
|
Object |
doSwitch(EObject eObject)
|
protected PrimitiveType |
getEcorePrimitiveType(EModelElement eModelElement,
String name)
|
protected Model |
getEcorePrimitiveTypesLibrary(EModelElement eModelElement)
|
protected Profile |
getEcoreProfile(EModelElement eModelElement)
|
protected Stereotype |
getEcoreStereotype(EModelElement eModelElement,
String name)
|
protected Type |
getType(EModelElement eModelElement,
EClassifier eType)
|
protected Type |
getType(ETypedElement eTypedElement)
|
protected void |
processAnnotationDetails(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValue(Element element,
Stereotype stereotype,
String propertyName,
EModelElement eModelElement,
EStructuralFeature eStructuralFeature,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(Element element,
EClassifier eClassifier,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(Element element,
EPackage ePackage,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(Element element,
EStructuralFeature eStructuralFeature,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processOptions(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processRedefinesAnnotations(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processSubsetsAnnotations(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processUnionAnnotations(Map options,
DiagnosticChain diagnostics,
Map context)
|
Methods inherited from class org.eclipse.emf.ecore.util.EcoreSwitch |
caseEAnnotation, caseEClassifier, caseEFactory, caseENamedElement, caseEStringToStringMapEntry, caseEStructuralFeature, doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String OPTION__ECORE_TAGGED_VALUES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__REDEFINES_ANNOTATIONS
redefines
annotation is encountered. Supported choices are
OPTION__IGNORE
, OPTION__REPORT
, and
OPTION__PROCESS
.
public static final String OPTION__SUBSETS_ANNOTATIONS
subsets
annotation is encountered. Supported choices are
OPTION__IGNORE
, OPTION__REPORT
, and
OPTION__PROCESS
.
public static final String OPTION__UNION_ANNOTATIONS
union
annotation
is encountered. Supported choices are OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__ANNOTATION_DETAILS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final int ECORE_TAGGED_VALUE
public static final int REDEFINES_ANNOTATION
redefines
annotation is encountered.
public static final int SUBSETS_ANNOTATION
subsets
annotation is encountered.
public static final int UNION_ANNOTATION
union
annotation
is encountered.
public static final int ANNOTATION_DETAILS
protected final Map eModelElementToElementMap
protected Collection ePackages
Constructor Detail |
public UMLUtil.Ecore2UMLConverter()
Method Detail |
protected Model getEcorePrimitiveTypesLibrary(EModelElement eModelElement)
protected PrimitiveType getEcorePrimitiveType(EModelElement eModelElement, String name)
protected Type getType(EModelElement eModelElement, EClassifier eType)
protected Type getType(ETypedElement eTypedElement)
public Object caseEAttribute(EAttribute eAttribute)
public Object caseEClass(EClass eClass)
public Object caseEDataType(EDataType eDataType)
public Object caseEEnum(EEnum eEnum)
public Object caseEEnumLiteral(EEnumLiteral eEnumLiteral)
public Object caseEModelElement(EModelElement eModelElement)
public Object caseEOperation(EOperation eOperation)
public Object caseEPackage(EPackage ePackage)
public Object caseEParameter(EParameter eParameter)
public Object caseEReference(EReference eReference)
public Object caseETypedElement(ETypedElement eTypedElement)
public Object defaultCase(EObject eObject)
public Object doSwitch(EObject eObject)
protected Profile getEcoreProfile(EModelElement eModelElement)
protected Stereotype getEcoreStereotype(EModelElement eModelElement, String name)
protected void processEcoreTaggedValue(Element element, Stereotype stereotype, String propertyName, EModelElement eModelElement, EStructuralFeature eStructuralFeature, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(Element element, EPackage ePackage, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(Element element, EClassifier eClassifier, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(Element element, EStructuralFeature eStructuralFeature, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(Map options, DiagnosticChain diagnostics, Map context)
protected void processRedefinesAnnotations(Map options, DiagnosticChain diagnostics, Map context)
protected void processSubsetsAnnotations(Map options, DiagnosticChain diagnostics, Map context)
protected void processUnionAnnotations(Map options, DiagnosticChain diagnostics, Map context)
protected void processAnnotationDetails(Map options, DiagnosticChain diagnostics, Map context)
protected void processOptions(Map options, DiagnosticChain diagnostics, Map context)
public Collection convert(Collection eObjects, Map options, DiagnosticChain diagnostics, Map context)
UML2Util.Converter
convert
in interface UML2Util.Converter
eObjects
- The objects to be converted.options
- The options to use.diagnostics
- The chain of diagnostics to which problems are to be
appended.context
- The cache of context-specific information.
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |