org.eclipse.uml2.uml.util
Class UMLUtil.UML2EcoreConverter

java.lang.Object
  extended byorg.eclipse.uml2.uml.util.UMLSwitch
      extended byorg.eclipse.uml2.uml.util.UMLUtil.UML2EcoreConverter
All Implemented Interfaces:
UML2Util.Converter
Direct Known Subclasses:
UMLUtil.Profile2EPackageConverter
Enclosing class:
UMLUtil

public static class UMLUtil.UML2EcoreConverter
extends UMLSwitch
implements UML2Util.Converter

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 org.eclipse.uml2.uml.util.UMLSwitch
caseAbstraction, caseAcceptCallAction, caseAcceptEventAction, caseAction, caseActionExecutionSpecification, caseActionInputPin, caseActivity, caseActivityEdge, caseActivityFinalNode, caseActivityGroup, caseActivityNode, caseActivityParameterNode, caseActivityPartition, caseActor, caseAddStructuralFeatureValueAction, caseAddVariableValueAction, caseAnyReceiveEvent, caseArtifact, caseAssociation, caseAssociationClass, caseBehavior, caseBehavioralFeature, caseBehavioredClassifier, caseBehaviorExecutionSpecification, caseBroadcastSignalAction, caseCallAction, caseCallBehaviorAction, caseCallEvent, caseCallOperationAction, caseCentralBufferNode, caseChangeEvent, caseClassifier, caseClassifierTemplateParameter, caseClause, caseClearAssociationAction, caseClearStructuralFeatureAction, caseClearVariableAction, caseCollaboration, caseCollaborationUse, caseCombinedFragment, caseCommunicationPath, caseComponent, caseComponentRealization, caseConditionalNode, caseConnectableElement, caseConnectableElementTemplateParameter, caseConnectionPointReference, caseConnector, caseConnectorEnd, caseConsiderIgnoreFragment, caseContinuation, caseControlFlow, caseControlNode, caseCreateLinkAction, caseCreateLinkObjectAction, caseCreateObjectAction, caseCreationEvent, caseDataStoreNode, caseDataType, caseDecisionNode, caseDependency, caseDeployedArtifact, caseDeployment, caseDeploymentSpecification, caseDeploymentTarget, caseDestroyLinkAction, caseDestroyObjectAction, caseDestructionEvent, caseDevice, caseDirectedRelationship, caseDuration, caseDurationConstraint, caseDurationInterval, caseDurationObservation, caseElement, caseElementImport, caseEncapsulatedClassifier, caseEvent, caseExceptionHandler, caseExecutableNode, caseExecutionEnvironment, caseExecutionEvent, caseExecutionOccurrenceSpecification, caseExecutionSpecification, caseExpansionNode, caseExpansionRegion, caseExpression, caseExtend, caseExtension, caseExtensionEnd, caseExtensionPoint, caseFeature, caseFinalNode, caseFinalState, caseFlowFinalNode, caseForkNode, caseFunctionBehavior, caseGate, caseGeneralizationSet, caseGeneralOrdering, caseImage, caseInclude, caseInformationFlow, caseInformationItem, caseInitialNode, caseInputPin, caseInstanceSpecification, caseInstanceValue, caseInteraction, caseInteractionConstraint, caseInteractionFragment, caseInteractionOperand, caseInteractionUse, caseInterruptibleActivityRegion, caseInterval, caseIntervalConstraint, caseInvocationAction, caseJoinNode, caseLifeline, caseLinkAction, caseLinkEndCreationData, caseLinkEndData, caseLinkEndDestructionData, caseLiteralBoolean, caseLiteralInteger, caseLiteralNull, caseLiteralSpecification, caseLiteralString, caseLiteralUnlimitedNatural, caseLoopNode, caseManifestation, caseMergeNode, caseMessage, caseMessageEnd, caseMessageEvent, caseMessageOccurrenceSpecification, caseModel, caseNamedElement, caseNamespace, caseNode, caseObjectFlow, caseObjectNode, caseObservation, caseOccurrenceSpecification, caseOpaqueAction, caseOpaqueBehavior, caseOpaqueExpression, caseOperationTemplateParameter, caseOutputPin, casePackageableElement, casePackageImport, casePackageMerge, caseParameterableElement, caseParameterSet, casePartDecomposition, casePin, casePort, caseProfile, caseProfileApplication, caseProtocolConformance, caseProtocolStateMachine, caseProtocolTransition, casePseudostate, caseQualifierValue, caseRaiseExceptionAction, caseReadExtentAction, caseReadIsClassifiedObjectAction, caseReadLinkAction, caseReadLinkObjectEndAction, caseReadLinkObjectEndQualifierAction, caseReadSelfAction, caseReadStructuralFeatureAction, caseReadVariableAction, caseRealization, caseReceiveOperationEvent, caseReceiveSignalEvent, caseReception, caseReclassifyObjectAction, caseRedefinableElement, caseRedefinableTemplateSignature, caseReduceAction, caseRegion, caseRelationship, caseRemoveStructuralFeatureValueAction, caseRemoveVariableValueAction, caseReplyAction, caseSendObjectAction, caseSendOperationEvent, caseSendSignalAction, caseSendSignalEvent, caseSequenceNode, caseSignal, caseSignalEvent, caseSlot, caseStartClassifierBehaviorAction, caseState, caseStateInvariant, caseStateMachine, caseStereotype, caseStringExpression, caseStructuralFeature, caseStructuralFeatureAction, caseStructuredActivityNode, caseStructuredClassifier, caseSubstitution, caseTemplateableElement, caseTemplateBinding, caseTemplateParameter, caseTemplateParameterSubstitution, caseTemplateSignature, caseTestIdentityAction, caseTimeConstraint, caseTimeEvent, caseTimeExpression, caseTimeInterval, caseTimeObservation, caseTransition, caseTrigger, caseType, caseUnmarshallAction, caseUsage, caseUseCase, caseValuePin, caseValueSpecification, caseValueSpecificationAction, caseVariable, caseVariableAction, caseVertex, caseWriteLinkAction, caseWriteStructuralFeatureAction, caseWriteVariableAction, doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION__ECORE_TAGGED_VALUES

