Traceability

ttm.util
Class TtmSwitch

java.lang.Object
  extended by ttm.util.TtmSwitch

public class TtmSwitch
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:
TtmPackage
** Generated **

Field Summary
protected static TtmPackage modelPackage
          The cached model package
 
Constructor Summary
TtmSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAbstractLink(AbstractLink object)
          Returns the result of interpretting the object as an instance of 'Abstract Link'
 java.lang.Object caseAttribute(Attribute object)
          Returns the result of interpretting the object as an instance of 'Attribute'
 java.lang.Object caseAttributeOwner(AttributeOwner object)
          Returns the result of interpretting the object as an instance of 'Attribute Owner'
 java.lang.Object caseCoverageResult(CoverageResult object)
          Returns the result of interpretting the object as an instance of 'Coverage Result'
 java.lang.Object caseCoverLink(CoverLink object)
          Returns the result of interpretting the object as an instance of 'Cover Link'
 java.lang.Object caseCoverPoint(CoverPoint object)
          Returns the result of interpretting the object as an instance of 'Cover Point'
 java.lang.Object caseDocument(Document object)
          Returns the result of interpretting the object as an instance of 'Document'
 java.lang.Object caseElement(Element object)
          Returns the result of interpretting the object as an instance of 'Element'
 java.lang.Object caseHierarchicalElement(HierarchicalElement object)
          Returns the result of interpretting the object as an instance of 'Hierarchical Element'
 java.lang.Object caseIdentifiedElement(IdentifiedElement object)
          Returns the result of interpretting the object as an instance of 'Identified Element'
 java.lang.Object caseNavigationLink(NavigationLink object)
          Returns the result of interpretting the object as an instance of 'Navigation Link'
 java.lang.Object caseProject(Project object)
          Returns the result of interpretting the object as an instance of 'Project'
 java.lang.Object caseRequirement(Requirement object)
          Returns the result of interpretting the object as an instance of 'Requirement'
 java.lang.Object caseRule(Rule object)
          Returns the result of interpretting the object as an instance of 'Rule'
 java.lang.Object caseRuleInstance(RuleInstance object)
          Returns the result of interpretting the object as an instance of 'Rule Instance'
 java.lang.Object caseSection(Section object)
          Returns the result of interpretting the object as an instance of 'Section'
 java.lang.Object caseText(Text object)
          Returns the result of interpretting the object as an instance of 'Text'
 java.lang.Object defaultCase(EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'
protected  java.lang.Object doSwitch(EClass theEClass, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 java.lang.Object doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
protected  java.lang.Object doSwitch(int classifierID, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static TtmPackage modelPackage
The cached model package

** Generated **
Constructor Detail

TtmSwitch

public TtmSwitch()
Creates an instance of the switch.

** Generated **
Method Detail

doSwitch

public java.lang.Object doSwitch(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.
** Generated **

doSwitch

protected java.lang.Object doSwitch(EClass theEClass,
                                    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.
** Generated **

doSwitch

protected java.lang.Object doSwitch(int classifierID,
                                    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.
** Generated **

caseHierarchicalElement

public java.lang.Object caseHierarchicalElement(HierarchicalElement object)
Returns the result of interpretting the object as an instance of 'Hierarchical Element'. 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 'Hierarchical Element'.
See Also:
doSwitch(EObject)
** Generated **

caseDocument

public java.lang.Object caseDocument(Document object)
Returns the result of interpretting the object as an instance of 'Document'. 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 'Document'.
See Also:
doSwitch(EObject)
** Generated **

caseSection

public java.lang.Object caseSection(Section object)
Returns the result of interpretting the object as an instance of 'Section'. 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 'Section'.
See Also:
doSwitch(EObject)
** Generated **

caseIdentifiedElement

public java.lang.Object caseIdentifiedElement(IdentifiedElement object)
Returns the result of interpretting the object as an instance of 'Identified Element'. 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'.
See Also:
doSwitch(EObject)
** Generated **

caseText

public java.lang.Object caseText(Text object)
Returns the result of interpretting the object as an instance of 'Text'. 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 'Text'.
See Also:
doSwitch(EObject)
** Generated **

caseAttribute

public java.lang.Object caseAttribute(Attribute object)
Returns the result of interpretting the object as an instance of 'Attribute'. 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'.
See Also:
doSwitch(EObject)
** Generated **

caseRequirement

public java.lang.Object caseRequirement(Requirement object)
Returns the result of interpretting the object as an instance of 'Requirement'. 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 'Requirement'.
See Also:
doSwitch(EObject)
** Generated **

caseCoverLink

public java.lang.Object caseCoverLink(CoverLink object)
Returns the result of interpretting the object as an instance of 'Cover Link'. 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 'Cover Link'.
See Also:
doSwitch(EObject)
** Generated **

caseNavigationLink

public java.lang.Object caseNavigationLink(NavigationLink object)
Returns the result of interpretting the object as an instance of 'Navigation Link'. 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 'Navigation Link'.
See Also:
doSwitch(EObject)
** Generated **

caseAbstractLink

public java.lang.Object caseAbstractLink(AbstractLink object)
Returns the result of interpretting the object as an instance of 'Abstract Link'. 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 'Abstract Link'.
See Also:
doSwitch(EObject)
** Generated **

caseProject

public java.lang.Object caseProject(Project object)
Returns the result of interpretting the object as an instance of 'Project'. 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 'Project'.
See Also:
doSwitch(EObject)
** Generated **

caseElement

public java.lang.Object caseElement(Element object)
Returns the result of interpretting the object as an instance of 'Element'. 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'.
See Also:
doSwitch(EObject)
** Generated **

caseRuleInstance

public java.lang.Object caseRuleInstance(RuleInstance object)
Returns the result of interpretting the object as an instance of 'Rule Instance'. 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 'Rule Instance'.
See Also:
doSwitch(EObject)
** Generated **

caseAttributeOwner

public java.lang.Object caseAttributeOwner(AttributeOwner object)
Returns the result of interpretting the object as an instance of 'Attribute Owner'. 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 Owner'.
See Also:
doSwitch(EObject)
** Generated **

caseRule

public java.lang.Object caseRule(Rule object)
Returns the result of interpretting the object as an instance of 'Rule'. 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 'Rule'.
See Also:
doSwitch(EObject)
** Generated **

caseCoverageResult

public java.lang.Object caseCoverageResult(CoverageResult object)
Returns the result of interpretting the object as an instance of 'Coverage Result'. 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 'Coverage Result'.
See Also:
doSwitch(EObject)
** Generated **

caseCoverPoint

public java.lang.Object caseCoverPoint(CoverPoint object)
Returns the result of interpretting the object as an instance of 'Cover Point'. 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 'Cover Point'.
See Also:
doSwitch(EObject)
** Generated **

defaultCase

public java.lang.Object defaultCase(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)
** Generated **

Traceability

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.