|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.cdo.security.util.SecuritySwitch<T>
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.
SecurityPackage
Field Summary | |
---|---|
protected static SecurityPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
SecuritySwitch()
Creates an instance of the switch |
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static SecurityPackage modelPackage
Constructor Detail |
---|
public SecuritySwitch()
Method Detail |
---|
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 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |