Package org.exolab.castor.xml
Class AccessRights
java.lang.Object
org.exolab.castor.xml.AccessRights
A class used to indicate access rights
- Version:
- $Revision$ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AccessRights
A read and write AccessRightsstatic final short
The type that indicates both read and write accessstatic final AccessRights
A read-only AccessRightsstatic final short
The type that indicates only read accessstatic final AccessRights
A write-only AccessRightsstatic final short
The type that indicates only write access -
Method Summary
Modifier and TypeMethodDescriptionshort
getType()
Returns the type of this Accessboolean
Returns true if this AccessRights allows readingboolean
Returns true if this AccessRights allows writing
-
Field Details
-
BOTH
public static final short BOTHThe type that indicates both read and write access- See Also:
-
READ
public static final short READThe type that indicates only read access- See Also:
-
WRITE
public static final short WRITEThe type that indicates only write access- See Also:
-
both
A read and write AccessRights -
read
A read-only AccessRights -
write
A write-only AccessRights
-
-
Method Details
-
getType
public short getType()Returns the type of this Access -
isReadable
public boolean isReadable()Returns true if this AccessRights allows reading- Returns:
- true if this AccessRights allows reading, otherwise false.
-
isWritable
public boolean isWritable()Returns true if this AccessRights allows writing- Returns:
- true if this AccessRights allows writing, otherwise false.
-