|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.uml2.uml.util.UMLSwitch
org.eclipse.uml2.uml.util.UMLUtil.UML2EcoreConverter
A converter that converts UML elements to representative Ecore model elements.
Nested Class Summary | |
protected class |
UMLUtil.UML2EcoreConverter.ETypeMatcher
|
protected class |
UMLUtil.UML2EcoreConverter.NameMatcher
|
protected class |
UMLUtil.UML2EcoreConverter.SignatureMatcher
|
Field Summary | |
static int |
ANNOTATION_DETAILS
The diagnostic code for cases where annotation details are encountered. |
static int |
DERIVED_FEATURE
The diagnostic code for cases where a derived feature is encountered. |
static int |
DUPLICATE_FEATURE
The diagnostic code for cases where a duplicate feature is detected. |
static int |
DUPLICATE_FEATURE_INHERITANCE
The diagnostic code for cases where a feature is inherited more than once. |
static int |
DUPLICATE_OPERATION
The diagnostic code for cases where a duplicate operation is detected. |
static int |
DUPLICATE_OPERATION_INHERITANCE
The diagnostic code for cases where an operation is inherited more than once. |
static int |
ECORE_TAGGED_VALUE
The diagnostic code for cases where an Ecore tagged value is encountered. |
protected Map |
elementToEModelElementMap
|
static String |
OPTION__ANNOTATION_DETAILS
The option for handling cases where annotation details are encountered. |
static String |
OPTION__DERIVED_FEATURES
The option for handling cases where a derived feature is encountered. |
static String |
OPTION__DUPLICATE_FEATURE_INHERITANCE
The option for handling cases where a feature is inherited more than once. |
static String |
OPTION__DUPLICATE_FEATURES
The option for handling cases where a duplicate feature is detected. |
static String |
OPTION__DUPLICATE_OPERATION_INHERITANCE
The option for handling cases where an operation is inherited more than once. |
static String |
OPTION__DUPLICATE_OPERATIONS
The option for handling cases where a duplicate operation is detected. |
static String |
OPTION__ECORE_TAGGED_VALUES
The option for handling cases where an Ecore tagged value is encountered. |
static String |
OPTION__REDEFINING_OPERATIONS
The option for handling cases where a redefining operation is encountered. |
static String |
OPTION__REDEFINING_PROPERTIES
The option for handling cases where a redefining property is encountered. |
static String |
OPTION__SUBSETTING_PROPERTIES
The option for handling cases where a subsetting property is encountered. |
static String |
OPTION__SUPER_CLASS_ORDER
The option for handling cases where superclasses are not ordered. |
static String |
OPTION__UNION_PROPERTIES
The option for handling cases where a derived union property is encountered. |
protected Collection |
packages
|
static int |
REDEFINING_OPERATION
The diagnostic code for cases where a redefining operation is encountered. |
static int |
REDEFINING_PROPERTY
The diagnostic code for cases where a redefining property is encountered. |
static int |
SUBSETTING_PROPERTY
The diagnostic code for cases where a subsetting property is encountered. |
static int |
SUPER_CLASS_ORDER
The diagnostic code for cases where superclasses are not ordered. |
static int |
UNION_PROPERTY
The diagnostic code for cases where a derived union property is encountered. |
Fields inherited from class org.eclipse.uml2.uml.util.UMLSwitch |
modelPackage |
Constructor Summary | |
UMLUtil.UML2EcoreConverter()
|
Method Summary | |
Object |
caseClass(Class class_)
Returns the result of interpretting the object as an instance of 'Class' |
Object |
caseComment(Comment comment)
Returns the result of interpretting the object as an instance of 'Comment' |
Object |
caseConstraint(Constraint constraint)
Returns the result of interpretting the object as an instance of 'Constraint' |
Object |
caseEModelElement(EModelElement eModelElement)
Returns the result of interpretting the object as an instance of 'EModel Element' |
Object |
caseEnumeration(Enumeration enumeration)
Returns the result of interpretting the object as an instance of 'Enumeration' |
Object |
caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
Returns the result of interpretting the object as an instance of 'Enumeration Literal' |
Object |
caseGeneralization(Generalization generalization)
Returns the result of interpretting the object as an instance of 'Generalization' |
Object |
caseInterface(Interface interface_)
Returns the result of interpretting the object as an instance of 'Interface' |
Object |
caseInterfaceRealization(InterfaceRealization interfaceRealization)
Returns the result of interpretting the object as an instance of 'Interface Realization' |
Object |
caseMultiplicityElement(MultiplicityElement multiplicityElement)
Returns the result of interpretting the object as an instance of 'Multiplicity Element' |
Object |
caseOperation(Operation operation)
Returns the result of interpretting the object as an instance of 'Operation' |
Object |
casePackage(Package package_)
Returns the result of interpretting the object as an instance of 'Package' |
Object |
caseParameter(Parameter parameter)
Returns the result of interpretting the object as an instance of 'Parameter' |
Object |
casePrimitiveType(PrimitiveType primitiveType)
Returns the result of interpretting the object as an instance of 'Primitive Type' |
Object |
caseProperty(Property property)
Returns the result of interpretting the object as an instance of 'Property' |
Object |
caseTypedElement(TypedElement typedElement)
Returns the result of interpretting the object as an instance of 'Typed Element' |
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)
Returns the result of interpretting the object as an instance of 'EObject' |
Object |
doSwitch(EObject eObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
protected void |
ensureConformity(ETypedElement eTypedElement,
ETypedElement otherETypedElement)
|
protected Stereotype |
getAppliedEcoreStereotype(Element element,
String name)
|
protected EClassifier |
getEType(Type type)
|
protected EClassifier |
getEType(TypedElement typedElement)
|
protected boolean |
isCompositeSubset(Property property)
|
protected void |
processAnnotationDetails(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processDerivedFeatures(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processDuplicateFeatureInheritance(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processDuplicateFeatures(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processDuplicateOperationInheritance(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processDuplicateOperations(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValue(EModelElement eModelElement,
EStructuralFeature eStructuralFeature,
Element element,
Stereotype stereotype,
String propertyName,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EClassifier eClassifier,
Element element,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EEnum eEnum,
Element element,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EEnumLiteral eEnumLiteral,
Element element,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EOperation eOperation,
Element element,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EPackage ePackage,
Element element,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EParameter eParameter,
Element element,
Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processEcoreTaggedValues(EStructuralFeature eStructuralFeature,
Element element,
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 |
processRedefiningOperations(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processRedefiningProperties(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processSubsettingProperties(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processSuperClassOrder(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
processUnionProperties(Map options,
DiagnosticChain diagnostics,
Map context)
|
protected void |
qualifyName(ENamedElement eNamedElement)
|
protected void |
setName(ENamedElement eNamedElement,
NamedElement namedElement)
|
protected void |
setName(ENamedElement eNamedElement,
String name,
boolean validate)
|
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__REDEFINING_OPERATIONS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__REDEFINING_PROPERTIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__SUBSETTING_PROPERTIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__UNION_PROPERTIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__DERIVED_FEATURES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final String OPTION__DUPLICATE_OPERATIONS
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final String OPTION__DUPLICATE_OPERATION_INHERITANCE
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final String OPTION__DUPLICATE_FEATURES
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final String OPTION__DUPLICATE_FEATURE_INHERITANCE
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final String OPTION__SUPER_CLASS_ORDER
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 REDEFINING_OPERATION
public static final int REDEFINING_PROPERTY
public static final int SUBSETTING_PROPERTY
public static final int UNION_PROPERTY
public static final int DERIVED_FEATURE
public static final int DUPLICATE_OPERATION
public static final int DUPLICATE_OPERATION_INHERITANCE
public static final int DUPLICATE_FEATURE
public static final int DUPLICATE_FEATURE_INHERITANCE
public static final int SUPER_CLASS_ORDER
public static final int ANNOTATION_DETAILS
protected final Map elementToEModelElementMap
protected Collection packages
Constructor Detail |
public UMLUtil.UML2EcoreConverter()
Method Detail |
protected void setName(ENamedElement eNamedElement, String name, boolean validate)
protected void setName(ENamedElement eNamedElement, NamedElement namedElement)
protected EClassifier getEType(Type type)
protected EClassifier getEType(TypedElement typedElement)
protected Stereotype getAppliedEcoreStereotype(Element element, String name)
public Object caseClass(Class class_)
UMLSwitch
caseClass
in class UMLSwitch
class_
- the target of the switch.
doSwitch(EObject)
public Object caseComment(Comment comment)
UMLSwitch
caseComment
in class UMLSwitch
comment
- the target of the switch.
doSwitch(EObject)
public Object caseConstraint(Constraint constraint)
UMLSwitch
caseConstraint
in class UMLSwitch
constraint
- the target of the switch.
doSwitch(EObject)
public Object caseEModelElement(EModelElement eModelElement)
UMLSwitch
caseEModelElement
in class UMLSwitch
eModelElement
- the target of the switch.
doSwitch(EObject)
public Object caseEnumeration(Enumeration enumeration)
UMLSwitch
caseEnumeration
in class UMLSwitch
enumeration
- the target of the switch.
doSwitch(EObject)
public Object caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
UMLSwitch
caseEnumerationLiteral
in class UMLSwitch
enumerationLiteral
- the target of the switch.
doSwitch(EObject)
public Object caseGeneralization(Generalization generalization)
UMLSwitch
caseGeneralization
in class UMLSwitch
generalization
- the target of the switch.
doSwitch(EObject)
public Object caseInterfaceRealization(InterfaceRealization interfaceRealization)
UMLSwitch
caseInterfaceRealization
in class UMLSwitch
interfaceRealization
- the target of the switch.
doSwitch(EObject)
public Object caseInterface(Interface interface_)
UMLSwitch
caseInterface
in class UMLSwitch
interface_
- the target of the switch.
doSwitch(EObject)
public Object caseMultiplicityElement(MultiplicityElement multiplicityElement)
UMLSwitch
caseMultiplicityElement
in class UMLSwitch
multiplicityElement
- the target of the switch.
doSwitch(EObject)
public Object caseOperation(Operation operation)
UMLSwitch
caseOperation
in class UMLSwitch
operation
- the target of the switch.
doSwitch(EObject)
public Object casePackage(Package package_)
UMLSwitch
casePackage
in class UMLSwitch
package_
- the target of the switch.
doSwitch(EObject)
public Object caseParameter(Parameter parameter)
UMLSwitch
caseParameter
in class UMLSwitch
parameter
- the target of the switch.
doSwitch(EObject)
public Object casePrimitiveType(PrimitiveType primitiveType)
UMLSwitch
casePrimitiveType
in class UMLSwitch
primitiveType
- the target of the switch.
doSwitch(EObject)
public Object caseProperty(Property property)
UMLSwitch
caseProperty
in class UMLSwitch
property
- the target of the switch.
doSwitch(EObject)
public Object caseTypedElement(TypedElement typedElement)
UMLSwitch
caseTypedElement
in class UMLSwitch
typedElement
- the target of the switch.
doSwitch(EObject)
public Object defaultCase(EObject eObject)
UMLSwitch
defaultCase
in class UMLSwitch
eObject
- the target of the switch.
UMLSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
public Object doSwitch(EObject eObject)
UMLSwitch
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class UMLSwitch
caseXXX
call.protected void processEcoreTaggedValue(EModelElement eModelElement, EStructuralFeature eStructuralFeature, Element element, Stereotype stereotype, String propertyName, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EClassifier eClassifier, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EEnum eEnum, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EEnumLiteral eEnumLiteral, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EOperation eOperation, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EPackage ePackage, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EParameter eParameter, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(EStructuralFeature eStructuralFeature, Element element, Map options, DiagnosticChain diagnostics, Map context)
protected void processEcoreTaggedValues(Map options, DiagnosticChain diagnostics, Map context)
protected void processRedefiningOperations(Map options, DiagnosticChain diagnostics, Map context)
protected void processRedefiningProperties(Map options, DiagnosticChain diagnostics, Map context)
protected boolean isCompositeSubset(Property property)
protected void processSubsettingProperties(Map options, DiagnosticChain diagnostics, Map context)
protected void processUnionProperties(Map options, DiagnosticChain diagnostics, Map context)
protected void processDerivedFeatures(Map options, DiagnosticChain diagnostics, Map context)
protected void ensureConformity(ETypedElement eTypedElement, ETypedElement otherETypedElement)
protected void qualifyName(ENamedElement eNamedElement)
protected void processDuplicateOperations(Map options, DiagnosticChain diagnostics, Map context)
protected void processDuplicateOperationInheritance(Map options, DiagnosticChain diagnostics, Map context)
protected void processDuplicateFeatures(Map options, DiagnosticChain diagnostics, Map context)
protected void processDuplicateFeatureInheritance(Map options, DiagnosticChain diagnostics, Map context)
protected void processSuperClassOrder(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 |