gr.uoa.di.madgik.grs.buffer
Enum IBuffer.Status

java.lang.Object
  extended by java.lang.Enum<IBuffer.Status>
      extended by gr.uoa.di.madgik.grs.buffer.IBuffer.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IBuffer.Status>
Enclosing interface:
IBuffer

public static enum IBuffer.Status
extends java.lang.Enum<IBuffer.Status>

The current status of the IBuffer. Depending on the status different operations can be performed on the IBuffer

Author:
gpapanikos

Enum Constant Summary
Close
          The buffer is closed for authoring but open for reading
Dispose
          The buffer is in dispose and cannot be used for any operation
Init
          The buffer has not yet been initialized and configuration parameters can be modified.
Open
          The buffer is open for editing and consumption
 
Method Summary
static IBuffer.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IBuffer.Status[] 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

Init

public static final IBuffer.Status Init
The buffer has not yet been initialized and configuration parameters can be modified. This is the only state in which configuration values can be modified


Open

public static final IBuffer.Status Open
The buffer is open for editing and consumption


Close

public static final IBuffer.Status Close
The buffer is closed for authoring but open for reading


Dispose

public static final IBuffer.Status Dispose
The buffer is in dispose and cannot be used for any operation

Method Detail

values

public static IBuffer.Status[] 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 (IBuffer.Status c : IBuffer.Status.values())
    System.out.println(c);

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

valueOf

public static IBuffer.Status 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