public class SecuritySwitch<T> extends Object
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.
SecurityPackage
Modifier and Type | Field and Description |
---|---|
protected static SecurityPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
SecuritySwitch()
Creates an instance of the switch
|
Modifier and Type | Method and Description |
---|---|
T |
caseAssignee(Assignee object)
Returns the result of interpreting the object as an instance of 'Assignee'
|
T |
caseClassPermission(ClassPermission object)
Returns the result of interpreting the object as an instance of 'Class Permission'
|
T |
caseDirectory(Directory object)
Returns the result of interpreting the object as an instance of 'Directory'
|
T |
caseGroup(Group object)
Returns the result of interpreting the object as an instance of 'Group'
|
T |
caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'
|
T |
caseObjectPermission(ObjectPermission object)
Returns the result of interpreting the object as an instance of 'Object Permission'
|
T |
casePackagePermission(PackagePermission object)
Returns the result of interpreting the object as an instance of 'Package Permission'
|
T |
casePermission(Permission object)
Returns the result of interpreting the object as an instance of 'Permission'
|
T |
caseRealm(Realm object)
Returns the result of interpreting the object as an instance of 'Realm'
|
T |
caseResourcePermission(ResourcePermission object)
Returns the result of interpreting the object as an instance of 'Resource Permission'
|
T |
caseRole(Role object)
Returns the result of interpreting the object as an instance of 'Role'
|
T |
caseSecurityElement(SecurityElement object)
Returns the result of interpreting the object as an instance of 'Element'
|
T |
caseSecurityItem(SecurityItem object)
Returns the result of interpreting the object as an instance of 'Item'
|
T |
caseUser(User object)
Returns the result of interpreting the object as an instance of 'User'
|
T |
caseUserPassword(UserPassword object)
Returns the result of interpreting the object as an instance of 'User Password'
|
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 |
protected static SecurityPackage modelPackage
public SecuritySwitch()
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 caseSecurityElement(SecurityElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseRealm(Realm object)
object
- the target of the switch.doSwitch(EObject)
public T caseDirectory(Directory object)
object
- the target of the switch.doSwitch(EObject)
public T caseSecurityItem(SecurityItem object)
object
- the target of the switch.doSwitch(EObject)
public T caseRole(Role object)
object
- the target of the switch.doSwitch(EObject)
public T caseAssignee(Assignee object)
object
- the target of the switch.doSwitch(EObject)
public T caseGroup(Group object)
object
- the target of the switch.doSwitch(EObject)
public T caseUser(User object)
object
- the target of the switch.doSwitch(EObject)
public T caseUserPassword(UserPassword object)
object
- the target of the switch.doSwitch(EObject)
public T casePermission(Permission object)
object
- the target of the switch.doSwitch(EObject)
public T caseClassPermission(ClassPermission object)
object
- the target of the switch.doSwitch(EObject)
public T casePackagePermission(PackagePermission object)
object
- the target of the switch.doSwitch(EObject)
public T caseResourcePermission(ResourcePermission object)
object
- the target of the switch.doSwitch(EObject)
public T caseObjectPermission(ObjectPermission object)
object
- the target of the switch.doSwitch(EObject)
public T caseModelElement(ModelElement 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)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.