|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.uml2.util.UML2Switch
org.eclipse.uml2.util.UML2Util.UML22EcoreConverter
Nested Class Summary | |
---|---|
protected class |
UML2Util.UML22EcoreConverter.ETypeMatcher
|
protected class |
UML2Util.UML22EcoreConverter.NameMatcher
|
protected class |
UML2Util.UML22EcoreConverter.SignatureMatcher
|
Field Summary | |
---|---|
static int |
DERIVED_FEATURE
|
static int |
DUPLICATE_FEATURE
|
static int |
DUPLICATE_FEATURE_INHERITANCE
|
static int |
DUPLICATE_OPERATION
|
static int |
DUPLICATE_OPERATION_INHERITANCE
|
static int |
ECORE_TAGGED_VALUE
|
protected java.util.Map |
elementToEModelElementMap
|
static java.lang.String |
OPTION__DERIVED_FEATURES
|
static java.lang.String |
OPTION__DUPLICATE_FEATURE_INHERITANCE
|
static java.lang.String |
OPTION__DUPLICATE_FEATURES
|
static java.lang.String |
OPTION__DUPLICATE_OPERATION_INHERITANCE
|
static java.lang.String |
OPTION__DUPLICATE_OPERATIONS
|
static java.lang.String |
OPTION__ECORE_TAGGED_VALUES
|
static java.lang.String |
OPTION__REDEFINING_OPERATIONS
|
static java.lang.String |
OPTION__REDEFINING_PROPERTIES
|
static java.lang.String |
OPTION__SUBSETTING_PROPERTIES
|
static java.lang.String |
OPTION__UNION_PROPERTIES
|
protected java.util.Collection |
packages
|
static int |
REDEFINING_OPERATION
|
static int |
REDEFINING_PROPERTY
|
static int |
SUBSETTING_PROPERTY
|
static int |
UNION_PROPERTY
|
Fields inherited from class org.eclipse.uml2.util.UML2Switch |
---|
copyright, modelPackage |
Constructor Summary | |
---|---|
UML2Util.UML22EcoreConverter()
|
Method Summary | |
---|---|
java.lang.Object |
caseClass(Class class_)
Returns the result of interpretting the object as an instance of 'Class' |
java.lang.Object |
caseComment(Comment comment)
Returns the result of interpretting the object as an instance of 'Comment' |
java.lang.Object |
caseConstraint(Constraint constraint)
Returns the result of interpretting the object as an instance of 'Constraint' |
java.lang.Object |
caseEModelElement(EModelElement eModelElement)
Returns the result of interpretting the object as an instance of 'EModel Element' |
java.lang.Object |
caseEnumeration(Enumeration enumeration)
Returns the result of interpretting the object as an instance of 'Enumeration' |
java.lang.Object |
caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
Returns the result of interpretting the object as an instance of 'Enumeration Literal' |
java.lang.Object |
caseGeneralization(Generalization generalization)
Returns the result of interpretting the object as an instance of 'Generalization' |
java.lang.Object |
caseImplementation(Implementation implementation)
Returns the result of interpretting the object as an instance of 'Implementation' |
java.lang.Object |
caseInterface(Interface interface_)
Returns the result of interpretting the object as an instance of 'Interface' |
java.lang.Object |
caseMultiplicityElement(MultiplicityElement multiplicityElement)
Returns the result of interpretting the object as an instance of 'Multiplicity Element' |
java.lang.Object |
caseOperation(Operation operation)
Returns the result of interpretting the object as an instance of 'Operation' |
java.lang.Object |
casePackage(Package package_)
Returns the result of interpretting the object as an instance of 'Package' |
java.lang.Object |
caseParameter(Parameter parameter)
Returns the result of interpretting the object as an instance of 'Parameter' |
java.lang.Object |
casePrimitiveType(PrimitiveType primitiveType)
Returns the result of interpretting the object as an instance of 'Primitive Type' |
java.lang.Object |
caseProperty(Property property)
Returns the result of interpretting the object as an instance of 'Property' |
java.lang.Object |
caseTypedElement(TypedElement typedElement)
Returns the result of interpretting the object as an instance of 'Typed Element' |
java.util.Collection |
convert(java.util.Collection eObjects,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
java.lang.Object |
defaultCase(EObject eObject)
Returns the result of interpretting the object as an instance of 'EObject' |
java.lang.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,
java.lang.String name)
|
protected EClassifier |
getEType(Type type)
|
protected EClassifier |
getEType(TypedElement typedElement)
|
protected void |
processDerivedFeatures(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processDuplicateFeatureInheritance(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processDuplicateFeatures(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processDuplicateOperationInheritance(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processDuplicateOperations(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValue(EModelElement eModelElement,
EStructuralFeature eStructuralFeature,
Element element,
Stereotype stereotype,
java.lang.String propertyName,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EClassifier eClassifier,
Classifier classifier,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EEnum eEnum,
Enumeration enumeration,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EEnumLiteral eEnumLiteral,
EnumerationLiteral enumerationLiteral,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EOperation eOperation,
Operation operation,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EPackage ePackage,
Package package_,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EParameter eParameter,
Parameter parameter,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(EStructuralFeature eStructuralFeature,
Property property,
java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processEcoreTaggedValues(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processOptions(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processRedefiningOperations(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processRedefiningProperties(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processSubsettingProperties(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
processUnionProperties(java.util.Map options,
DiagnosticChain diagnostics,
java.util.Map context)
|
protected void |
qualifyName(ENamedElement eNamedElement)
|
protected void |
setName(ENamedElement eNamedElement,
NamedElement namedElement)
|
protected void |
setName(ENamedElement eNamedElement,
java.lang.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 java.lang.String OPTION__ECORE_TAGGED_VALUES
public static final java.lang.String OPTION__REDEFINING_OPERATIONS
public static final java.lang.String OPTION__REDEFINING_PROPERTIES
public static final java.lang.String OPTION__SUBSETTING_PROPERTIES
public static final java.lang.String OPTION__UNION_PROPERTIES
public static final java.lang.String OPTION__DERIVED_FEATURES
public static final java.lang.String OPTION__DUPLICATE_OPERATIONS
public static final java.lang.String OPTION__DUPLICATE_OPERATION_INHERITANCE
public static final java.lang.String OPTION__DUPLICATE_FEATURES
public static final java.lang.String OPTION__DUPLICATE_FEATURE_INHERITANCE
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
protected final java.util.Map elementToEModelElementMap
protected java.util.Collection packages
Constructor Detail |
public UML2Util.UML22EcoreConverter()
Method Detail |
protected void setName(ENamedElement eNamedElement, java.lang.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, java.lang.String name)
public java.lang.Object caseClass(Class class_)
UML2Switch
caseClass
in class UML2Switch
class_
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseComment(Comment comment)
UML2Switch
caseComment
in class UML2Switch
comment
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseConstraint(Constraint constraint)
UML2Switch
caseConstraint
in class UML2Switch
constraint
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEModelElement(EModelElement eModelElement)
UML2Switch
caseEModelElement
in class UML2Switch
eModelElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEnumeration(Enumeration enumeration)
UML2Switch
caseEnumeration
in class UML2Switch
enumeration
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
UML2Switch
caseEnumerationLiteral
in class UML2Switch
enumerationLiteral
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGeneralization(Generalization generalization)
UML2Switch
caseGeneralization
in class UML2Switch
generalization
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseImplementation(Implementation implementation)
UML2Switch
caseImplementation
in class UML2Switch
implementation
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseInterface(Interface interface_)
UML2Switch
caseInterface
in class UML2Switch
interface_
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMultiplicityElement(MultiplicityElement multiplicityElement)
UML2Switch
caseMultiplicityElement
in class UML2Switch
multiplicityElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseOperation(Operation operation)
UML2Switch
caseOperation
in class UML2Switch
operation
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePackage(Package package_)
UML2Switch
casePackage
in class UML2Switch
package_
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseParameter(Parameter parameter)
UML2Switch
caseParameter
in class UML2Switch
parameter
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePrimitiveType(PrimitiveType primitiveType)
UML2Switch
casePrimitiveType
in class UML2Switch
primitiveType
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseProperty(Property property)
UML2Switch
caseProperty
in class UML2Switch
property
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseTypedElement(TypedElement typedElement)
UML2Switch
caseTypedElement
in class UML2Switch
typedElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object defaultCase(EObject eObject)
UML2Switch
defaultCase
in class UML2Switch
eObject
- the target of the switch.
UML2Switch.doSwitch(org.eclipse.emf.ecore.EObject)
public java.lang.Object doSwitch(EObject eObject)
UML2Switch
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class UML2Switch
caseXXX
call.protected void processEcoreTaggedValue(EModelElement eModelElement, EStructuralFeature eStructuralFeature, Element element, Stereotype stereotype, java.lang.String propertyName, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EClassifier eClassifier, Classifier classifier, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EEnum eEnum, Enumeration enumeration, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EEnumLiteral eEnumLiteral, EnumerationLiteral enumerationLiteral, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EOperation eOperation, Operation operation, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EPackage ePackage, Package package_, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EParameter eParameter, Parameter parameter, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(EStructuralFeature eStructuralFeature, Property property, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processEcoreTaggedValues(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processRedefiningOperations(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processRedefiningProperties(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processSubsettingProperties(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processUnionProperties(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processDerivedFeatures(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void ensureConformity(ETypedElement eTypedElement, ETypedElement otherETypedElement)
protected void qualifyName(ENamedElement eNamedElement)
protected void processDuplicateOperations(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processDuplicateOperationInheritance(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processDuplicateFeatures(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processDuplicateFeatureInheritance(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
protected void processOptions(java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
public java.util.Collection convert(java.util.Collection eObjects, java.util.Map options, DiagnosticChain diagnostics, java.util.Map context)
convert
in interface UML2Util.Converter
|
Copyright 2003, 2005 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |