org.eclipse.ohf.stem.definitions.labels.util
Class LabelsSwitch<T>

java.lang.Object
  extended by org.eclipse.ohf.stem.definitions.labels.util.LabelsSwitch<T>

public class LabelsSwitch<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:
LabelsPackage

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
LabelsSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAreaLabel(AreaLabel object)
          Returns the result of interpretting the object as an instance of 'Area Label'.
 T caseAreaLabelValue(AreaLabelValue object)
          Returns the result of interpretting the object as an instance of 'Area Label Value'.
 T caseCommonBorderRelationshipLabel(CommonBorderRelationshipLabel object)
          Returns the result of interpretting the object as an instance of 'Common Border Relationship Label'.
 T caseCommonBorderRelationshipLabelValue(CommonBorderRelationshipLabelValue object)
          Returns the result of interpretting the object as an instance of 'Common Border Relationship Label Value'.
 T caseDynamicEdgeLabel(DynamicEdgeLabel object)
          Returns the result of interpretting the object as an instance of 'Dynamic Edge Label'.
 T caseDynamicLabel(DynamicLabel object)
          Returns the result of interpretting the object as an instance of 'Dynamic Label'.
 T caseEdgeLabel(EdgeLabel object)
          Returns the result of interpretting the object as an instance of 'Edge Label'.
 T caseIdentifiable(Identifiable object)
          Returns the result of interpretting the object as an instance of 'Identifiable'.
 T caseLabel(Label object)
          Returns the result of interpretting the object as an instance of 'Label'.
 T caseLabelValue(LabelValue object)
          Returns the result of interpretting the object as an instance of 'Label Value'.
 T caseNodeLabel(NodeLabel object)
          Returns the result of interpretting the object as an instance of 'Node Label'.
 T casePhysicalRelationshipLabel(PhysicalRelationshipLabel object)
          Returns the result of interpretting the object as an instance of 'Physical Relationship Label'.
 T casePhysicalRelationshipLabelValue(PhysicalRelationshipLabelValue object)
          Returns the result of interpretting the object as an instance of 'Physical Relationship Label Value'.
 T casePopulationLabel(PopulationLabel object)
          Returns the result of interpretting the object as an instance of 'Population Label'.
 T casePopulationLabelValue(PopulationLabelValue object)
          Returns the result of interpretting the object as an instance of 'Population Label Value'.
 T caseRelativePhysicalRelationshipLabel(RelativePhysicalRelationshipLabel object)
          Returns the result of interpretting the object as an instance of 'Relative Physical Relationship Label'.
 T caseRelativePhysicalRelationshipLabelValue(RelativePhysicalRelationshipLabelValue object)
          Returns the result of interpretting the object as an instance of 'Relative Physical Relationship Label Value'.
 T caseSanityChecker(SanityChecker object)
          Returns the result of interpretting the object as an instance of 'Sanity Checker'.
 T caseStaticEdgeLabel(StaticEdgeLabel object)
          Returns the result of interpretting the object as an instance of 'Static Edge Label'.
 T caseStaticNodeLabel(StaticNodeLabel object)
          Returns the result of interpretting the object as an instance of 'Static Node Label'.
 T caseTransportRelationshipLabel(TransportRelationshipLabel object)
          Returns the result of interpretting the object as an instance of 'Transport Relationship Label'.
 T caseTransportRelationshipLabelValue(TransportRelationshipLabelValue object)
          Returns the result of interpretting the object as an instance of 'Transport Relationship Label Value'.
 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
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Constructor Detail

LabelsSwitch

public LabelsSwitch()
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.

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

casePopulationLabel

public T casePopulationLabel(PopulationLabel object)
Returns the result of interpretting the object as an instance of 'Population Label'. 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 'Population Label'.
See Also:
doSwitch(EObject)

casePopulationLabelValue

public T casePopulationLabelValue(PopulationLabelValue object)
Returns the result of interpretting the object as an instance of 'Population Label Value'. 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 'Population Label Value'.
See Also:
doSwitch(EObject)

caseAreaLabel

public T caseAreaLabel(AreaLabel object)
Returns the result of interpretting the object as an instance of 'Area Label'. 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 'Area Label'.
See Also:
doSwitch(EObject)

caseAreaLabelValue

public T caseAreaLabelValue(AreaLabelValue object)
Returns the result of interpretting the object as an instance of 'Area Label Value'. 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 'Area Label Value'.
See Also:
doSwitch(EObject)

casePhysicalRelationshipLabel