public static final String OPTION__ECORE_TAGGED_VALUES
The option for handling cases where an Ecore tagged value is encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__REDEFINING_OPERATIONS

public static final String OPTION__REDEFINING_OPERATIONS
The option for handling cases where a redefining operation is encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__REDEFINING_PROPERTIES

public static final String OPTION__REDEFINING_PROPERTIES
The option for handling cases where a redefining property is encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__SUBSETTING_PROPERTIES

public static final String OPTION__SUBSETTING_PROPERTIES
The option for handling cases where a subsetting property is encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__UNION_PROPERTIES

public static final String OPTION__UNION_PROPERTIES
The option for handling cases where a derived union property is encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__DERIVED_FEATURES

public static final String OPTION__DERIVED_FEATURES
The option for handling cases where a derived feature is encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__DUPLICATE_OPERATIONS

public static final String OPTION__DUPLICATE_OPERATIONS
The option for handling cases where a duplicate operation is detected. Supported choices are OPTION__IGNORE, OPTION__REPORT, OPTION__DISCARD, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__DUPLICATE_OPERATION_INHERITANCE

public static final String OPTION__DUPLICATE_OPERATION_INHERITANCE
The option for handling cases where an operation is inherited more than once. Supported choices are OPTION__IGNORE, OPTION__REPORT, OPTION__DISCARD, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__DUPLICATE_FEATURES

public static final String OPTION__DUPLICATE_FEATURES
The option for handling cases where a duplicate feature is detected. Supported choices are OPTION__IGNORE, OPTION__REPORT, OPTION__DISCARD, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__DUPLICATE_FEATURE_INHERITANCE

public static final String OPTION__DUPLICATE_FEATURE_INHERITANCE
The option for handling cases where a feature is inherited more than once. Supported choices are OPTION__IGNORE, OPTION__REPORT, OPTION__DISCARD, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__SUPER_CLASS_ORDER

public static final String OPTION__SUPER_CLASS_ORDER
The option for handling cases where superclasses are not ordered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

OPTION__ANNOTATION_DETAILS

public static final String OPTION__ANNOTATION_DETAILS
The option for handling cases where annotation details are encountered. Supported choices are OPTION__IGNORE, OPTION__REPORT, and OPTION__PROCESS.

See Also:
Constant Field Values

ECORE_TAGGED_VALUE

public static final int ECORE_TAGGED_VALUE
The diagnostic code for cases where an Ecore tagged value is encountered.

See Also:
Constant Field Values

REDEFINING_OPERATION

public static final int REDEFINING_OPERATION
The diagnostic code for cases where a redefining operation is encountered.

See Also:
Constant Field Values

REDEFINING_PROPERTY

public static final int REDEFINING_PROPERTY
The diagnostic code for cases where a redefining property is encountered.

See Also:
Constant Field Values

