com.partnersoft.formats.dbf
Enum DbfVersion

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

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

DBF format version.

Copyright 2006 Partner Software, Inc.

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

Enum Constant Summary
DBT
           
FOXBASE
           
NO_DBT
           
VISUAL_FOXPRO
           
 
Method Summary
 byte getCode()
           
 java.lang.String getName()
           
 java.lang.String toString()
           
static DbfVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DbfVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
static DbfVersion versionForCode(byte code)
           
static DbfVersion versionForName(java.lang.String name)
           
 
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

FOXBASE

public static final DbfVersion FOXBASE

NO_DBT

public static final DbfVersion NO_DBT

VISUAL_FOXPRO

public static final DbfVersion VISUAL_FOXPRO

DBT

public static final DbfVersion DBT
Method Detail

values

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

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

valueOf

public static DbfVersion 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 byte getCode()

toString

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

versionForName

public static DbfVersion versionForName(java.lang.String name)

versionForCode

public static DbfVersion versionForCode(byte code)