Class SupplySwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- com._1c.g5.v8.dt.supply.settings.model.util.SupplySwitch<T>
-
public class SupplySwitch<T> extends org.eclipse.emf.ecore.util.Switch<T>
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
SupplyPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static SupplyPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description SupplySwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseBaseSupplyFormObject(BaseSupplyFormObject object)
Returns the result of interpreting the object as an instance of 'Base Supply Form Object'.T
caseBaseSupplyObject(BaseSupplyObject object)
Returns the result of interpreting the object as an instance of 'Base Supply Object'.T
caseDataProtection(DataProtection object)
Returns the result of interpreting the object as an instance of 'Data Protection'.T
caseIntegrateNamespace(IntegrateNamespace object)
Returns the result of interpreting the object as an instance of 'Integrate Namespace'.T
caseIntegrateNamespaces(IntegrateNamespaces object)
Returns the result of interpreting the object as an instance of 'Integrate Namespaces'.T
caseIntegrateObject(IntegrateObject object)
Returns the result of interpreting the object as an instance of 'Integrate Object'.T
caseIntegrateObjects(IntegrateObjects object)
Returns the result of interpreting the object as an instance of 'Integrate Objects'.T
caseIntegrationSettings(IntegrationSettings object)
Returns the result of interpreting the object as an instance of 'Integration Settings'.T
caseLibraryIntegrationSettings(LibraryIntegrationSettings object)
Returns the result of interpreting the object as an instance of 'Library Integration Settings'.T
caseProtectedObject(ProtectedObject object)
Returns the result of interpreting the object as an instance of 'Protected Object'.T
caseSupplyConfiguration(SupplyConfiguration object)
Returns the result of interpreting the object as an instance of 'Configuration'.T
caseSupplyContainment(SupplyContainment object)
Returns the result of interpreting the object as an instance of 'Containment'.T
caseSupplyForm(SupplyForm object)
Returns the result of interpreting the object as an instance of 'Form'.T
caseSupplyFormAttribute(SupplyFormAttribute object)
Returns the result of interpreting the object as an instance of 'Form Attribute'.T
caseSupplyFormCommand(SupplyFormCommand object)
Returns the result of interpreting the object as an instance of 'Form Command'.T
caseSupplyFormItem(SupplyFormItem object)
Returns the result of interpreting the object as an instance of 'Form Item'.T
caseSupplyFormParameter(SupplyFormParameter object)
Returns the result of interpreting the object as an instance of 'Form Parameter'.T
caseSupplyGenericObject(SupplyGenericObject object)
Returns the result of interpreting the object as an instance of 'Generic Object'.T
caseSupplyMethod(SupplyMethod object)
Returns the result of interpreting the object as an instance of 'Method'.T
caseSupplyModule(SupplyModule object)
Returns the result of interpreting the object as an instance of 'Module'.T
caseSupplyNamespace(SupplyNamespace object)
Returns the result of interpreting the object as an instance of 'Namespace'.T
caseSupplyNamespaceControllable(SupplyNamespaceControllable object)
Returns the result of interpreting the object as an instance of 'Namespace Controllable'.T
caseSupplyProperty(SupplyProperty object)
Returns the result of interpreting the object as an instance of 'Property'.T
caseSupplyPropertyContainer(SupplyPropertyContainer object)
Returns the result of interpreting the object as an instance of 'Property Container'.T
caseSupplySubsystem(SupplySubsystem object)
Returns the result of interpreting the object as an instance of 'Subsystem'.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)
CallscaseXXX
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.
-
-
-
Field Detail
-
modelPackage
protected static SupplyPackage modelPackage
The cached model package
-
-
Method Detail
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseSupplyPropertyContainer
public T caseSupplyPropertyContainer(SupplyPropertyContainer object)
Returns the result of interpreting the object as an instance of 'Property Container'. 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 Container'.
- See Also:
doSwitch(EObject)
-
caseSupplyNamespaceControllable
public T caseSupplyNamespaceControllable(SupplyNamespaceControllable object)
Returns the result of interpreting the object as an instance of 'Namespace Controllable'. 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 'Namespace Controllable'.
- See Also:
doSwitch(EObject)
-
caseSupplyConfiguration
public T caseSupplyConfiguration(SupplyConfiguration object)
Returns the result of interpreting the object as an instance of 'Configuration'. 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'.
- See Also:
doSwitch(EObject)
-
caseBaseSupplyObject
public T caseBaseSupplyObject(BaseSupplyObject object)
Returns the result of interpreting the object as an instance of 'Base Supply Object'. 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 'Base Supply Object'.
- See Also:
doSwitch(EObject)
-
caseSupplyGenericObject
public T caseSupplyGenericObject(SupplyGenericObject object)
Returns the result of interpreting the object as an instance of 'Generic Object'. 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 'Generic Object'.
- See Also:
doSwitch(EObject)
-
caseSupplyContainment
public T caseSupplyContainment(SupplyContainment object)
Returns the result of interpreting the object as an instance of 'Containment'. 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 'Containment'.
- See Also:
doSwitch(EObject)
-
caseSupplySubsystem
public T caseSupplySubsystem(SupplySubsystem object)
Returns the result of interpreting the object as an instance of 'Subsystem'. 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 'Subsystem'.
- See Also:
doSwitch(EObject)
-
caseSupplyNamespace
public T caseSupplyNamespace(SupplyNamespace object)
Returns the result of interpreting the object as an instance of 'Namespace'. 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 'Namespace'.
- See Also:
doSwitch(EObject)
-
caseSupplyProperty
public T caseSupplyProperty(SupplyProperty object)
Returns the result of interpreting the object as an instance of 'Property'. 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'.
- See Also:
doSwitch(EObject)
-
caseSupplyForm
public T caseSupplyForm(SupplyForm object)
Returns the result of interpreting the object as an instance of 'Form'. 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 'Form'.
- See Also:
doSwitch(EObject)
-
caseBaseSupplyFormObject
public T caseBaseSupplyFormObject(BaseSupplyFormObject object)
Returns the result of interpreting the object as an instance of 'Base Supply Form Object'. 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 'Base Supply Form Object'.
- See Also:
doSwitch(EObject)
-
caseSupplyFormItem
public T caseSupplyFormItem(SupplyFormItem object)
Returns the result of interpreting the object as an instance of 'Form Item'. 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 'Form Item'.
- See Also:
doSwitch(EObject)
-
caseSupplyFormAttribute
public T caseSupplyFormAttribute(SupplyFormAttribute object)
Returns the result of interpreting the object as an instance of 'Form Attribute'. 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 'Form Attribute'.
- See Also:
doSwitch(EObject)
-
caseSupplyFormCommand
public T caseSupplyFormCommand(SupplyFormCommand object)
Returns the result of interpreting the object as an instance of 'Form Command'. 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 'Form Command'.
- See Also:
doSwitch(EObject)
-
caseSupplyFormParameter
public T caseSupplyFormParameter(SupplyFormParameter object)
Returns the result of interpreting the object as an instance of 'Form Parameter'. 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 'Form Parameter'.
- See Also:
doSwitch(EObject)
-
caseSupplyModule
public T caseSupplyModule(SupplyModule object)
Returns the result of interpreting the object as an instance of 'Module'. 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 'Module'.
- See Also:
doSwitch(EObject)
-
caseSupplyMethod
public T caseSupplyMethod(SupplyMethod object)
Returns the result of interpreting the object as an instance of 'Method'. 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 'Method'.
- See Also:
doSwitch(EObject)
-
caseLibraryIntegrationSettings
public T caseLibraryIntegrationSettings(LibraryIntegrationSettings object)
Returns the result of interpreting the object as an instance of 'Library Integration Settings'. 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 'Library Integration Settings'.
- See Also:
doSwitch(EObject)
-
caseDataProtection
public T caseDataProtection(DataProtection object)
Returns the result of interpreting the object as an instance of 'Data Protection'. 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 'Data Protection'.
- See Also:
doSwitch(EObject)
-
caseIntegrationSettings
public T caseIntegrationSettings(IntegrationSettings object)
Returns the result of interpreting the object as an instance of 'Integration Settings'. 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 'Integration Settings'.
- See Also:
doSwitch(EObject)
-
caseIntegrateNamespaces
public T caseIntegrateNamespaces(IntegrateNamespaces object)
Returns the result of interpreting the object as an instance of 'Integrate Namespaces'. 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 'Integrate Namespaces'.
- See Also:
doSwitch(EObject)
-
caseIntegrateNamespace
public T caseIntegrateNamespace(IntegrateNamespace object)
Returns the result of interpreting the object as an instance of 'Integrate Namespace'. 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 'Integrate Namespace'.
- See Also:
doSwitch(EObject)
-
caseIntegrateObjects
public T caseIntegrateObjects(IntegrateObjects object)
Returns the result of interpreting the object as an instance of 'Integrate Objects'. 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 'Integrate Objects'.
- See Also:
doSwitch(EObject)
-
caseIntegrateObject
public T caseIntegrateObject(IntegrateObject object)
Returns the result of interpreting the object as an instance of 'Integrate Object'. 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 'Integrate Object'.
- See Also:
doSwitch(EObject)
-
caseProtectedObject
public T caseProtectedObject(ProtectedObject object)
Returns the result of interpreting the object as an instance of 'Protected Object'. 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 'Protected Object'.
- See Also:
doSwitch(EObject)
-
defaultCase
public T defaultCase(org.eclipse.emf.ecore.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.- Overrides:
defaultCase
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
-
-