|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hammurapi.review.util.ReviewSwitch<T>
public class ReviewSwitch<T>
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.
ReviewPackage
Field Summary | |
---|---|
protected static ReviewPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
ReviewSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'. |
T |
caseArtifactType(ArtifactType object)
Returns the result of interpreting the object as an instance of 'Artifact Type'. |
T |
caseBaseline(Baseline object)
Returns the result of interpreting the object as an instance of 'Baseline'. |
T |
caseCommonObject(CommonObject object)
Returns the result of interpreting the object as an instance of 'Common Object'. |
T |
caseComponent(Component object)
Returns the result of interpreting the object as an instance of 'Component'. |
T |
caseFactory(Factory object)
Returns the result of interpreting the object as an instance of 'Factory'. |
T |
caseGovernanaceObject(GovernanaceObject object)
Returns the result of interpreting the object as an instance of 'Governanace Object'. |
T |
caseGovernanceDomain(GovernanceDomain object)
Returns the result of interpreting the object as an instance of 'Governance Domain'. |
T |
caseGovernor(Governor object)
Returns the result of interpreting the object as an instance of 'Governor'. |
T |
caseInspector(Inspector object)
Returns the result of interpreting the object as an instance of 'Inspector'. |
T |
caseInspectorCategory(InspectorCategory object)
Returns the result of interpreting the object as an instance of 'Inspector Category'. |
T |
caseInspectorRelationship(InspectorRelationship object)
Returns the result of interpreting the object as an instance of 'Inspector Relationship'. |
T |
caseInspectorSet(InspectorSet object)
Returns the result of interpreting the object as an instance of 'Inspector Set'. |
T |
caseLanguageElement(LanguageElement object)
Returns the result of interpreting the object as an instance of 'Language Element'. |
T |
caseMeasurement(Measurement object)
Returns the result of interpreting the object as an instance of 'Measurement'. |
T |
caseModule(Module object)
Returns the result of interpreting the object as an instance of 'Module'. |
T |
caseNamed(Named object)
Returns the result of interpreting the object as an instance of 'Named'. |
T |
caseNamedObjectDefinition(NamedObjectDefinition object)
Returns the result of interpreting the object as an instance of 'Named Object Definition'. |
T |
caseObjectDefinition(ObjectDefinition object)
Returns the result of interpreting the object as an instance of 'Object Definition'. |
T |
caseObservation(Observation object)
Returns the result of interpreting the object as an instance of 'Observation'. |
T |
caseOrganization(Organization object)
Returns the result of interpreting the object as an instance of 'Organization'. |
T |
caseParty(Party object)
Returns the result of interpreting the object as an instance of 'Party'. |
T |
casePropertySource(PropertySource object)
Returns the result of interpreting the object as an instance of 'Property Source'. |
T |
caseReport(Report object)
Returns the result of interpreting the object as an instance of 'Report'. |
T |
caseRepository(Repository object)
Returns the result of interpreting the object as an instance of 'Repository'. |
T |
caseRevision(Revision object)
Returns the result of interpreting the object as an instance of 'Revision'. |
T |
caseTagged(Tagged object)
Returns the result of interpreting the object as an instance of 'Tagged'. |
T |
caseTool(Tool object)
Returns the result of interpreting the object as an instance of 'Tool'. |
T |
caseToolVersion(ToolVersion object)
Returns the result of interpreting the object as an instance of 'Tool Version'. |
T |
caseViolation(Violation object)
Returns the result of interpreting the object as an instance of 'Violation'. |
T |
caseWaiver(Waiver object)
Returns the result of interpreting the object as an instance of 'Waiver'. |
T |
caseWarning(Warning object)
Returns the result of interpreting the object as an instance of 'Warning'. |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(org.eclipse.emf.ecore.EClass theEClass,
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. |
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. |
protected T |
doSwitch(int classifierID,
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ReviewPackage modelPackage
Constructor Detail |
---|
public ReviewSwitch()
Method Detail |
---|
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseObservation(Observation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseViolation(Violation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseWarning(Warning object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMeasurement(Measurement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnnotation(Annotation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRepository(Repository object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRevision(Revision object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBaseline(Baseline object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReport(Report object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInspectorSet(InspectorSet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInspector(Inspector object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInspectorCategory(InspectorCategory object)
object
- the target of the switch.
doSwitch(EObject)
public T caseComponent(Component object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModule(Module object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLanguageElement(LanguageElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseWaiver(Waiver object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGovernanceDomain(GovernanceDomain object)
object
- the target of the switch.
doSwitch(EObject)
public T caseArtifactType(ArtifactType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTool(Tool object)
object
- the target of the switch.
doSwitch(EObject)
public T caseToolVersion(ToolVersion object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGovernanaceObject(GovernanaceObject object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGovernor(Governor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInspectorRelationship(InspectorRelationship object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCommonObject(CommonObject object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFactory(Factory object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamed(Named object)
object
- the target of the switch.
doSwitch(EObject)
public T casePropertySource(PropertySource object)
object
- the target of the switch.
doSwitch(EObject)
public T caseObjectDefinition(ObjectDefinition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamedObjectDefinition(NamedObjectDefinition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTagged(Tagged object)
object
- the target of the switch.
doSwitch(EObject)
public T caseParty(Party object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOrganization(Organization object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |