org.javaseis.properties
Enum DataType

java.lang.Object
  extended by java.lang.Enum<DataType>
      extended by org.javaseis.properties.DataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DataType>

public enum DataType
extends java.lang.Enum<DataType>

The DataType class provides JavaSeis data type enumerations.


Enum Constant Summary
CMP
           
CUSTOM
           
OFFSET_BIN
           
RECEIVER
           
SOURCE
           
STACK
           
UNKNOWN
           
 
Field Summary
protected  java.lang.String _description
           
protected  java.lang.String _name
           
 
Method Summary
static DataType get(java.lang.String name)
          Gets the data type based on the name.
 java.lang.String getDescription()
          Gets the description the data type.
 java.lang.String getName()
          Gets the name the data type.
 java.lang.String toString()
          Gets the string representation of the data type.
static DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CMP

public static final DataType CMP

CUSTOM

public static final DataType CUSTOM

OFFSET_BIN

public static final DataType OFFSET_BIN

RECEIVER

public static final DataType RECEIVER

SOURCE

public static final DataType SOURCE

STACK

public static final DataType STACK

UNKNOWN

public static final DataType UNKNOWN
Field Detail

_description

protected java.lang.String _description

_name

protected java.lang.String _name
Method Detail

get

public static DataType get(java.lang.String name)
Gets the data type based on the name.

Parameters:
name - The name of the data type.
Returns:
The data type.

getDescription

public java.lang.String getDescription()
Gets the description the data type.

Returns:
The description of the data type.

getName

public java.lang.String getName()
Gets the name the data type.

Returns:
The name of the data type.

toString

public java.lang.String toString()
Gets the string representation of the data type.

Overrides:
toString in class java.lang.Enum<DataType>
Returns:
The string representation.

valueOf

public static DataType 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

values

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

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