org.dmtf.schemas.ovf.envelope.util
Class EnvelopeSwitch<T>

java.lang.Object
  extended by org.dmtf.schemas.ovf.envelope.util.EnvelopeSwitch<T>
Direct Known Subclasses:
EnvelopeHelper.ExtensionAttributeFeatureSwitch

public class EnvelopeSwitch<T>
extends java.lang.Object

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.

See Also:
EnvelopePackage

Field Summary
protected static EnvelopePackage modelPackage
          The cached model package
 
Constructor Summary
EnvelopeSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAnnotationSectionType(AnnotationSectionType object)
          Returns the result of interpreting the object as an instance of 'Annotation Section Type'.
 T caseCIMResourceAllocationSettingDataType(CIMResourceAllocationSettingDataType object)
          Returns the result of interpreting the object as an instance of 'CIM Resource Allocation Setting Data Type'.
 T caseCIMVirtualSystemSettingDataType(CIMVirtualSystemSettingDataType object)
          Returns the result of interpreting the object as an instance of 'CIM Virtual System Setting Data Type'.
 T caseConfigurationType(ConfigurationType object)
          Returns the result of interpreting the object as an instance of 'Configuration Type'.
 T caseContentType(ContentType object)
          Returns the result of interpreting the object as an instance of 'Content Type'.
 T caseDeploymentOptionSectionType(DeploymentOptionSectionType object)
          Returns the result of interpreting the object as an instance of 'Deployment Option Section Type'.
 T caseDiskSectionType(DiskSectionType object)
          Returns the result of interpreting the object as an instance of 'Disk Section Type'.
 T caseDocumentRoot(DocumentRoot object)
          Returns the result of interpreting the object as an instance of 'Document Root'.
 T caseEnvelopeType(EnvelopeType object)
          Returns the result of interpreting the object as an instance of 'Type'.
 T caseEulaSectionType(EulaSectionType object)
          Returns the result of interpreting the object as an instance of 'Eula Section Type'.
 T caseFileType(FileType object)
          Returns the result of interpreting the object as an instance of 'File Type'.
 T caseIconType(IconType object)
          Returns the result of interpreting the object as an instance of 'Icon Type'.
 T caseInstallSectionType(InstallSectionType object)
          Returns the result of interpreting the object as an instance of 'Install Section Type'.
 T caseItemType(ItemType object)
          Returns the result of interpreting the object as an instance of 'Item Type'.
 T caseLocalHostResource(LocalHostResource object)
          Returns the result of interpreting the object as an instance of 'Local Host Resource'.
 T caseMsgType(MsgType object)
          Returns the result of interpreting the object as an instance of 'Msg Type'.
 T caseNetworkSectionType(NetworkSectionType object)
          Returns the result of interpreting the object as an instance of 'Network Section Type'.
 T caseNetworkType(NetworkType object)
          Returns the result of interpreting the object as an instance of 'Network Type'.
 T caseOperatingSystemSectionType(OperatingSystemSectionType object)
          Returns the result of interpreting the object as an instance of 'Operating System Section Type'.
 T caseProductSectionType(ProductSectionType object)
          Returns the result of interpreting the object as an instance of 'Product Section Type'.
 T casePropertyConfigurationValueType(PropertyConfigurationValueType object)
          Returns the result of interpreting the object as an instance of 'Property Configuration Value Type'.
 T casePropertyType(PropertyType object)
          Returns the result of interpreting the object as an instance of 'Property Type'.
 T caseRASDType(RASDType object)
          Returns the result of interpreting the object as an instance of 'RASD Type'.
 T caseReferencesType(ReferencesType object)
          Returns the result of interpreting the object as an instance of 'References Type'.
 T caseResourceAllocationSectionType(ResourceAllocationSectionType object)
          Returns the result of interpreting the object as an instance of 'Resource Allocation Section Type'.
 T caseSectionType(SectionType object)
          Returns the result of interpreting the object as an instance of 'Section Type'.
 T caseStartupSectionType(StartupSectionType object)
          Returns the result of interpreting the object as an instance of 'Startup Section Type'.
 T caseStringMsg(StringMsg object)
          Returns the result of interpreting the object as an instance of 'String Msg'.
 T caseStringsType(StringsType object)
          Returns the result of interpreting the object as an instance of 'Strings Type'.
 T caseVirtualDiskDescType(VirtualDiskDescType object)
          Returns the result of interpreting the object as an instance of 'Virtual Disk Desc Type'.
 T caseVirtualHardwareSectionType(VirtualHardwareSectionType object)
          Returns the result of interpreting the object as an instance of 'Virtual Hardware Section Type'.
 T caseVirtualSystemCollectionType(VirtualSystemCollectionType object)
          Returns the result of interpreting the object as an instance of 'Virtual System Collection Type'.
 T caseVirtualSystemType(VirtualSystemType object)
          Returns the result of interpreting the object as an instance of 'Virtual System Type'.
 T caseVSSDType(VSSDType object)
          Returns the result of interpreting the object as an instance of 'VSSD Type'.
 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

