com.unister.semweb.drums.file
Enum AbstractHeaderFile.AccessMode

java.lang.Object
  extended by java.lang.Enum<AbstractHeaderFile.AccessMode>
      extended by com.unister.semweb.drums.file.AbstractHeaderFile.AccessMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AbstractHeaderFile.AccessMode>
Enclosing class:
AbstractHeaderFile

public static enum AbstractHeaderFile.AccessMode
extends java.lang.Enum<AbstractHeaderFile.AccessMode>

The possible AccessModes. READ_ONLY and READ_WRITE


Enum Constant Summary
READ_ONLY
          only read on files is allowed
READ_WRITE
          read and write is allowed
 
Method Summary
static AbstractHeaderFile.AccessMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AbstractHeaderFile.AccessMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READ_ONLY

public static final AbstractHeaderFile.AccessMode READ_ONLY
only read on files is allowed


READ_WRITE

public static final AbstractHeaderFile.AccessMode READ_WRITE
read and write is allowed

Method Detail

values

public static AbstractHeaderFile.AccessMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AbstractHeaderFile.AccessMode c : AbstractHeaderFile.AccessMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AbstractHeaderFile.AccessMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null