- All Implemented Interfaces:
- java.io.Serializable, Permission
public class CumulativePermission
- extends AbstractPermission
Permission that is constructed at runtime from other permissions.
this, in order to facilitate method chaining.
- See Also:
- Serialized Form
|Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public CumulativePermission clear(Permission permission)
public CumulativePermission clear()
public CumulativePermission set(Permission permission)
public java.lang.String getPattern()
- Description copied from interface:
- Returns a 32-character long bit pattern
String representing this permission.
Implementations are free to format the pattern as they see fit, although under no circumstances may
Permission.RESERVED_ON be used within the pattern. An exemption is in the case of
Permission.RESERVED_OFF which is used to denote a bit that is off (clear).
Implementations may also elect to use
Permission.RESERVED_ON internally for computation purposes,
although this method may not return any
The returned String must be 32 characters in length.
This method is only used for user interface and logging purposes. It is not used in any permission
calculations. Therefore, duplication of characters within the output is permitted.
- Specified by:
getPattern in interface
getPattern in class
- a 32-character bit pattern