edu.harvard.hul.ois.mets
Class Shape

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

public final class Shape
extends Enum

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


Field Summary
static Shape CIRCLE
          Circle shape.
static Shape POLY
          Polygon shape.
static Shape RECT
          Rectangle shape.
 
Constructor Summary
Shape(java.lang.String value)
          Instantiate a Shape object.
 
Method Summary
static Shape parse(java.lang.String name)
          Return the area shape 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

RECT

public static final Shape RECT
Rectangle shape.


CIRCLE

public static final Shape CIRCLE
Circle shape.


POLY

public static final Shape POLY
Polygon shape.

Constructor Detail

Shape

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

Parameters:
value - Shape value
Method Detail

parse

public static Shape parse(java.lang.String name)
                   throws MetsException
Return the area shape by name.

Parameters:
name - Shape name
Throws:
MetsException - Unknown shape