modelPackage

protected static EnvelopePackage modelPackage
The cached model package

Constructor Detail

EnvelopeSwitch

public EnvelopeSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

doSwitch

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.

Returns:
the first non-null result returned by a caseXXX call.

doSwitch

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.

Returns:
the first non-null result returned by a caseXXX call.

caseAnnotationSectionType

public T caseAnnotationSectionType(AnnotationSectionType object)
Returns the result of interpreting the object as an instance of 'Annotation Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Annotation Section Type'.
See Also:
doSwitch(EObject)

caseConfigurationType

public T caseConfigurationType(ConfigurationType object)
Returns the result of interpreting the object as an instance of 'Configuration Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Configuration Type'.
See Also:
doSwitch(EObject)

caseContentType

public T caseContentType(ContentType object)
Returns the result of interpreting the object as an instance of 'Content Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Content Type'.
See Also:
doSwitch(EObject)

caseDeploymentOptionSectionType

public T caseDeploymentOptionSectionType(DeploymentOptionSectionType object)
Returns the result of interpreting the object as an instance of 'Deployment Option Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Deployment Option Section Type'.
See Also:
doSwitch(EObject)

caseDiskSectionType

public T caseDiskSectionType(DiskSectionType object)
Returns the result of interpreting the object as an instance of 'Disk Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Disk Section Type'.
See Also:
doSwitch(EObject)

caseDocumentRoot

public T caseDocumentRoot(DocumentRoot object)
Returns the result of interpreting the object as an instance of 'Document Root'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Document Root'.
See Also:
doSwitch(EObject)

caseEnvelopeType

public T caseEnvelopeType(EnvelopeType object)
Returns the result of interpreting the object as an instance of 'Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Type'.
See Also:
doSwitch(EObject)

caseEulaSectionType

public T caseEulaSectionType(EulaSectionType object)
Returns the result of interpreting the object as an instance of 'Eula Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Eula Section Type'.
See Also:
doSwitch(EObject)

caseFileType

public T caseFileType(FileType object)
Returns the result of interpreting the object as an instance of 'File Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'File Type'.
See Also:
doSwitch(EObject)

caseIconType

public T caseIconType(IconType object)
Returns the result of interpreting the object as an instance of 'Icon Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Icon Type'.
See Also:
doSwitch(EObject)

caseInstallSectionType

public T caseInstallSectionType(InstallSectionType object)
Returns the result of interpreting the object as an instance of 'Install Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Install Section Type'.
See Also:
doSwitch(EObject)

caseItemType

public T caseItemType(ItemType object)
Returns the result of interpreting the object as an instance of 'Item Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Item Type'.
See Also:
doSwitch(EObject)

caseMsgType

public T caseMsgType(MsgType object)
Returns the result of interpreting the object as an instance of 'Msg Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Msg Type'.
See Also:
doSwitch(EObject)

caseNetworkSectionType

public T caseNetworkSectionType(NetworkSectionType object)
Returns the result of interpreting the object as an instance of 'Network Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Network Section Type'.
See Also:
doSwitch(EObject)

caseNetworkType

public T caseNetworkType(NetworkType object)
Returns the result of interpreting the object as an instance of 'Network Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Network Type'.
See Also:
doSwitch(EObject)

caseOperatingSystemSectionType