public T casePhysicalRelationshipLabel(PhysicalRelationshipLabel object)
Returns the result of interpretting the object as an instance of 'Physical Relationship Label'. 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 'Physical Relationship Label'.
See Also:
doSwitch(EObject)

caseRelativePhysicalRelationshipLabel

public T caseRelativePhysicalRelationshipLabel(RelativePhysicalRelationshipLabel object)
Returns the result of interpretting the object as an instance of 'Relative Physical Relationship Label'. 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 'Relative Physical Relationship Label'.
See Also:
doSwitch(EObject)

caseRelativePhysicalRelationshipLabelValue

public T caseRelativePhysicalRelationshipLabelValue(RelativePhysicalRelationshipLabelValue object)
Returns the result of interpretting the object as an instance of 'Relative Physical Relationship Label Value'. 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 'Relative Physical Relationship Label Value'.
See Also:
doSwitch(EObject)

caseCommonBorderRelationshipLabel

public T caseCommonBorderRelationshipLabel(CommonBorderRelationshipLabel object)
Returns the result of interpretting the object as an instance of 'Common Border Relationship Label'. 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 'Common Border Relationship Label'.
See Also:
doSwitch(EObject)

caseCommonBorderRelationshipLabelValue

public T caseCommonBorderRelationshipLabelValue(CommonBorderRelationshipLabelValue object)
Returns the result of interpretting the object as an instance of 'Common Border Relationship Label Value'. 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 'Common Border Relationship Label Value'.
See Also:
doSwitch(EObject)

caseTransportRelationshipLabel

public T caseTransportRelationshipLabel(TransportRelationshipLabel object)
Returns the result of interpretting the object as an instance of 'Transport Relationship Label'. 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 'Transport Relationship Label'.
See Also:
doSwitch(EObject)

caseTransportRelationshipLabelValue

public T caseTransportRelationshipLabelValue(TransportRelationshipLabelValue object)
Returns the result of interpretting the object as an instance of 'Transport Relationship Label Value'. 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 'Transport Relationship Label Value'.
See Also:
doSwitch(EObject)

casePhysicalRelationshipLabelValue

public T casePhysicalRelationshipLabelValue(PhysicalRelationshipLabelValue object)
Returns the result of interpretting the object as an instance of 'Physical Relationship Label Value'. 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 'Physical Relationship Label Value'.
See Also:
doSwitch(EObject)

caseIdentifiable

public T caseIdentifiable(Identifiable object)
Returns the result of interpretting the object as an instance of 'Identifiable'. 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 'Identifiable'.
See Also:
doSwitch(EObject)

caseLabel

public T caseLabel(Label object)
Returns the result of interpretting the object as an instance of 'Label'. 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 'Label'.
See Also:
doSwitch(EObject)

caseNodeLabel

public T caseNodeLabel(NodeLabel object)
Returns the result of interpretting the object as an instance of 'Node Label'. 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 'Node Label'.
See Also:
doSwitch(EObject)

caseStaticNodeLabel

public T caseStaticNodeLabel(StaticNodeLabel object)
Returns the result of interpretting the object as an instance of 'Static Node Label'. 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 'Static Node Label'.
See Also:
doSwitch(EObject)

caseSanityChecker

public T caseSanityChecker(SanityChecker object)
Returns the result of interpretting the object as an instance of 'Sanity Checker'. 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 'Sanity Checker'.
See Also:
doSwitch(EObject)

caseLabelValue

public T caseLabelValue(LabelValue object)
Returns the result of interpretting the object as an instance of 'Label Value'. 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 'Label Value'.
See Also:
doSwitch(EObject)

caseEdgeLabel

public T caseEdgeLabel(EdgeLabel object)
Returns the result of interpretting the object as an instance of 'Edge Label'. 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 'Edge Label'.
See Also:
doSwitch(EObject)

caseStaticEdgeLabel

public T caseStaticEdgeLabel(StaticEdgeLabel object)
Returns the result of interpretting the object as an instance of 'Static Edge Label'. 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 'Static Edge Label'.
See Also:
doSwitch(EObject)

caseDynamicLabel

public T caseDynamicLabel(DynamicLabel object)
Returns the result of interpretting the object as an instance of 'Dynamic Label'. 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 'Dynamic Label'.
See Also:
doSwitch(EObject)

caseDynamicEdgeLabel

public T caseDynamicEdgeLabel(DynamicEdgeLabel object)
Returns the result of interpretting the object as an instance of 'Dynamic Edge Label'. 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 'Dynamic Edge Label'.
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)