edu.harvard.hul.ois.mets
Class Type

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

public final class Type
extends Enum

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


Field Summary
static Type INDIVIDUAL
          Individual agent.
static Type ORGANIZATION
          Organization agent.
static Type OTHER
          Other agent type.
 
Constructor Summary
Type(java.lang.String value)
          Instantiate a Type object.
 
Method Summary
static Type parse(java.lang.String name)
          Return agent 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

INDIVIDUAL

public static final Type INDIVIDUAL
Individual agent.


ORGANIZATION

public static final Type ORGANIZATION
Organization agent.


OTHER

public static final Type OTHER
Other agent type.

Constructor Detail

Type

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

Parameters:
value - Type value
Method Detail

parse

public static Type parse(java.lang.String name)
                  throws MetsException
Return agent type by name.

Parameters:
name - Name
Throws:
MetsException