org.eclipse.gmt.umlx.registry.km3.cst.util
Class KM3CSTSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.registry.km3.cst.util.KM3CSTSwitch<T>

public class KM3CSTSwitch<T>
extends java.lang.Object

The Switch for the model's inheritance hierarchy. It supports the call 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.

See Also:
KM3CSTPackage

Constructor Summary
KM3CSTSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAttributeCS(AttributeCS object)
          Returns the result of interpretting the object as an instance of 'Attribute CS'.
 T caseClassCS(ClassCS object)
          Returns the result of interpretting the object as an instance of 'Class CS'.
 T caseClassifierCS(ClassifierCS object)
          Returns the result of interpretting the object as an instance of 'Classifier CS'.
 T caseDataTypeCS(DataTypeCS object)
          Returns the result of interpretting the object as an instance of 'Data Type CS'.
 T caseElementCS(ElementCS object)
          Returns the result of interpretting the object as an instance of 'Element CS'.
 T caseEnumerationCS(EnumerationCS object)
          Returns the result of interpretting the object as an instance of 'Enumeration CS'.
 T caseFeatureCS(FeatureCS object)
          Returns the result of interpretting the object as an instance of 'Feature CS'.
 T caseIdentifiedElementCS(IdentifiedElementCS object)
          Returns the result of interpretting the object as an instance of 'Identified Element CS'.
 T caseIdentifierCS(IdentifierCS object)
          Returns the result of interpretting the object as an instance of 'Identifier CS'.
 T caseIdentifiersCS(IdentifiersCS object)
          Returns the result of interpretting the object as an instance of 'Identifiers CS'.
 T caseLiteralCS(LiteralCS object)
          Returns the result of interpretting the object as an instance of 'Literal CS'.
 T caseMetaModelCS(MetaModelCS object)
          Returns the result of interpretting the object as an instance of 'Meta Model CS'.
 T caseMultiplicityBoundCS(MultiplicityBoundCS object)
          Returns the result of interpretting the object as an instance of 'Multiplicity Bound CS'.
 T casePackageCS(PackageCS object)
          Returns the result of interpretting the object as an instance of 'Package CS'.
 T caseReferenceCS(ReferenceCS object)
          Returns the result of interpretting the object as an instance of 'Reference CS'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KM3CSTSwitch

public KM3CSTSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

caseAttributeCS

public T caseAttributeCS(AttributeCS object)
Returns the result of interpretting the object as an instance of 'Attribute CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Attribute CS'.
See Also:
doSwitch(EObject)

caseFeatureCS

public T caseFeatureCS(FeatureCS object)
Returns the result of interpretting the object as an instance of 'Feature CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Feature CS'.
See Also:
doSwitch(EObject)

caseClassCS

public T caseClassCS(ClassCS object)
Returns the result of interpretting the object as an instance of 'Class CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Class CS'.
See Also:
doSwitch(EObject)

caseClassifierCS

public T caseClassifierCS(ClassifierCS object)
Returns the result of interpretting the object as an instance of 'Classifier CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Classifier CS'.
See Also:
doSwitch(EObject)

caseDataTypeCS

public T caseDataTypeCS(DataTypeCS object)
Returns the result of interpretting the object as an instance of 'Data Type CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Data Type CS'.
See Also:
doSwitch(EObject)

caseEnumerationCS

public T caseEnumerationCS(EnumerationCS object)
Returns the result of interpretting the object as an instance of 'Enumeration CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Enumeration CS'.
See Also:
doSwitch(EObject)

caseIdentifierCS

public T caseIdentifierCS(IdentifierCS object)
Returns the result of interpretting the object as an instance of 'Identifier CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Identifier CS'.
See Also:
doSwitch(EObject)

caseLiteralCS

public T caseLiteralCS(LiteralCS object)
Returns the result of interpretting the object as an instance of 'Literal CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Literal CS'.
See Also:
doSwitch(EObject)

caseMetaModelCS

public T caseMetaModelCS(MetaModelCS object)
Returns the result of interpretting the object as an instance of 'Meta Model CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Meta Model CS'.
See Also:
doSwitch(EObject)

casePackageCS

public T casePackageCS(PackageCS object)
Returns the result of interpretting the object as an instance of 'Package CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Package CS'.
See Also:
doSwitch(EObject)

caseReferenceCS

public T caseReferenceCS(ReferenceCS object)
Returns the result of interpretting the object as an instance of 'Reference CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Reference CS'.
See Also:
doSwitch(EObject)

caseElementCS

public T caseElementCS(ElementCS object)
Returns the result of interpretting the object as an instance of 'Element CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Element CS'.
See Also:
doSwitch(EObject)

caseIdentifiedElementCS

public T caseIdentifiedElementCS(IdentifiedElementCS object)
Returns the result of interpretting the object as an instance of 'Identified Element CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Identified Element CS'.
See Also:
doSwitch(EObject)

caseIdentifiersCS

public T caseIdentifiersCS(IdentifiersCS object)
Returns the result of interpretting the object as an instance of 'Identifiers CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Identifiers CS'.
See Also:
doSwitch(EObject)

caseMultiplicityBoundCS

public T caseMultiplicityBoundCS(MultiplicityBoundCS object)
Returns the result of interpretting the object as an instance of 'Multiplicity Bound CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Multiplicity Bound CS'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(org.eclipse.emf.ecore.EObject object)
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.

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