Public Member Functions | |
short | getType () |
boolean | isReadable () |
boolean | isWritable () |
Static Public Attributes | |
static final short | BOTH = 0 |
static final short | READ = 1 |
static final short | WRITE = 2 |
static final AccessRights | both = new AccessRights(AccessRights.BOTH) |
static final AccessRights | read = new AccessRights(AccessRights.READ) |
static final AccessRights | write = new AccessRights(AccessRights.WRITE) |
A class used to indicate access rights
short org.exolab.castor.xml.AccessRights.getType | ( | ) |
Returns the type of this Access
boolean org.exolab.castor.xml.AccessRights.isReadable | ( | ) |
Returns true if this AccessRights allows reading
References org.exolab.castor.xml.AccessRights.BOTH, and org.exolab.castor.xml.AccessRights.READ.
boolean org.exolab.castor.xml.AccessRights.isWritable | ( | ) |
Returns true if this AccessRights allows writing
References org.exolab.castor.xml.AccessRights.BOTH, and org.exolab.castor.xml.AccessRights.WRITE.
final short org.exolab.castor.xml.AccessRights.BOTH = 0 [static] |
The type that indicates both read and write access
Referenced by org.exolab.castor.xml.AccessRights.isReadable(), and org.exolab.castor.xml.AccessRights.isWritable().
final AccessRights org.exolab.castor.xml.AccessRights.both = new AccessRights(AccessRights.BOTH) [static] |
A read and write AccessRights
final AccessRights org.exolab.castor.xml.AccessRights.read = new AccessRights(AccessRights.READ) [static] |
A read-only AccessRights
final short org.exolab.castor.xml.AccessRights.READ = 1 [static] |
The type that indicates only read access
Referenced by org.exolab.castor.xml.AccessRights.isReadable().
final short org.exolab.castor.xml.AccessRights.WRITE = 2 [static] |
The type that indicates only write access
Referenced by org.exolab.castor.xml.AccessRights.isWritable().
final AccessRights org.exolab.castor.xml.AccessRights.write = new AccessRights(AccessRights.WRITE) [static] |
A write-only AccessRights