|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.uml2.uml.util.UMLSwitch<java.lang.Object>
org.eclipse.uml2.uml.util.UMLUtil.UML2EcoreConverter
public static class 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 | |
---|---|
protected static java.util.regex.Pattern |
ANNOTATION_DETAIL_PATTERN
|
static int |
ANNOTATION_DETAILS
The diagnostic code for cases where annotation details are encountered. |
protected static java.util.regex.Pattern |
ANNOTATION_PATTERN
|
static int |
CAMEL_CASE_NAME
The diagnostic code for cases where names are not camel case. |
static int |
COMMENT
The diagnostic code for cases where comments are encountered. |
protected java.util.Map<java.lang.Object,java.lang.Object> |
context
|
static int |
DERIVED_FEATURE
The diagnostic code for cases where a derived feature is encountered. |
protected org.eclipse.emf.common.util.DiagnosticChain |
diagnostics
|
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 java.util.Map<Element,org.eclipse.emf.ecore.EModelElement> |
elementToEModelElementMap
|
static int |
INVARIANT_CONSTRAINT
The diagnostic code for cases where invariant constraints are encountered. |
static int |
OPERATION_BODY
The diagnostic code for cases where operation body details are encountered. |
static java.lang.String |
OPTION__ANNOTATION_DETAILS
The option for handling cases where annotation details are encountered. |
static java.lang.String |
OPTION__CAMEL_CASE_NAMES
The option for handling cases where names are not camel case. |
static java.lang.String |
OPTION__COMMENTS
The option for handling cases where comments are encountered. |
static java.lang.String |
OPTION__DERIVED_FEATURES
The option for handling cases where a derived feature is encountered. |
static java.lang.String |
OPTION__DUPLICATE_FEATURE_INHERITANCE
The option for handling cases where a feature is inherited more than once. |
static java.lang.String |
OPTION__DUPLICATE_FEATURES
The option for handling cases where a duplicate feature is detected. |
static java.lang.String |
OPTION__DUPLICATE_OPERATION_INHERITANCE
The option for handling cases where an operation is inherited more than once. |
static java.lang.String |
OPTION__DUPLICATE_OPERATIONS
The option for handling cases where a duplicate operation is detected. |
static java.lang.String |
OPTION__ECORE_TAGGED_VALUES
The option for handling cases where an Ecore tagged value is encountered. |
static java.lang.String |
OPTION__INVARIANT_CONSTRAINTS
The option for handling cases where invariant constraints are encountered. |
static java.lang.String |
OPTION__OPERATION_BODIES
The option for handling cases where operation bodies are encountered. |
static java.lang.String |
OPTION__REDEFINING_OPERATIONS
The option for handling cases where a redefining operation is encountered. |
static java.lang.String |
OPTION__REDEFINING_PROPERTIES
The option for handling cases where a redefining property is encountered. |
static java.lang.String |
OPTION__SUBSETTING_PROPERTIES
The option for handling cases where a subsetting property is encountered. |
static java.lang.String |
OPTION__SUPER_CLASS_ORDER
The option for handling cases where superclasses are not ordered. |
static java.lang.String |
OPTION__UNION_PROPERTIES
The option for handling cases where a derived union property is encountered. |
protected java.util.Map<java.lang.String,java.lang.String> |
options
|
protected java.util.Collection<Package> |
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 | |
---|---|
java.lang.Object |
caseClass(Class class_)
Returns the result of interpreting the object as an instance of 'Class' |
java.lang.Object |
caseComment(Comment comment)
Returns the result of interpreting the object as an instance of 'Comment' |
java.lang.Object |
caseConstraint(Constraint constraint)
Returns the result of interpreting the object as an instance of 'Constraint' |
java.lang.Object |
caseDataType(DataType dataType)
Returns the result of interpreting the object as an instance of 'Data Type' |
java.lang.Object |
caseEModelElement(org.eclipse.emf.ecore.EModelElement eModelElement)
Returns the result of interpreting the object as an instance of 'EModel Element' |
java.lang.Object |
caseEnumeration(Enumeration enumeration)
Returns the result of interpreting the object as an instance of 'Enumeration' |
java.lang.Object |
caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
Returns the result of interpreting the object as an instance of 'Enumeration Literal' |
java.lang.Object |
caseGeneralization(Generalization generalization)
Returns the result of interpreting the object as an instance of 'Generalization' |
java.lang.Object |
caseInterface(Interface interface_)
Returns the result of interpreting the object as an instance of 'Interface' |
java.lang.Object |
caseInterfaceRealization(InterfaceRealization interfaceRealization)
Returns the result of interpreting the object as an instance of 'Interface Realization' |
java.lang.Object |
caseMultiplicityElement(MultiplicityElement multiplicityElement)
Returns the result of interpreting the object as an instance of 'Multiplicity Element' |
java.lang.Object |
caseOperation(Operation operation)
Returns the result of interpreting the object as an instance of 'Operation' |
java.lang.Object |
casePackage(Package package_)
Returns the result of interpreting the object as an instance of 'Package' |
java.lang.Object |
caseParameter(Parameter parameter)
Returns the result of interpreting the object as an instance of 'Parameter' |
java.lang.Object |
caseParameterableElement(ParameterableElement parameterableElement)
Returns the result of interpreting the object as an instance of 'Parameterable Element' |
java.lang.Object |
casePrimitiveType(PrimitiveType primitiveType)
Returns the result of interpreting the object as an instance of 'Primitive Type' |
java.lang.Object |
caseProperty(Property property)
Returns the result of interpreting the object as an instance of 'Property' |
java.lang.Object |
caseTemplateParameter(TemplateParameter templateParameter)
Returns the result of interpreting the object as an instance of 'Template Parameter' |
java.lang.Object |
caseTemplateSignature(TemplateSignature templateSignature)
Returns the result of interpreting the object as an instance of 'Template Signature' |
java.lang.Object |
caseTypedElement(TypedElement typedElement)
Returns the result of interpreting the object as an instance of 'Typed Element' |
java.util.Collection<? extends org.eclipse.emf.ecore.EObject> |
convert(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eObjects,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Converts the specified objects using the specified options, reporting problems to the specified diagnostics, within the specified context. |
java.lang.Object |
defaultCase(org.eclipse.emf.ecore.EObject eObject)
Returns the result of interpreting the object as an instance of 'EObject' |
java.lang.Object |
doSwitch(org.eclipse.emf.ecore.EObject eObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
protected void |
ensureConformity(org.eclipse.emf.ecore.ETypedElement eTypedElement,
org.eclipse.emf.ecore.ETypedElement otherETypedElement)
|
protected Stereotype |
getAppliedEcoreStereotype(Element element,
java.lang.String name)
|
protected org.eclipse.emf.ecore.EGenericType |
getEGenericType(Type type)
|
protected org.eclipse.emf.ecore.EClassifier |
getEType(Type type)
|
protected org.eclipse.emf.ecore.EClassifier |
getEType(TypedElement typedElement)
|
protected org.eclipse.emf.ecore.ETypeParameter |
getETypeParameter(Type type)
|
protected boolean |
isCompositeSubset(Property property)
|
protected boolean |
isEClass(Namespace namespace)
|
static boolean |
isEDataType(Namespace namespace)
|
protected boolean |
isEGenericType(Classifier classifier)
|
protected void |
processAnnotationDetails(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processComment(org.eclipse.emf.ecore.EModelElement eModelElement,
java.lang.String comment,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processDerivedFeatures(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processDuplicateFeatureInheritance(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processDuplicateFeatures(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processDuplicateOperationInheritance(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processDuplicateOperations(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValue(org.eclipse.emf.ecore.EModelElement eModelElement,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
Element element,
Stereotype stereotype,
java.lang.String propertyName,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EClassifier eClassifier,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EEnum eEnum,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EGenericType eGenericType,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EOperation eOperation,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EPackage ePackage,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EParameter eParameter,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(org.eclipse.emf.ecore.ETypeParameter eTypeParameter,
Element element,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processEcoreTaggedValues(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected org.eclipse.emf.ecore.EModelElement |
processInvariantConstraint(org.eclipse.emf.ecore.EClassifier eClassifier,
Constraint constraint,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processOperationBodies(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processOperationBody(org.eclipse.emf.ecore.EOperation eOperation,
org.eclipse.emf.common.util.EList<java.lang.String> languages,
org.eclipse.emf.common.util.EList<java.lang.String> bodies,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processOptions(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processRedefiningOperations(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processRedefiningProperties(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processSubsettingProperties(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processSuperClassOrder(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
processUnionProperties(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
protected void |
qualifyName(org.eclipse.emf.ecore.ENamedElement eNamedElement)
|
protected void |
qualifyName(org.eclipse.emf.ecore.ENamedElement eNamedElement,
java.lang.String qualifier)
|
protected void |
setName(org.eclipse.emf.ecore.ENamedElement eNamedElement,
NamedElement namedElement)
|
protected void |
setName(org.eclipse.emf.ecore.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
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__REDEFINING_OPERATIONS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__REDEFINING_PROPERTIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__SUBSETTING_PROPERTIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__UNION_PROPERTIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__DERIVED_FEATURES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__DUPLICATE_OPERATIONS
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final java.lang.String OPTION__DUPLICATE_OPERATION_INHERITANCE
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final java.lang.String OPTION__DUPLICATE_FEATURES
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final java.lang.String OPTION__DUPLICATE_FEATURE_INHERITANCE
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final java.lang.String OPTION__SUPER_CLASS_ORDER
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__ANNOTATION_DETAILS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__INVARIANT_CONSTRAINTS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__OPERATION_BODIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__COMMENTS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__CAMEL_CASE_NAMES
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
public static final int INVARIANT_CONSTRAINT
public static final int OPERATION_BODY
public static final int COMMENT
public static final int CAMEL_CASE_NAME
protected static final java.util.regex.Pattern ANNOTATION_PATTERN
protected static final java.util.regex.Pattern ANNOTATION_DETAIL_PATTERN
protected final java.util.Map<Element,org.eclipse.emf.ecore.EModelElement> elementToEModelElementMap
protected java.util.Collection<Package> packages
protected java.util.Map<java.lang.String,java.lang.String> options
protected org.eclipse.emf.common.util.DiagnosticChain diagnostics
protected java.util.Map<java.lang.Object,java.lang.Object> context
Constructor Detail |
---|
public UMLUtil.UML2EcoreConverter()
Method Detail |
---|
protected void setName(org.eclipse.emf.ecore.ENamedElement eNamedElement, java.lang.String name, boolean validate)
protected void setName(org.eclipse.emf.ecore.ENamedElement eNamedElement, NamedElement namedElement)
protected org.eclipse.emf.ecore.EClassifier getEType(Type type)
protected org.eclipse.emf.ecore.ETypeParameter getETypeParameter(Type type)
protected org.eclipse.emf.ecore.EGenericType getEGenericType(Type type)
protected org.eclipse.emf.ecore.EClassifier getEType(TypedElement typedElement)
protected Stereotype getAppliedEcoreStereotype(Element element, java.lang.String name)
protected boolean isEGenericType(Classifier classifier)
public static boolean isEDataType(Namespace namespace)
protected boolean isEClass(Namespace namespace)
public java.lang.Object caseClass(Class class_)
UMLSwitch
caseClass
in class UMLSwitch<java.lang.Object>
class_
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseComment(Comment comment)
UMLSwitch
caseComment
in class UMLSwitch<java.lang.Object>
comment
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseConstraint(Constraint constraint)
UMLSwitch
caseConstraint
in class UMLSwitch<java.lang.Object>
constraint
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseDataType(DataType dataType)
UMLSwitch
caseDataType
in class UMLSwitch<java.lang.Object>
dataType
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement eModelElement)
UMLSwitch
caseEModelElement
in class UMLSwitch<java.lang.Object>
eModelElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEnumeration(Enumeration enumeration)
UMLSwitch
caseEnumeration
in class UMLSwitch<java.lang.Object>
enumeration
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
UMLSwitch
caseEnumerationLiteral
in class UMLSwitch<java.lang.Object>
enumerationLiteral
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGeneralization(Generalization generalization)
UMLSwitch
caseGeneralization
in class UMLSwitch<java.lang.Object>
generalization
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseInterfaceRealization(InterfaceRealization interfaceRealization)
UMLSwitch
caseInterfaceRealization
in class UMLSwitch<java.lang.Object>
interfaceRealization
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseInterface(Interface interface_)
UMLSwitch
caseInterface
in class UMLSwitch<java.lang.Object>
interface_
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMultiplicityElement(MultiplicityElement multiplicityElement)
UMLSwitch
caseMultiplicityElement
in class UMLSwitch<java.lang.Object>
multiplicityElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseOperation(Operation operation)
UMLSwitch
caseOperation
in class UMLSwitch<java.lang.Object>
operation
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePackage(Package package_)
UMLSwitch
casePackage
in class UMLSwitch<java.lang.Object>
package_
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseParameter(Parameter parameter)
UMLSwitch
caseParameter
in class UMLSwitch<java.lang.Object>
parameter
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseParameterableElement(ParameterableElement parameterableElement)
UMLSwitch
caseParameterableElement
in class UMLSwitch<java.lang.Object>
parameterableElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object casePrimitiveType(PrimitiveType primitiveType)
UMLSwitch
casePrimitiveType
in class UMLSwitch<java.lang.Object>
primitiveType
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseProperty(Property property)
UMLSwitch
caseProperty
in class UMLSwitch<java.lang.Object>
property
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseTemplateParameter(TemplateParameter templateParameter)
UMLSwitch
caseTemplateParameter
in class UMLSwitch<java.lang.Object>
templateParameter
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseTemplateSignature(TemplateSignature templateSignature)
UMLSwitch
caseTemplateSignature
in class UMLSwitch<java.lang.Object>
templateSignature
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseTypedElement(TypedElement typedElement)
UMLSwitch
caseTypedElement
in class UMLSwitch<java.lang.Object>
typedElement
- the target of the switch.
doSwitch(EObject)
public java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject eObject)
UMLSwitch
defaultCase
in class UMLSwitch<java.lang.Object>
eObject
- the target of the switch.
UMLSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
public java.lang.Object doSwitch(org.eclipse.emf.ecore.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<java.lang.Object>
caseXXX
call.protected void processEcoreTaggedValue(org.eclipse.emf.ecore.EModelElement eModelElement, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Element element, Stereotype stereotype, java.lang.String propertyName, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EClassifier eClassifier, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EEnum eEnum, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EGenericType eGenericType, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EOperation eOperation, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EPackage ePackage, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EParameter eParameter, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(org.eclipse.emf.ecore.ETypeParameter eTypeParameter, Element element, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEcoreTaggedValues(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processRedefiningOperations(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processRedefiningProperties(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected boolean isCompositeSubset(Property property)
protected void processSubsettingProperties(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processUnionProperties(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processDerivedFeatures(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void ensureConformity(org.eclipse.emf.ecore.ETypedElement eTypedElement, org.eclipse.emf.ecore.ETypedElement otherETypedElement)
protected void qualifyName(org.eclipse.emf.ecore.ENamedElement eNamedElement)
protected void qualifyName(org.eclipse.emf.ecore.ENamedElement eNamedElement, java.lang.String qualifier)
protected void processDuplicateOperations(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processDuplicateOperationInheritance(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processDuplicateFeatures(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processDuplicateFeatureInheritance(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processSuperClassOrder(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processComment(org.eclipse.emf.ecore.EModelElement eModelElement, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processOperationBody(org.eclipse.emf.ecore.EOperation eOperation, org.eclipse.emf.common.util.EList<java.lang.String> languages, org.eclipse.emf.common.util.EList<java.lang.String> bodies, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processOperationBodies(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected org.eclipse.emf.ecore.EModelElement processInvariantConstraint(org.eclipse.emf.ecore.EClassifier eClassifier, Constraint constraint, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processAnnotationDetails(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processOptions(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public java.util.Collection<? extends org.eclipse.emf.ecore.EObject> convert(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eObjects, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> 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, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |