public class ProtocolSwitch<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.
ProtocolPackage| Modifier and Type | Field and Description |
|---|---|
protected static ProtocolPackage |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
ProtocolSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'.
|
T |
caseAttributeStructure(AttributeStructure object)
Returns the result of interpreting the object as an instance of 'Attribute Structure'.
|
T |
caseBooleanAttribute(BooleanAttribute object)
Returns the result of interpreting the object as an instance of 'Boolean Attribute'.
|
T |
caseDocumentedElement(DocumentedElement object)
Returns the result of interpreting the object as an instance of 'Documented Element'.
|
T |
caseEnum(Enum object)
Returns the result of interpreting the object as an instance of 'Enum'.
|
T |
caseEnumAttribute(EnumAttribute object)
Returns the result of interpreting the object as an instance of 'Enum Attribute'.
|
T |
caseFloatAttribute(FloatAttribute object)
Returns the result of interpreting the object as an instance of 'Float Attribute'.
|
T |
caseIntegerAttribute(IntegerAttribute object)
Returns the result of interpreting the object as an instance of 'Integer Attribute'.
|
T |
caseInterface(Interface object)
Returns the result of interpreting the object as an instance of 'Interface'.
|
T |
caseLongAttribute(LongAttribute object)
Returns the result of interpreting the object as an instance of 'Long Attribute'.
|
T |
caseMessage(Message object)
Returns the result of interpreting the object as an instance of 'Message'.
|
T |
casePropertiesAttribute(PropertiesAttribute object)
Returns the result of interpreting the object as an instance of 'Properties Attribute'.
|
T |
caseProtocol(Protocol object)
Returns the result of interpreting the object as an instance of 'Protocol'.
|
T |
caseStringAttribute(StringAttribute object)
Returns the result of interpreting the object as an instance of 'String Attribute'.
|
T |
caseStructure(Structure object)
Returns the result of interpreting the object as an instance of 'Structure'.
|
T |
caseStructureAttribute(StructureAttribute object)
Returns the result of interpreting the object as an instance of 'Structure Attribute'.
|
T |
caseVariantAttribute(VariantAttribute object)
Returns the result of interpreting the object as an instance of 'Variant Attribute'.
|
T |
caseVariantMapAttribute(VariantMapAttribute object)
Returns the result of interpreting the object as an instance of 'Variant Map Attribute'.
|
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 ProtocolPackage 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 caseMessage(Message object)
object - the target of the switch.doSwitch(EObject)public T caseAttribute(Attribute object)
object - the target of the switch.doSwitch(EObject)public T caseProtocol(Protocol object)
object - the target of the switch.doSwitch(EObject)public T caseStructure(Structure object)
object - the target of the switch.doSwitch(EObject)public T caseStringAttribute(StringAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseBooleanAttribute(BooleanAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseStructureAttribute(StructureAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseVariantAttribute(VariantAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseIntegerAttribute(IntegerAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseLongAttribute(LongAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseFloatAttribute(FloatAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseVariantMapAttribute(VariantMapAttribute object)
object - the target of the switch.doSwitch(EObject)public T casePropertiesAttribute(PropertiesAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseEnum(Enum object)
object - the target of the switch.doSwitch(EObject)public T caseEnumAttribute(EnumAttribute object)
object - the target of the switch.doSwitch(EObject)public T caseInterface(Interface object)
object - the target of the switch.doSwitch(EObject)public T caseAttributeStructure(AttributeStructure object)
object - the target of the switch.doSwitch(EObject)public T caseDocumentedElement(DocumentedElement 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 © 2016 Eclipse NeoSCADA Project. All rights reserved.