public class KdmSwitch<T>
extends java.lang.Object
doSwitch(object)
to invoke the caseXXX method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
KdmPackage| Constructor and Description |
|---|
KdmSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'.
|
T |
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'.
|
T |
caseAudit(Audit object)
Returns the result of interpreting the object as an instance of 'Audit'.
|
T |
caseElement(Element object)
Returns the result of interpreting the object as an instance of 'Element'.
|
T |
caseExtendedValue(ExtendedValue object)
Returns the result of interpreting the object as an instance of 'Extended Value'.
|
T |
caseExtensionFamily(ExtensionFamily object)
Returns the result of interpreting the object as an instance of 'Extension Family'.
|
T |
caseKDMFramework(KDMFramework object)
Returns the result of interpreting the object as an instance of 'KDM Framework'.
|
T |
caseKDMModel(KDMModel object)
Returns the result of interpreting the object as an instance of 'KDM Model'.
|
T |
caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'.
|
T |
caseSegment(Segment object)
Returns the result of interpreting the object as an instance of 'Segment'.
|
T |
caseStereotype(Stereotype object)
Returns the result of interpreting the object as an instance of 'Stereotype'.
|
T |
caseTagDefinition(TagDefinition object)
Returns the result of interpreting the object as an instance of 'Tag Definition'.
|
T |
caseTaggedRef(TaggedRef object)
Returns the result of interpreting the object as an instance of 'Tagged Ref'.
|
T |
caseTaggedValue(TaggedValue object)
Returns the result of interpreting the object as an instance of 'Tagged Value'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
T |
doSwitch(EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
public T doSwitch(EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public T caseKDMFramework(KDMFramework object)
object - the target of the switch.doSwitch(EObject)public T caseKDMModel(KDMModel object)
object - the target of the switch.doSwitch(EObject)public T caseSegment(Segment object)
object - the target of the switch.doSwitch(EObject)public T caseAudit(Audit object)
object - the target of the switch.doSwitch(EObject)public T caseStereotype(Stereotype object)
object - the target of the switch.doSwitch(EObject)public T caseTagDefinition(TagDefinition object)
object - the target of the switch.doSwitch(EObject)public T caseExtensionFamily(ExtensionFamily object)
object - the target of the switch.doSwitch(EObject)public T caseExtendedValue(ExtendedValue object)
object - the target of the switch.doSwitch(EObject)public T caseTaggedValue(TaggedValue object)
object - the target of the switch.doSwitch(EObject)public T caseTaggedRef(TaggedRef object)
object - the target of the switch.doSwitch(EObject)public T caseAttribute(Attribute object)
object - the target of the switch.doSwitch(EObject)public T caseAnnotation(Annotation object)
object - the target of the switch.doSwitch(EObject)public T caseElement(Element object)
object - the target of the switch.doSwitch(EObject)public T caseModelElement(ModelElement object)
object - the target of the switch.doSwitch(EObject)public T defaultCase(EObject object)
object - the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)