SUBSETTING_PROPERTY

public static final int SUBSETTING_PROPERTY
The diagnostic code for cases where a subsetting property is encountered.

See Also:
Constant Field Values

UNION_PROPERTY

public static final int UNION_PROPERTY
The diagnostic code for cases where a derived union property is encountered.

See Also:
Constant Field Values

DERIVED_FEATURE

public static final int DERIVED_FEATURE
The diagnostic code for cases where a derived feature is encountered.

See Also:
Constant Field Values

DUPLICATE_OPERATION

public static final int DUPLICATE_OPERATION
The diagnostic code for cases where a duplicate operation is detected.

See Also:
Constant Field Values

DUPLICATE_OPERATION_INHERITANCE

public static final int DUPLICATE_OPERATION_INHERITANCE
The diagnostic code for cases where an operation is inherited more than once.

See Also:
Constant Field Values

DUPLICATE_FEATURE

public static final int DUPLICATE_FEATURE
The diagnostic code for cases where a duplicate feature is detected.

See Also:
Constant Field Values

DUPLICATE_FEATURE_INHERITANCE

public static final int DUPLICATE_FEATURE_INHERITANCE
The diagnostic code for cases where a feature is inherited more than once.

See Also:
Constant Field Values

SUPER_CLASS_ORDER

public static final int SUPER_CLASS_ORDER
The diagnostic code for cases where superclasses are not ordered.

See Also:
Constant Field Values

ANNOTATION_DETAILS

public static final int ANNOTATION_DETAILS
The diagnostic code for cases where annotation details are encountered.

See Also:
Constant Field Values

elementToEModelElementMap

protected final Map elementToEModelElementMap

packages

protected Collection packages
Constructor Detail

UMLUtil.UML2EcoreConverter

public UMLUtil.UML2EcoreConverter()
Method Detail

setName

protected void setName(ENamedElement eNamedElement,
                       String name,
                       boolean validate)

setName

protected void setName(ENamedElement eNamedElement,
                       NamedElement namedElement)

getEType

protected EClassifier getEType(Type type)

getEType

protected EClassifier getEType(TypedElement typedElement)

getAppliedEcoreStereotype

protected Stereotype getAppliedEcoreStereotype(Element element,
                                               String name)

caseClass

public Object caseClass(Class class_)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Class'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseClass in class UMLSwitch
Parameters:
class_ - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Class'.
See Also:
doSwitch(EObject)

caseComment

public Object caseComment(Comment comment)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Comment'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseComment in class UMLSwitch
Parameters:
comment - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Comment'.
See Also:
doSwitch(EObject)

caseConstraint

public Object caseConstraint(Constraint constraint)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Constraint'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseConstraint in class UMLSwitch
Parameters:
constraint - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Constraint'.
See Also:
doSwitch(EObject)

caseEModelElement

public Object caseEModelElement(EModelElement eModelElement)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'EModel Element'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseEModelElement in class UMLSwitch
Parameters:
eModelElement - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'EModel Element'.
See Also:
doSwitch(EObject)

caseEnumeration

public Object caseEnumeration(Enumeration enumeration)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Enumeration'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseEnumeration in class UMLSwitch
Parameters:
enumeration - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Enumeration'.
See Also:
doSwitch(EObject)

caseEnumerationLiteral

public Object caseEnumerationLiteral(EnumerationLiteral enumerationLiteral)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Enumeration Literal'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseEnumerationLiteral in class UMLSwitch
Parameters:
enumerationLiteral - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Enumeration Literal'.
See Also:
doSwitch(EObject)

caseGeneralization

public Object caseGeneralization(Generalization generalization)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Generalization'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseGeneralization in class UMLSwitch
Parameters:
generalization - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Generalization'.
See Also:
doSwitch(EObject)

caseInterfaceRealization

public Object caseInterfaceRealization(InterfaceRealization interfaceRealization)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Interface Realization'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseInterfaceRealization in class UMLSwitch
Parameters:
interfaceRealization - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Interface Realization'.
See Also:
doSwitch(EObject)

caseInterface

public Object caseInterface(Interface interface_)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Interface'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseInterface in class UMLSwitch
Parameters:
interface_ - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Interface'.
See Also:
doSwitch(EObject)

caseMultiplicityElement

public Object caseMultiplicityElement(MultiplicityElement multiplicityElement)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Multiplicity Element'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseMultiplicityElement in class UMLSwitch
Parameters:
multiplicityElement - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Multiplicity Element'.
See Also:
doSwitch(EObject)

caseOperation

