edu.harvard.hul.ois.mets
Class Loctype

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

public final class Loctype
extends Enum

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


Field Summary
static Loctype DOI
          DOI.
static Loctype HANDLE
          Handle.
static Loctype OTHER
          Other location type.
static Loctype PURL
          PURL.
static Loctype URL
          URL.
static Loctype URN
          URN.
 
Constructor Summary
Loctype(java.lang.String value)
          Instantiate a Loctype object.
 
Method Summary
static Loctype parse(java.lang.String name)
          Return Loctype 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

URN

public static final Loctype URN
URN.


URL

public static final Loctype URL
URL.


PURL

public static final Loctype PURL
PURL.


HANDLE

public static final Loctype HANDLE
Handle.


DOI

public static final Loctype DOI
DOI.


OTHER

public static final Loctype OTHER
Other location type.

Constructor Detail

Loctype

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

Parameters:
value - Loctype value
Method Detail

parse

public static Loctype parse(java.lang.String name)
                     throws MetsException
Return Loctype by name.

Parameters:
name - Loctype name
Throws:
MetsException