Class AccessRights

java.lang.Object
org.exolab.castor.xml.AccessRights

public class AccessRights extends Object
A class used to indicate access rights
Version:
$Revision: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
Author:
Keith Visco
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final AccessRights
    A read and write AccessRights
    static final short
    The type that indicates both read and write access
    static final AccessRights
    A read-only AccessRights
    static final short
    The type that indicates only read access
    static final AccessRights
    A write-only AccessRights
    static final short
    The type that indicates only write access
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Returns the type of this Access
    boolean
    Returns true if this AccessRights allows reading
    boolean
    Returns true if this AccessRights allows writing

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BOTH

      public static final short BOTH
      The type that indicates both read and write access
      See Also:
    • READ

      public static final short READ
      The type that indicates only read access
      See Also:
    • WRITE

      public static final short WRITE
      The type that indicates only write access
      See Also:
    • 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
  • 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.