org.exolab.castor.xml
Class AccessRights
java.lang.Object
org.exolab.castor.xml.AccessRights
public class AccessRights
extends java.lang.Object
A class used to indicate access rights
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:08 $static short | BOTH - The type that indicates both read and write access
|
static short | READ - The type that indicates only read access
|
static short | WRITE - The type that indicates only write access
|
static AccessRights | both - A read and write AccessRights
|
static AccessRights | read - A read-only AccessRights
|
static AccessRights | write - A write-only AccessRights
|
short | getType() - Returns the type of this Access
|
boolean | isReadable() - Returns true if this AccessRights allows reading
|
boolean | isWritable() - Returns true if this AccessRights allows writing
|
BOTH
public static final short BOTH
The type that indicates both read and write access
READ
public static final short READ
The type that indicates only read access
WRITE
public static final short WRITE
The type that indicates only write access
both
public static final AccessRights both
A read and write AccessRights
read
public static final AccessRights read
A read-only AccessRights
write
public static final AccessRights write
A write-only AccessRights
getType
public short getType()
Returns the type of this Access
isReadable
public boolean isReadable()
Returns true if this AccessRights allows reading
- true if this AccessRights allows reading,
otherwise false.
isWritable
public boolean isWritable()
Returns true if this AccessRights allows writing
- true if this AccessRights allows writing,
otherwise false.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com