public Object caseOperation(Operation operation)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Operation'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseOperation in class UMLSwitch
Parameters:
operation - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Operation'.
See Also:
doSwitch(EObject)

casePackage

public Object casePackage(Package package_)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Package'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
casePackage in class UMLSwitch
Parameters:
package_ - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Package'.
See Also:
doSwitch(EObject)

caseParameter

public Object caseParameter(Parameter parameter)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseParameter in class UMLSwitch
Parameters:
parameter - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Parameter'.
See Also:
doSwitch(EObject)

casePrimitiveType

public Object casePrimitiveType(PrimitiveType primitiveType)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Primitive Type'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
casePrimitiveType in class UMLSwitch
Parameters:
primitiveType - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Primitive Type'.
See Also:
doSwitch(EObject)

caseProperty

public Object caseProperty(Property property)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Property'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseProperty in class UMLSwitch
Parameters:
property - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Property'.
See Also:
doSwitch(EObject)

caseTypedElement

public Object caseTypedElement(TypedElement typedElement)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'Typed Element'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseTypedElement in class UMLSwitch
Parameters:
typedElement - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Typed Element'.
See Also:
doSwitch(EObject)

defaultCase

public Object defaultCase(EObject eObject)
Description copied from class: UMLSwitch
Returns the result of interpretting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Overrides:
defaultCase in class UMLSwitch
Parameters:
eObject - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'EObject'.
See Also:
UMLSwitch.doSwitch(org.eclipse.emf.ecore.EObject)

doSwitch

public Object doSwitch(EObject eObject)
Description copied from class: UMLSwitch
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Overrides:
doSwitch in class UMLSwitch
Returns:
the first non-null result returned by a caseXXX call.

processEcoreTaggedValue

protected void processEcoreTaggedValue(EModelElement eModelElement,
                                       EStructuralFeature eStructuralFeature,
                                       Element element,
                                       Stereotype stereotype,
                                       String propertyName,
                                       Map options,
                                       DiagnosticChain diagnostics,
                                       Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EClassifier eClassifier,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EEnum eEnum,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EEnumLiteral eEnumLiteral,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EOperation eOperation,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EPackage ePackage,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EParameter eParameter,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(EStructuralFeature eStructuralFeature,
                                        Element element,
                                        Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processEcoreTaggedValues

protected void processEcoreTaggedValues(Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processRedefiningOperations

protected void processRedefiningOperations(Map options,
                                           DiagnosticChain diagnostics,
                                           Map context)

processRedefiningProperties

protected void processRedefiningProperties(Map options,
                                           DiagnosticChain diagnostics,
                                           Map context)

isCompositeSubset

protected boolean isCompositeSubset(Property property)

processSubsettingProperties

protected void processSubsettingProperties(Map options,
                                           DiagnosticChain diagnostics,
                                           Map context)

processUnionProperties

protected void processUnionProperties(Map options,
                                      DiagnosticChain diagnostics,
                                      Map context)

processDerivedFeatures

protected void processDerivedFeatures(Map options,
                                      DiagnosticChain diagnostics,
                                      Map context)

ensureConformity

protected void ensureConformity(ETypedElement eTypedElement,
                                ETypedElement otherETypedElement)

qualifyName

protected void qualifyName(ENamedElement eNamedElement)

processDuplicateOperations

protected void processDuplicateOperations(Map options,
                                          DiagnosticChain diagnostics,
                                          Map context)

processDuplicateOperationInheritance

protected void processDuplicateOperationInheritance(Map options,
                                                    DiagnosticChain diagnostics,
                                                    Map context)

processDuplicateFeatures

protected void processDuplicateFeatures(Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processDuplicateFeatureInheritance

protected void processDuplicateFeatureInheritance(Map options,
                                                  DiagnosticChain diagnostics,
                                                  Map context)

processSuperClassOrder

protected void processSuperClassOrder(Map options,
                                      DiagnosticChain diagnostics,
                                      Map context)

processAnnotationDetails

protected void processAnnotationDetails(Map options,
                                        DiagnosticChain diagnostics,
                                        Map context)

processOptions

protected void processOptions(Map options,
                              DiagnosticChain diagnostics,
                              Map context)

convert

public Collection convert(Collection eObjects,
                          Map options,
                          DiagnosticChain diagnostics,
                          Map context)
Description copied from interface: UML2Util.Converter
Converts the specified objects using the specified options, reporting problems to the specified diagnostics, within the specified context.

Specified by:
convert in interface UML2Util.Converter
Parameters:
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.
Returns:
Another representation of the objects.

Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.