public class PtnetSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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.
PtnetPackage
Modifier and Type | Field and Description |
---|---|
protected static PtnetPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
PtnetSwitch()
Creates an instance of the switch
|
Modifier and Type | Method and Description |
---|---|
T |
caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'
|
T |
caseAnnotationGraphics(AnnotationGraphics object)
Returns the result of interpreting the object as an instance of 'Annotation Graphics'
|
T |
caseAnyObject(AnyObject object)
Returns the result of interpreting the object as an instance of 'Any Object'
|
T |
caseArc(Arc object)
Returns the result of interpreting the object as an instance of 'Arc'
|
T |
caseArcGraphics(ArcGraphics object)
Returns the result of interpreting the object as an instance of 'Arc Graphics'
|
T |
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'
|
T |
caseCoordinate(Coordinate object)
Returns the result of interpreting the object as an instance of 'Coordinate'
|
T |
caseDimension(Dimension object)
Returns the result of interpreting the object as an instance of 'Dimension'
|
T |
caseFill(Fill object)
Returns the result of interpreting the object as an instance of 'Fill'
|
T |
caseFont(Font object)
Returns the result of interpreting the object as an instance of 'Font'
|
T |
caseGraphics(Graphics object)
Returns the result of interpreting the object as an instance of 'Graphics'
|
T |
caseLabel(Label object)
Returns the result of interpreting the object as an instance of 'Label'
|
T |
caseLine(Line object)
Returns the result of interpreting the object as an instance of 'Line'
|
T |
caseName(Name object)
Returns the result of interpreting the object as an instance of 'Name'
|
T |
caseNode(Node object)
Returns the result of interpreting the object as an instance of 'Node'
|
T |
caseNodeGraphics(NodeGraphics object)
Returns the result of interpreting the object as an instance of 'Node Graphics'
|
T |
caseOffset(Offset object)
Returns the result of interpreting the object as an instance of 'Offset'
|
T |
casePage(Page object)
Returns the result of interpreting the object as an instance of 'Page'
|
T |
casePetriNet(PetriNet object)
Returns the result of interpreting the object as an instance of 'Petri Net'
|
T |
casePetriNetDoc(PetriNetDoc object)
Returns the result of interpreting the object as an instance of 'Petri Net Doc'
|
T |
casePlace(Place object)
Returns the result of interpreting the object as an instance of 'Place'
|
T |
casePlaceNode(PlaceNode object)
Returns the result of interpreting the object as an instance of 'Place Node'
|
T |
casePnObject(PnObject object)
Returns the result of interpreting the object as an instance of 'Pn Object'
|
T |
casePosition(Position object)
Returns the result of interpreting the object as an instance of 'Position'
|
T |
casePTArcAnnotation(PTArcAnnotation object)
Returns the result of interpreting the object as an instance of 'PT Arc Annotation'
|
T |
casePTMarking(PTMarking object)
Returns the result of interpreting the object as an instance of 'PT Marking'
|
T |
caseRefPlace(RefPlace object)
Returns the result of interpreting the object as an instance of 'Ref Place'
|
T |
caseRefTransition(RefTransition object)
Returns the result of interpreting the object as an instance of 'Ref Transition'
|
T |
caseToolInfo(ToolInfo object)
Returns the result of interpreting the object as an instance of 'Tool Info'
|
T |
caseTransition(Transition object)
Returns the result of interpreting the object as an instance of 'Transition'
|
T |
caseTransitionNode(TransitionNode object)
Returns the result of interpreting the object as an instance of 'Transition Node'
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
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 |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static PtnetPackage modelPackage
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
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.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T casePTMarking(PTMarking object)
object
- the target of the switch.doSwitch(EObject)
public T casePTArcAnnotation(PTArcAnnotation object)
object
- the target of the switch.doSwitch(EObject)
public T casePetriNetDoc(PetriNetDoc object)
object
- the target of the switch.doSwitch(EObject)
public T casePetriNet(PetriNet object)
object
- the target of the switch.doSwitch(EObject)
public T casePage(Page object)
object
- the target of the switch.doSwitch(EObject)
public T casePnObject(PnObject object)
object
- the target of the switch.doSwitch(EObject)
public T caseName(Name object)
object
- the target of the switch.doSwitch(EObject)
public T caseToolInfo(ToolInfo object)
object
- the target of the switch.doSwitch(EObject)
public T caseLabel(Label object)
object
- the target of the switch.doSwitch(EObject)
public T caseNodeGraphics(NodeGraphics object)
object
- the target of the switch.doSwitch(EObject)
public T caseGraphics(Graphics object)
object
- the target of the switch.doSwitch(EObject)
public T caseCoordinate(Coordinate object)
object
- the target of the switch.doSwitch(EObject)
public T casePosition(Position object)
object
- the target of the switch.doSwitch(EObject)
public T caseOffset(Offset object)
object
- the target of the switch.doSwitch(EObject)
public T caseDimension(Dimension object)
object
- the target of the switch.doSwitch(EObject)
public T caseAnnotationGraphics(AnnotationGraphics object)
object
- the target of the switch.doSwitch(EObject)
public T caseFill(Fill object)
object
- the target of the switch.doSwitch(EObject)
public T caseLine(Line object)
object
- the target of the switch.doSwitch(EObject)
public T caseArcGraphics(ArcGraphics object)
object
- the target of the switch.doSwitch(EObject)
public T caseArc(Arc object)
object
- the target of the switch.doSwitch(EObject)
public T caseNode(Node object)
object
- the target of the switch.doSwitch(EObject)
public T caseFont(Font object)
object
- the target of the switch.doSwitch(EObject)
public T casePlaceNode(PlaceNode object)
object
- the target of the switch.doSwitch(EObject)
public T caseTransitionNode(TransitionNode object)
object
- the target of the switch.doSwitch(EObject)
public T casePlace(Place object)
object
- the target of the switch.doSwitch(EObject)
public T caseRefTransition(RefTransition object)
object
- the target of the switch.doSwitch(EObject)
public T caseTransition(Transition object)
object
- the target of the switch.doSwitch(EObject)
public T caseRefPlace(RefPlace object)
object
- the target of the switch.doSwitch(EObject)
public T caseAttribute(Attribute object)
object
- the target of the switch.doSwitch(EObject)
public T caseAnnotation(Annotation object)
object
- the target of the switch.doSwitch(EObject)
public T caseAnyObject(AnyObject object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)
Copyright © 2009–2016 Univ. Paris Ouest, and Univ. Pierre et Marie Curie / CNRS UMR 7606 (LIP6). All rights reserved.