com.partnersoft.formats.dbf
Enum DbfFieldType

java.lang.Object
  extended by java.lang.Enum<DbfFieldType>
      extended by com.partnersoft.formats.dbf.DbfFieldType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DbfFieldType>

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

Field format type.

Copyright 2006 Partner Software, Inc.

Version:
$Id: DbfFieldType.java 1701 2009-01-13 22:11:48Z paul $
Author:
Paul Reavis

Enum Constant Summary
CHARACTER
           
DATE
           
FLOAT
           
MEMO
           
NUMERIC
           
 
Method Summary
 char getCode()
           
 java.lang.String getName()
           
 java.lang.String toString()
           
static DbfFieldType typeForCode(char code)
           
static DbfFieldType typeForName(java.lang.String name)
           
static DbfFieldType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DbfFieldType[] 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

CHARACTER

public static final DbfFieldType CHARACTER

DATE

public static final DbfFieldType DATE

FLOAT

public static final DbfFieldType FLOAT

NUMERIC

public static final DbfFieldType NUMERIC

MEMO

public static final DbfFieldType MEMO
Method Detail

values

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

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

valueOf

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

getName

public java.lang.String getName()

getCode

public char getCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<DbfFieldType>

typeForName

public static DbfFieldType typeForName(java.lang.String name)

typeForCode

public static DbfFieldType typeForCode(char code)