Class CmiDerivedDataSwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- com._1c.g5.v8.dt.cmi.model.deriveddata.util.CmiDerivedDataSwitch<T>
-
public class CmiDerivedDataSwitch<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:
CmiDerivedDataPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static CmiDerivedDataPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description CmiDerivedDataSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAbstractCommandContainer(AbstractCommandContainer object)
Returns the result of interpreting the object as an instance of 'Abstract Command Container'.T
caseAbstractPanel(AbstractPanel object)
Returns the result of interpreting the object as an instance of 'Abstract Panel'.T
caseActionPanel(ActionPanel object)
Returns the result of interpreting the object as an instance of 'Action Panel'.T
caseCommand(Command object)
Returns the result of interpreting the object as an instance of 'Command'.T
caseCommandContainer(CommandContainer object)
Returns the result of interpreting the object as an instance of 'Command Container'.T
caseCommandGroup(CommandGroup object)
Returns the result of interpreting the object as an instance of 'Command Group'.T
caseCommandInterfaceRoot(CommandInterfaceRoot object)
Returns the result of interpreting the object as an instance of 'Command Interface Root'.T
caseCommandItem(CommandItem object)
Returns the result of interpreting the object as an instance of 'Command Item'.T
caseCommandItemGroup(CommandItemGroup object)
Returns the result of interpreting the object as an instance of 'Command Item Group'.T
caseCommandsByTypeMapEntry(Map.Entry<String,org.eclipse.emf.common.util.EList<Command>> object)
Returns the result of interpreting the object as an instance of 'Commands By Type Map Entry'.T
caseConfigurationCommandInterface(ConfigurationCommandInterface object)
Returns the result of interpreting the object as an instance of 'Configuration Command Interface'.T
caseConfigurationCommandInterfaceItem(ConfigurationCommandInterfaceItem object)
Returns the result of interpreting the object as an instance of 'Configuration Command Interface Item'.T
caseCustomCommandItemGroup(CustomCommandItemGroup object)
Returns the result of interpreting the object as an instance of 'Custom Command Item Group'.T
caseDetachedGroupPanel(DetachedGroupPanel object)
Returns the result of interpreting the object as an instance of 'Detached Group Panel'.T
caseFormActionPanel(FormActionPanel object)
Returns the result of interpreting the object as an instance of 'Form Action Panel'.T
caseFormCommandContainer(FormCommandContainer object)
Returns the result of interpreting the object as an instance of 'Form Command Container'.T
caseFormCommandInterface(FormCommandInterface object)
Returns the result of interpreting the object as an instance of 'Form Command Interface'.T
caseFormNavigationPanel(FormNavigationPanel object)
Returns the result of interpreting the object as an instance of 'Form Navigation Panel'.T
caseItemByCommandIdMapEntry(Map.Entry<Long,CommandItem> object)
Returns the result of interpreting the object as an instance of 'Item By Command Id Map Entry'.T
caseItemGroupByGroupIdMapEntry(Map.Entry<Long,CustomCommandItemGroup> object)
Returns the result of interpreting the object as an instance of 'Item Group By Group Id Map Entry'.T
caseMainSectionCommandInterface(MainSectionCommandInterface object)
Returns the result of interpreting the object as an instance of 'Main Section Command Interface'.T
caseMdObject(MdObject object)
Returns the result of interpreting the object as an instance of 'Md Object'.T
caseNavigationPanel(NavigationPanel object)
Returns the result of interpreting the object as an instance of 'Navigation Panel'.T
caseSubsystem(Subsystem object)
Returns the result of interpreting the object as an instance of 'Subsystem'.T
caseSubsystemCommandInterface(SubsystemCommandInterface object)
Returns the result of interpreting the object as an instance of 'Subsystem Command Interface'.T
caseTypesByCommandIdMapEntry(Map.Entry<Long,org.eclipse.emf.common.util.EList<String>> object)
Returns the result of interpreting the object as an instance of 'Types By Command Id Map Entry'.T
caseUnresolvedCommand(UnresolvedCommand object)
Returns the result of interpreting the object as an instance of 'Unresolved Command'.T
caseUnresolvedCommandEntry(Map.Entry<String,UnresolvedCommand> object)
Returns the result of interpreting the object as an instance of 'Unresolved Command Entry'.T
caseUnresolvedGroup(UnresolvedGroup object)
Returns the result of interpreting the object as an instance of 'Unresolved Group'.T
caseUnresolvedGroupEntry(Map.Entry<String,UnresolvedGroup> object)
Returns the result of interpreting the object as an instance of 'Unresolved Group Entry'.T
caseUnresolvedSubsystem(UnresolvedSubsystem object)
Returns the result of interpreting the object as an instance of 'Unresolved Subsystem'.T
caseUnresolvedSubsystemEntry(Map.Entry<String,UnresolvedSubsystem> object)
Returns the result of interpreting the object as an instance of 'Unresolved Subsystem Entry'.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 CmiDerivedDataPackage 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.
-
caseCommandInterfaceRoot
public T caseCommandInterfaceRoot(CommandInterfaceRoot object)
Returns the result of interpreting the object as an instance of 'Command Interface 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 'Command Interface Root'.
- See Also:
doSwitch(EObject)
-
caseConfigurationCommandInterface
public T caseConfigurationCommandInterface(ConfigurationCommandInterface object)
Returns the result of interpreting the object as an instance of 'Configuration Command Interface'. 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 Command Interface'.
- See Also:
doSwitch(EObject)
-
caseAbstractCommandContainer
public T caseAbstractCommandContainer(AbstractCommandContainer object)
Returns the result of interpreting the object as an instance of 'Abstract Command 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 'Abstract Command Container'.
- See Also:
doSwitch(EObject)
-
caseCommandContainer
public T caseCommandContainer(CommandContainer object)
Returns the result of interpreting the object as an instance of 'Command 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 'Command Container'.
- See Also:
doSwitch(EObject)
-
caseFormCommandContainer
public T caseFormCommandContainer(FormCommandContainer object)
Returns the result of interpreting the object as an instance of 'Form Command 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 'Form Command Container'.
- See Also:
doSwitch(EObject)
-
caseMainSectionCommandInterface
public T caseMainSectionCommandInterface(MainSectionCommandInterface object)
Returns the result of interpreting the object as an instance of 'Main Section Command Interface'. 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 'Main Section Command Interface'.
- See Also:
doSwitch(EObject)
-
caseSubsystemCommandInterface
public T caseSubsystemCommandInterface(SubsystemCommandInterface object)
Returns the result of interpreting the object as an instance of 'Subsystem Command Interface'. 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 Command Interface'.
- See Also:
doSwitch(EObject)
-
caseFormCommandInterface
public T caseFormCommandInterface(FormCommandInterface object)
Returns the result of interpreting the object as an instance of 'Form Command Interface'. 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 Interface'.
- See Also:
doSwitch(EObject)
-
caseConfigurationCommandInterfaceItem
public T caseConfigurationCommandInterfaceItem(ConfigurationCommandInterfaceItem object)
Returns the result of interpreting the object as an instance of 'Configuration Command Interface 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 'Configuration Command Interface Item'.
- See Also:
doSwitch(EObject)
-
caseAbstractPanel
public T caseAbstractPanel(AbstractPanel object)
Returns the result of interpreting the object as an instance of 'Abstract Panel'. 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 'Abstract Panel'.
- See Also:
doSwitch(EObject)
-
caseDetachedGroupPanel
public T caseDetachedGroupPanel(DetachedGroupPanel object)
Returns the result of interpreting the object as an instance of 'Detached Group Panel'. 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 'Detached Group Panel'.
- See Also:
doSwitch(EObject)
-
caseNavigationPanel
public T caseNavigationPanel(NavigationPanel object)
Returns the result of interpreting the object as an instance of 'Navigation Panel'. 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 'Navigation Panel'.
- See Also:
doSwitch(EObject)
-
caseActionPanel
public T caseActionPanel(ActionPanel object)
Returns the result of interpreting the object as an instance of 'Action Panel'. 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 'Action Panel'.
- See Also:
doSwitch(EObject)
-
caseFormNavigationPanel
public T caseFormNavigationPanel(FormNavigationPanel object)
Returns the result of interpreting the object as an instance of 'Form Navigation Panel'. 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 Navigation Panel'.
- See Also:
doSwitch(EObject)
-
caseFormActionPanel
public T caseFormActionPanel(FormActionPanel object)
Returns the result of interpreting the object as an instance of 'Form Action Panel'. 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 Action Panel'.
- See Also:
doSwitch(EObject)
-
caseCommandItemGroup
public T caseCommandItemGroup(CommandItemGroup object)
Returns the result of interpreting the object as an instance of 'Command Item Group'. 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 'Command Item Group'.
- See Also:
doSwitch(EObject)
-
caseCustomCommandItemGroup
public T caseCustomCommandItemGroup(CustomCommandItemGroup object)
Returns the result of interpreting the object as an instance of 'Custom Command Item Group'. 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 'Custom Command Item Group'.
- See Also:
doSwitch(EObject)
-
caseCommandItem
public T caseCommandItem(CommandItem object)
Returns the result of interpreting the object as an instance of 'Command 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 'Command Item'.
- See Also:
doSwitch(EObject)
-
caseItemByCommandIdMapEntry
public T caseItemByCommandIdMapEntry(Map.Entry<Long,CommandItem> object)
Returns the result of interpreting the object as an instance of 'Item By Command Id Map Entry'. 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 By Command Id Map Entry'.
- See Also:
doSwitch(EObject)
-
caseItemGroupByGroupIdMapEntry
public T caseItemGroupByGroupIdMapEntry(Map.Entry<Long,CustomCommandItemGroup> object)
Returns the result of interpreting the object as an instance of 'Item Group By Group Id Map Entry'. 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 Group By Group Id Map Entry'.
- See Also:
doSwitch(EObject)
-
caseCommandsByTypeMapEntry
public T caseCommandsByTypeMapEntry(Map.Entry<String,org.eclipse.emf.common.util.EList<Command>> object)
Returns the result of interpreting the object as an instance of 'Commands By Type Map Entry'. 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 'Commands By Type Map Entry'.
- See Also:
doSwitch(EObject)
-
caseTypesByCommandIdMapEntry
public T caseTypesByCommandIdMapEntry(Map.Entry<Long,org.eclipse.emf.common.util.EList<String>> object)
Returns the result of interpreting the object as an instance of 'Types By Command Id Map Entry'. 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 'Types By Command Id Map Entry'.
- See Also:
doSwitch(EObject)
-
caseUnresolvedCommand
public T caseUnresolvedCommand(UnresolvedCommand object)
Returns the result of interpreting the object as an instance of 'Unresolved 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 'Unresolved Command'.
- See Also:
doSwitch(EObject)
-
caseUnresolvedCommandEntry
public T caseUnresolvedCommandEntry(Map.Entry<String,UnresolvedCommand> object)
Returns the result of interpreting the object as an instance of 'Unresolved Command Entry'. 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 'Unresolved Command Entry'.
- See Also:
doSwitch(EObject)
-
caseUnresolvedGroup
public T caseUnresolvedGroup(UnresolvedGroup object)
Returns the result of interpreting the object as an instance of 'Unresolved Group'. 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 'Unresolved Group'.
- See Also:
doSwitch(EObject)
-
caseUnresolvedGroupEntry
public T caseUnresolvedGroupEntry(Map.Entry<String,UnresolvedGroup> object)
Returns the result of interpreting the object as an instance of 'Unresolved Group Entry'. 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 'Unresolved Group Entry'.
- See Also:
doSwitch(EObject)
-
caseUnresolvedSubsystem
public T caseUnresolvedSubsystem(UnresolvedSubsystem object)
Returns the result of interpreting the object as an instance of 'Unresolved 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 'Unresolved Subsystem'.
- See Also:
doSwitch(EObject)
-
caseUnresolvedSubsystemEntry
public T caseUnresolvedSubsystemEntry(Map.Entry<String,UnresolvedSubsystem> object)
Returns the result of interpreting the object as an instance of 'Unresolved Subsystem Entry'. 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 'Unresolved Subsystem Entry'.
- See Also:
doSwitch(EObject)
-
caseCommand
public T caseCommand(Command object)
Returns the result of interpreting the object as an instance of '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 'Command'.
- See Also:
doSwitch(EObject)
-
caseCommandGroup
public T caseCommandGroup(CommandGroup object)
Returns the result of interpreting the object as an instance of 'Command Group'. 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 'Command Group'.
- See Also:
doSwitch(EObject)
-
caseMdObject
public T caseMdObject(MdObject object)
Returns the result of interpreting the object as an instance of 'Md 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 'Md Object'.
- See Also:
doSwitch(EObject)
-
caseSubsystem
public T caseSubsystem(Subsystem 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)
-
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)
-
-