gov.loc.repository.bagit
Enum BagFactory.Version

java.lang.Object
  extended by java.lang.Enum<BagFactory.Version>
      extended by gov.loc.repository.bagit.BagFactory.Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BagFactory.Version>
Enclosing class:
BagFactory

public static enum BagFactory.Version
extends java.lang.Enum<BagFactory.Version>

The version of the bag to load. The BagIt Library does not support any bag versions other than those listed here.


Enum Constant Summary
V0_93
           
V0_94
           
V0_95
           
V0_96
           
 
Field Summary
 java.lang.String versionString
           
 
Method Summary
static BagFactory.Version valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BagFactory.Version valueOfString(java.lang.String versionString)
           
static BagFactory.Version[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

V0_93

public static final BagFactory.Version V0_93

V0_94

public static final BagFactory.Version V0_94

V0_95

public static final BagFactory.Version V0_95

V0_96

public static final BagFactory.Version V0_96
Field Detail

versionString

public java.lang.String versionString
Method Detail

values

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

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

valueOf

public static BagFactory.Version 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

valueOfString

public static BagFactory.Version valueOfString(java.lang.String versionString)