edu.harvard.hul.ois.mets
Class BehaviorSec

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.MetsElement
      extended byedu.harvard.hul.ois.mets.helper.MetsVElement
          extended byedu.harvard.hul.ois.mets.helper.MetsIDElement
              extended byedu.harvard.hul.ois.mets.BehaviorSec
All Implemented Interfaces:
MetsIdentifiable, MetsSerializable, MetsValidatable

public class BehaviorSec
extends MetsIDElement

This class encapsulates the <behaviorSec> element. See <http://www.loc.gov/standards/mets/>.


Field Summary
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsIDElement
_ID
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsVElement
_valid
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
_attrs, _content, _localName, _namespace, _qName, _schema
 
Constructor Summary
BehaviorSec()
          Instantiate a new behaviorSec object.
 
Method Summary
 java.util.Date getCREATED()
          Return creation date/time of this behaviorSec.
 java.lang.String getLABEL()
          Return behavior label.
 void read(MetsReader r)
          De-serialize the content of the file into this element using the given reader.
static BehaviorSec reader(MetsReader r)
          Instantiate a BehaviorSec object de-serialized from the input stream.
 void setCREATED(java.util.Date date)
          Set creation date/time of this behaviorSec.
 void setLABEL(java.lang.String label)
          Set behavior label.
 void write(MetsWriter w)
          Serialize this element and its content model using the given writer
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsIDElement
getID, setID
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsVElement
isValid, validate, validateIDREFs, validateThis, validateThisIDREFs
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
getContent, getLocalName, getNamespace, getQName, getSchemas, init, setSchema, setSchema, writeSchemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BehaviorSec

public BehaviorSec()
Instantiate a new behaviorSec object.

Method Detail

getCREATED

public java.util.Date getCREATED()
Return creation date/time of this behaviorSec.

Returns:
Date/time

getLABEL

public java.lang.String getLABEL()
Return behavior label.

Returns:
Label

setCREATED

public void setCREATED(java.util.Date date)
Set creation date/time of this behaviorSec.

Parameters:
date - Date/time

setLABEL

public void setLABEL(java.lang.String label)
Set behavior label.

Parameters:
label - Label

reader

public static BehaviorSec reader(MetsReader r)
                          throws MetsException
Instantiate a BehaviorSec object de-serialized from the input stream.

Parameters:
r - Reader
Returns:
BehaviourSec object
Throws:
MetsException - De-serializing exception

read

public void read(MetsReader r)
          throws MetsException
De-serialize the content of the file into this element using the given reader.

Specified by:
read in interface MetsSerializable
Specified by:
read in class MetsElement
Parameters:
r - Reader
Throws:
MetsException

write

public void write(MetsWriter w)
           throws MetsException
Serialize this element and its content model using the given writer

Specified by:
write in interface MetsSerializable
Specified by:
write in class MetsElement
Parameters:
w - Writer
Throws:
MetsException