edu.harvard.hul.ois.mets
Class Role

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

public final class Role
extends Enum

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


Field Summary
static Role ARCHIVIST
          Archivist role.
static Role CREATOR
          Creator role.
static Role CUSTODIAN
          Custodian role.
static Role DISSEMINATOR
          Disseminator role.
static Role EDITOR
          Editor role.
static Role IPOWNER
          Intellectual property owner role.
static Role OTHER
          Other agent role.
static Role PRESERVATION
          Preservation role.
 
Constructor Summary
Role(java.lang.String value)
          Instantiate a Role object.
 
Method Summary
static Role parse(java.lang.String name)
          Return the agent role 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

CREATOR

public static final Role CREATOR
Creator role.


EDITOR

public static final Role EDITOR
Editor role.


ARCHIVIST

public static final Role ARCHIVIST
Archivist role.


PRESERVATION

public static final Role PRESERVATION
Preservation role.


DISSEMINATOR

public static final Role DISSEMINATOR
Disseminator role.


CUSTODIAN

public static final Role CUSTODIAN
Custodian role.


IPOWNER

public static final Role IPOWNER
Intellectual property owner role.


OTHER

public static final Role OTHER
Other agent role.

Constructor Detail

Role

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

Parameters:
value - Role value
Method Detail

parse

public static Role parse(java.lang.String name)
                  throws MetsException
Return the agent role by name.

Parameters:
name - Role name
Throws:
MetsException - Unknown role