public T caseOperatingSystemSectionType(OperatingSystemSectionType object)
Returns the result of interpreting the object as an instance of 'Operating System Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Operating System Section Type'.
See Also:
doSwitch(EObject)

caseProductSectionType

public T caseProductSectionType(ProductSectionType object)
Returns the result of interpreting the object as an instance of 'Product Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Product Section Type'.
See Also:
doSwitch(EObject)

casePropertyConfigurationValueType

public T casePropertyConfigurationValueType(PropertyConfigurationValueType object)
Returns the result of interpreting the object as an instance of 'Property Configuration Value Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Property Configuration Value Type'.
See Also:
doSwitch(EObject)

casePropertyType

public T casePropertyType(PropertyType object)
Returns the result of interpreting the object as an instance of 'Property Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Property Type'.
See Also:
doSwitch(EObject)

caseRASDType

public T caseRASDType(RASDType object)
Returns the result of interpreting the object as an instance of 'RASD Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'RASD Type'.
See Also:
doSwitch(EObject)

caseReferencesType

public T caseReferencesType(ReferencesType object)
Returns the result of interpreting the object as an instance of 'References Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'References Type'.
See Also:
doSwitch(EObject)

caseResourceAllocationSectionType

public T caseResourceAllocationSectionType(ResourceAllocationSectionType object)
Returns the result of interpreting the object as an instance of 'Resource Allocation Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Resource Allocation Section Type'.
See Also:
doSwitch(EObject)

caseSectionType

public T caseSectionType(SectionType object)
Returns the result of interpreting the object as an instance of 'Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Section Type'.
See Also:
doSwitch(EObject)

caseStartupSectionType

public T caseStartupSectionType(StartupSectionType object)
Returns the result of interpreting the object as an instance of 'Startup Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Startup Section Type'.
See Also:
doSwitch(EObject)

caseStringMsg

public T caseStringMsg(StringMsg object)
Returns the result of interpreting the object as an instance of 'String Msg'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'String Msg'.
See Also:
doSwitch(EObject)

caseStringsType

public T caseStringsType(StringsType object)
Returns the result of interpreting the object as an instance of 'Strings Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Strings Type'.
See Also:
doSwitch(EObject)

caseVirtualDiskDescType

public T caseVirtualDiskDescType(VirtualDiskDescType object)
Returns the result of interpreting the object as an instance of 'Virtual Disk Desc Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Virtual Disk Desc Type'.
See Also:
doSwitch(EObject)

caseVirtualHardwareSectionType

public T caseVirtualHardwareSectionType(VirtualHardwareSectionType object)
Returns the result of interpreting the object as an instance of 'Virtual Hardware Section Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Virtual Hardware Section Type'.
See Also:
doSwitch(EObject)

caseVirtualSystemCollectionType

public T caseVirtualSystemCollectionType(VirtualSystemCollectionType object)
Returns the result of interpreting the object as an instance of 'Virtual System Collection Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Virtual System Collection Type'.
See Also:
doSwitch(EObject)

caseVirtualSystemType

public T caseVirtualSystemType(VirtualSystemType object)
Returns the result of interpreting the object as an instance of 'Virtual System Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Virtual System Type'.
See Also:
doSwitch(EObject)

caseVSSDType

public T caseVSSDType(VSSDType object)
Returns the result of interpreting the object as an instance of 'VSSD Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'VSSD Type'.
See Also:
doSwitch(EObject)

caseLocalHostResource

public T caseLocalHostResource(LocalHostResource object)
Returns the result of interpreting the object as an instance of 'Local Host Resource'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Local Host Resource'.
See Also:
doSwitch(EObject)

caseCIMResourceAllocationSettingDataType

public T caseCIMResourceAllocationSettingDataType(CIMResourceAllocationSettingDataType object)
Returns the result of interpreting the object as an instance of 'CIM Resource Allocation Setting Data Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'CIM Resource Allocation Setting Data Type'.
See Also:
doSwitch(EObject)

caseCIMVirtualSystemSettingDataType

public T caseCIMVirtualSystemSettingDataType(CIMVirtualSystemSettingDataType object)
Returns the result of interpreting the object as an instance of 'CIM Virtual System Setting Data Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'CIM Virtual System Setting Data Type'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)


© Copyright 2008 IBM Corp. 2008 All Rights Reserved