Public Member Functions | Static Public Attributes

org.exolab.castor.xml.AccessRights Class Reference

List of all members.

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)

Detailed Description

A class used to indicate access rights

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:08

Member Function Documentation

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

Returns:
true if this AccessRights allows reading, otherwise false.

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

Returns:
true if this AccessRights allows writing, otherwise false.

References org.exolab.castor.xml.AccessRights.BOTH, and org.exolab.castor.xml.AccessRights.WRITE.


Member Data Documentation

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().

A read and write AccessRights

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().

A write-only AccessRights


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties