Class SecuritySwitch<T>
- java.lang.Object
- 
- org.eclipse.emf.cdo.security.util.SecuritySwitch<T>
 
- 
 public class SecuritySwitch<T> extends java.lang.ObjectThe Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)to invoke thecaseXXXmethod 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:
- SecurityPackage
- Generated
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static SecurityPackagemodelPackageThe cached model package
 - 
Constructor SummaryConstructors Constructor Description SecuritySwitch()Creates an instance of the switch.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TcaseAndFilter(AndFilter object)Returns the result of interpreting the object as an instance of 'And Filter'.TcaseAssignee(Assignee object)Returns the result of interpreting the object as an instance of 'Assignee'.TcaseClassFilter(ClassFilter object)Returns the result of interpreting the object as an instance of 'Class Filter'.TcaseClassPermission(ClassPermission object)Returns the result of interpreting the object as an instance of 'Class Permission'.TcaseCombinedFilter(CombinedFilter object)Returns the result of interpreting the object as an instance of 'Combined Filter'.TcaseDirectory(Directory object)Returns the result of interpreting the object as an instance of 'Directory'.TcaseExpressionFilter(ExpressionFilter object)Returns the result of interpreting the object as an instance of 'Expression Filter'.TcaseFilterPermission(FilterPermission object)Returns the result of interpreting the object as an instance of 'Filter Permission'.TcaseGroup(Group object)Returns the result of interpreting the object as an instance of 'Group'.TcaseLinkedFilter(LinkedFilter object)Returns the result of interpreting the object as an instance of 'Linked Filter'.TcaseModelElement(ModelElement object)Returns the result of interpreting the object as an instance of 'Model Element'.TcaseNotFilter(NotFilter object)Returns the result of interpreting the object as an instance of 'Not Filter'.TcaseObjectFilter(ObjectFilter object)Returns the result of interpreting the object as an instance of 'Object Filter'.TcaseObjectPermission(ObjectPermission object)Returns the result of interpreting the object as an instance of 'Object Permission'.TcaseOrFilter(OrFilter object)Returns the result of interpreting the object as an instance of 'Or Filter'.TcasePackageFilter(PackageFilter object)Returns the result of interpreting the object as an instance of 'Package Filter'.TcasePackagePermission(PackagePermission object)Returns the result of interpreting the object as an instance of 'Package Permission'.TcasePermission(Permission object)Returns the result of interpreting the object as an instance of 'Permission'.TcasePermissionFilter(PermissionFilter object)Returns the result of interpreting the object as an instance of 'Permission Filter'.TcaseRealm(Realm object)Returns the result of interpreting the object as an instance of 'Realm'.TcaseResourceFilter(ResourceFilter object)Returns the result of interpreting the object as an instance of 'Resource Filter'.TcaseResourcePermission(ResourcePermission object)Returns the result of interpreting the object as an instance of 'Resource Permission'.TcaseRole(Role object)Returns the result of interpreting the object as an instance of 'Role'.TcaseSecurityElement(SecurityElement object)Returns the result of interpreting the object as an instance of 'Element'.TcaseSecurityItem(SecurityItem object)Returns the result of interpreting the object as an instance of 'Item'.TcaseUser(User object)Returns the result of interpreting the object as an instance of 'User'.TcaseUserPassword(UserPassword object)Returns the result of interpreting the object as an instance of 'User Password'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected TdoSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.TdoSwitch(org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.
 
- 
- 
- 
Field Detail- 
modelPackageprotected static SecurityPackage modelPackage The cached model package- Generated
 
 
- 
 - 
Method Detail- 
doSwitchpublic T doSwitch(org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor 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 caseXXXcall.
- Generated
 
 - 
doSwitchprotected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor 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 caseXXXcall.
- Generated
 
 - 
doSwitchprotected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor 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 caseXXXcall.
- Generated
 
 - 
caseSecurityElementpublic T caseSecurityElement(SecurityElement object) Returns the result of interpreting the object as an instance of 'Element'. 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 'Element'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseRealmpublic T caseRealm(Realm object) Returns the result of interpreting the object as an instance of 'Realm'. 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 'Realm'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseDirectorypublic T caseDirectory(Directory object) Returns the result of interpreting the object as an instance of 'Directory'. 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'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseSecurityItempublic T caseSecurityItem(SecurityItem object) Returns the result of interpreting the object as an instance of '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 'Item'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseRolepublic T caseRole(Role object) Returns the result of interpreting the object as an instance of 'Role'. 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 'Role'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseAssigneepublic T caseAssignee(Assignee object) Returns the result of interpreting the object as an instance of 'Assignee'. 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 'Assignee'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseGrouppublic T caseGroup(Group object) Returns the result of interpreting the object as an instance of '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 'Group'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseUserpublic T caseUser(User object) Returns the result of interpreting the object as an instance of 'User'. 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'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseUserPasswordpublic T caseUserPassword(UserPassword object) Returns the result of interpreting the object as an instance of 'User Password'. 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 Password'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
casePermissionpublic T casePermission(Permission object) Returns the result of interpreting the object as an instance of 'Permission'. 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 'Permission'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseClassPermissionpublic T caseClassPermission(ClassPermission object) Returns the result of interpreting the object as an instance of 'Class Permission'. 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 'Class Permission'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
casePackagePermissionpublic T casePackagePermission(PackagePermission object) Returns the result of interpreting the object as an instance of 'Package Permission'. 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 'Package Permission'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseResourcePermissionpublic T caseResourcePermission(ResourcePermission object) Returns the result of interpreting the object as an instance of 'Resource Permission'. 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 'Resource Permission'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseObjectPermissionpublic T caseObjectPermission(ObjectPermission object) Returns the result of interpreting the object as an instance of 'Object Permission'. 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 'Object Permission'.
- Since:
- 4.2
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseFilterPermissionpublic T caseFilterPermission(FilterPermission object) Returns the result of interpreting the object as an instance of 'Filter Permission'. 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 'Filter Permission'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
casePermissionFilterpublic T casePermissionFilter(PermissionFilter object) Returns the result of interpreting the object as an instance of 'Permission Filter'. 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 'Permission Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseLinkedFilterpublic T caseLinkedFilter(LinkedFilter object) Returns the result of interpreting the object as an instance of 'Linked Filter'. 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 'Linked Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
casePackageFilterpublic T casePackageFilter(PackageFilter object) Returns the result of interpreting the object as an instance of 'Package Filter'. 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 'Package Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseClassFilterpublic T caseClassFilter(ClassFilter object) Returns the result of interpreting the object as an instance of 'Class Filter'. 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 'Class Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseResourceFilterpublic T caseResourceFilter(ResourceFilter object) Returns the result of interpreting the object as an instance of 'Resource Filter'. 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 'Resource Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseObjectFilterpublic T caseObjectFilter(ObjectFilter object) Returns the result of interpreting the object as an instance of 'Object Filter'. 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 'Object Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseExpressionFilterpublic T caseExpressionFilter(ExpressionFilter object) Returns the result of interpreting the object as an instance of 'Expression Filter'. 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 'Expression Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseCombinedFilterpublic T caseCombinedFilter(CombinedFilter object) Returns the result of interpreting the object as an instance of 'Combined Filter'. 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 'Combined Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseNotFilterpublic T caseNotFilter(NotFilter object) Returns the result of interpreting the object as an instance of 'Not Filter'. 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 'Not Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseAndFilterpublic T caseAndFilter(AndFilter object) Returns the result of interpreting the object as an instance of 'And Filter'. 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 'And Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseOrFilterpublic T caseOrFilter(OrFilter object) Returns the result of interpreting the object as an instance of 'Or Filter'. 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 'Or Filter'.
- Since:
- 4.3
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseModelElementpublic T caseModelElement(ModelElement object) Returns the result of interpreting the object as an instance of 'Model Element'. 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 'Model Element'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
defaultCasepublic 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.- 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)
- Generated
 
 
- 
 
-