edu.harvard.hul.ois.mets
Class Checksumtype

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.Enum
      extended byedu.harvard.hul.ois.mets.Checksumtype

public final class Checksumtype
extends Enum

This class encapsulates the checksum type enumeration. See <http://www.loc.gov/standards/mets/>.


Field Summary
static Checksumtype HAVAL
          HAVAL.
static Checksumtype MD5
          MD5.
static Checksumtype SHA1
          SHA-1.
static Checksumtype SHA256
          SHA-256.
static Checksumtype SHA384
          SHA-384.
static Checksumtype SHA512
          SHA-512.
static Checksumtype TIGER
          TIGER.
static Checksumtype WHIRLPOOL
          WHIRLPOOL header.
 
Constructor Summary
Checksumtype(java.lang.String value)
          Instantiate a Checksumtype object.
 
Method Summary
static Checksumtype parse(java.lang.String name)
          Return the checksum type by name.
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.Enum
equals, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HAVAL

public static final Checksumtype HAVAL
HAVAL.


MD5

public static final Checksumtype MD5
MD5.


SHA1

public static final Checksumtype SHA1
SHA-1.


SHA256

public static final Checksumtype SHA256
SHA-256.


SHA384

public static final Checksumtype SHA384
SHA-384.


SHA512

public static final Checksumtype SHA512
SHA-512.


TIGER

public static final Checksumtype TIGER
TIGER.


WHIRLPOOL

public static final Checksumtype WHIRLPOOL
WHIRLPOOL header.

Constructor Detail

Checksumtype

public Checksumtype(java.lang.String value)
Instantiate a Checksumtype object.

Parameters:
value - Checksum type value
Method Detail

parse

public static Checksumtype parse(java.lang.String name)
                          throws MetsException
Return the checksum type by name.

Parameters:
name - Checksum type name
Throws:
MetsException