g-Eclipse
Release 1.0.0

eu.geclipse.jsdl.model.posix.util
Class PosixSwitch

java.lang.Object
  extended by eu.geclipse.jsdl.model.posix.util.PosixSwitch

public class PosixSwitch
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:
PosixPackage

Constructor Summary
PosixSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseArgumentType(ArgumentType object)
          Returns the result of interpreting the object as an instance of 'Argument Type'
 java.lang.Object caseDirectoryNameType(DirectoryNameType object)
          Returns the result of interpreting the object as an instance of 'Directory Name Type'
 java.lang.Object caseDocumentRoot(DocumentRoot object)
          Returns the result of interpreting the object as an instance of 'Document Root'
 java.lang.Object caseEnvironmentType(EnvironmentType object)
          Returns the result of interpreting the object as an instance of 'Environment Type'
 java.lang.Object caseFileNameType(FileNameType object)
          Returns the result of interpreting the object as an instance of 'File Name Type'
 java.lang.Object caseGroupNameType(GroupNameType object)
          Returns the result of interpreting the object as an instance of 'Group Name Type'
 java.lang.Object caseLimitsType(LimitsType object)
          Returns the result of interpreting the object as an instance of 'Limits Type'
 java.lang.Object casePOSIXApplicationType(POSIXApplicationType object)
          Returns the result of interpreting the object as an instance of 'POSIX Application Type'
 java.lang.Object caseUserNameType(UserNameType object)
          Returns the result of interpreting the object as an instance of 'User Name Type'
 java.lang.Object defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'
 java.lang.Object doSwitch(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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosixSwitch

public PosixSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object 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.

caseArgumentType

public java.lang.Object caseArgumentType(ArgumentType object)
Returns the result of interpreting the object as an instance of 'Argument 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 'Argument Type'.
See Also:
doSwitch(EObject)

caseDirectoryNameType

public java.lang.Object caseDirectoryNameType(DirectoryNameType object)
Returns the result of interpreting the object as an instance of 'Directory Name 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 'Directory Name Type'.
See Also:
doSwitch(EObject)

caseDocumentRoot

public java.lang.Object 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)

caseEnvironmentType

public java.lang.Object caseEnvironmentType(EnvironmentType object)
Returns the result of interpreting the object as an instance of 'Environment 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 'Environment Type'.
See Also:
doSwitch(EObject)

caseFileNameType

public java.lang.Object caseFileNameType(FileNameType object)
Returns the result of interpreting the object as an instance of 'File Name 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 Name Type'.
See Also:
doSwitch(EObject)

caseGroupNameType

public java.lang.Object caseGroupNameType(GroupNameType object)
Returns the result of interpreting the object as an instance of 'Group Name 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 'Group Name Type'.
See Also:
doSwitch(EObject)

caseLimitsType

public java.lang.Object caseLimitsType(LimitsType object)
Returns the result of interpreting the object as an instance of 'Limits 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 'Limits Type'.
See Also:
doSwitch(EObject)

casePOSIXApplicationType

public java.lang.Object casePOSIXApplicationType(POSIXApplicationType object)
Returns the result of interpreting the object as an instance of 'POSIX Application 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 'POSIX Application Type'.
See Also:
doSwitch(EObject)

caseUserNameType

public java.lang.Object caseUserNameType(UserNameType object)
Returns the result of interpreting the object as an instance of 'User Name 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 'User Name Type'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object 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)

g-Eclipse
Release 1.0.0