|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dmtf.schemas.wscim.cim.common.util.CommonSwitch<T>
public class CommonSwitch<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.
CommonPackage
Field Summary | |
---|---|
protected static CommonPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
CommonSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseCimAnySimpleType(CimAnySimpleType object)
Returns the result of interpreting the object as an instance of 'Cim Any Simple Type'. |
T |
caseCimBase64Binary(CimBase64Binary object)
Returns the result of interpreting the object as an instance of 'Cim Base64 Binary'. |
T |
caseCimBoolean(CimBoolean object)
Returns the result of interpreting the object as an instance of 'Cim Boolean'. |
T |
caseCimByte(CimByte object)
Returns the result of interpreting the object as an instance of 'Cim Byte'. |
T |
caseCimChar16(CimChar16 object)
Returns the result of interpreting the object as an instance of 'Cim Char16'. |
T |
caseCimDateTime(CimDateTime object)
Returns the result of interpreting the object as an instance of 'Cim Date Time'. |
T |
caseCimDouble(CimDouble object)
Returns the result of interpreting the object as an instance of 'Cim Double'. |
T |
caseCimFloat(CimFloat object)
Returns the result of interpreting the object as an instance of 'Cim Float'. |
T |
caseCimHexBinary(CimHexBinary object)
Returns the result of interpreting the object as an instance of 'Cim Hex Binary'. |
T |
caseCimInt(CimInt object)
Returns the result of interpreting the object as an instance of 'Cim Int'. |
T |
caseCimLong(CimLong object)
Returns the result of interpreting the object as an instance of 'Cim Long'. |
T |
caseCimReference(CimReference object)
Returns the result of interpreting the object as an instance of 'Cim Reference'. |
T |
caseCimShort(CimShort object)
Returns the result of interpreting the object as an instance of 'Cim Short'. |
T |
caseCimString(CimString object)
Returns the result of interpreting the object as an instance of 'Cim String'. |
T |
caseCimUnsignedByte(CimUnsignedByte object)
Returns the result of interpreting the object as an instance of 'Cim Unsigned Byte'. |
T |
caseCimUnsignedInt(CimUnsignedInt object)
Returns the result of interpreting the object as an instance of 'Cim Unsigned Int'. |
T |
caseCimUnsignedLong(CimUnsignedLong object)
Returns the result of interpreting the object as an instance of 'Cim Unsigned Long'. |
T |
caseCimUnsignedShort(CimUnsignedShort object)
Returns the result of interpreting the object as an instance of 'Cim Unsigned Short'. |
T |
caseDocumentRoot(DocumentRoot object)
Returns the result of interpreting the object as an instance of 'Document Root'. |
T |
caseQualifierBoolean(QualifierBoolean object)
Returns the result of interpreting the object as an instance of 'Qualifier Boolean'. |
T |
caseQualifierSArray(QualifierSArray object)
Returns the result of interpreting the object as an instance of 'Qualifier SArray'. |
T |
caseQualifierSInt64(QualifierSInt64 object)
Returns the result of interpreting the object as an instance of 'Qualifier SInt64'. |
T |
caseQualifierString(QualifierString object)
Returns the result of interpreting the object as an instance of 'Qualifier String'. |
T |
caseQualifierUInt32(QualifierUInt32 object)
Returns the result of interpreting the object as an instance of 'Qualifier UInt32'. |
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
T |
doSwitch(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,
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 CommonPackage modelPackage
Constructor Detail |
---|
public CommonSwitch()
Method Detail |
---|
public T doSwitch(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(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 T 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 T caseCimAnySimpleType(CimAnySimpleType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimBase64Binary(CimBase64Binary object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimBoolean(CimBoolean object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimByte(CimByte object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimChar16(CimChar16 object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimDateTime(CimDateTime object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimDouble(CimDouble object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimFloat(CimFloat object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimHexBinary(CimHexBinary object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimInt(CimInt object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimLong(CimLong object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimReference(CimReference object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimShort(CimShort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimString(CimString object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimUnsignedByte(CimUnsignedByte object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimUnsignedInt(CimUnsignedInt object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimUnsignedLong(CimUnsignedLong object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCimUnsignedShort(CimUnsignedShort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDocumentRoot(DocumentRoot object)
object
- the target of the switch.
doSwitch(EObject)
public T caseQualifierBoolean(QualifierBoolean object)
object
- the target of the switch.
doSwitch(EObject)
public T caseQualifierSArray(QualifierSArray object)
object
- the target of the switch.
doSwitch(EObject)
public T caseQualifierSInt64(QualifierSInt64 object)
object
- the target of the switch.
doSwitch(EObject)
public T caseQualifierString(QualifierString object)
object
- the target of the switch.
doSwitch(EObject)
public T caseQualifierUInt32(QualifierUInt32 object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(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 |