org.exolab.castor.xml

Class AccessRights

public class AccessRights extends Object

A class used to indicate access rights

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:08 $

Author: Keith Visco

Field Summary
static AccessRightsboth
A read and write AccessRights
static shortBOTH
The type that indicates both read and write access
static AccessRightsread
A read-only AccessRights
static shortREAD
The type that indicates only read access
static AccessRightswrite
A write-only AccessRights
static shortWRITE
The type that indicates only write access
Method Summary
shortgetType()
Returns the type of this Access
booleanisReadable()
Returns true if this AccessRights allows reading
booleanisWritable()
Returns true if this AccessRights allows writing

Field Detail

both

public static final AccessRights both
A read and write AccessRights

BOTH

public static final short BOTH
The type that indicates both read and write access

read

public static final AccessRights read
A read-only AccessRights

READ

public static final short READ
The type that indicates only read access

write

public static final AccessRights write
A write-only AccessRights

WRITE

public static final short WRITE
The type that indicates only write access

Method Detail

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.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com