|
Traceability | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectttm.util.TtmSwitch
public class TtmSwitch
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.
TtmPackage
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 |
---|
protected static TtmPackage modelPackage
Constructor Detail |
---|
public TtmSwitch()
Method Detail |
---|
public java.lang.Object doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected java.lang.Object doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected java.lang.Object doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public java.lang.Object caseHierarchicalElement(HierarchicalElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseDocument(Document object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseSection(Section object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseIdentifiedElement(IdentifiedElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseText(Text object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseAttribute(Attribute object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseRequirement(Requirement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCoverLink(CoverLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseNavigationLink(NavigationLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseAbstractLink(AbstractLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseProject(Project object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseElement(Element object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseRuleInstance(RuleInstance object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseAttributeOwner(AttributeOwner object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseRule(Rule object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCoverageResult(CoverageResult object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCoverPoint(CoverPoint object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object defaultCase(EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
Traceability | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.