edu.harvard.hul.ois.mets
Class MdWrap

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.MdWrap
All Implemented Interfaces:
MetsIdentifiable, MetsSerializable, MetsValidatable

public class MdWrap
extends MetsIDElement

This class encapsulates the <mdWrap> 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
MdWrap()
          Instantiate a new <mdRef> object.
 
Method Summary
 java.lang.String getLABEL()
          Return metadata label.
 Mdtype getMDTYPE()
          Return pre-defined metadata type.
 java.lang.String getMIMETYPE()
          Return metadata MIME type.
 java.lang.String getOTHERMDTYPE()
          Return other metadata type.
 void read(MetsReader r)
          De-serialize the content of the file into this element using the given reader.
static MdWrap reader(MetsReader r)
          Instantiate a MdWrap object de-serialized from the input stream.
 void setLABEL(java.lang.String LABEL)
          Set metadata label.
 void setMDTYPE(Mdtype MDTYPE)
          Set metadata type.
 void setMIMETYPE(java.lang.String MIMETYPE)
          Set file MIME type.
 void setOTHERMDTYPE(java.lang.String OTHERMDTYPE)
          Set other metadata type.
 void validateThis(MetsValidator v)
          Validate this element using the given validator.
 void write(MetsWriter w)
          Serialize the content of this element 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, 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

MdWrap

public MdWrap()
Instantiate a new <mdRef> object.

Method Detail

getLABEL

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

Returns:
Label

getMDTYPE

public Mdtype getMDTYPE()
Return pre-defined metadata type.

Returns:
Type

getMIMETYPE

public java.lang.String getMIMETYPE()
Return metadata MIME type.

Returns:
MIME type

getOTHERMDTYPE

public java.lang.String getOTHERMDTYPE()
Return other metadata type.

Returns:
Type

setLABEL

public void setLABEL(java.lang.String LABEL)
Set metadata label.

Parameters:
LABEL - Label

setMDTYPE

public void setMDTYPE(Mdtype MDTYPE)
Set metadata type.

Parameters:
MDTYPE - Metadata type

setMIMETYPE

public void setMIMETYPE(java.lang.String MIMETYPE)
Set file MIME type.

Parameters:
MIMETYPE - MIME type

setOTHERMDTYPE

public void setOTHERMDTYPE(java.lang.String OTHERMDTYPE)
Set other metadata type.

Parameters:
OTHERMDTYPE - Other metadata type

reader

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

Parameters:
r - Reader
Returns:
MdWrap 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 the content of this element using the given writer.

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

validateThis

public void validateThis(MetsValidator v)
                  throws MetsException
Validate this element using the given validator.

Specified by:
validateThis in interface MetsValidatable
Overrides:
validateThis in class MetsVElement
Parameters:
v - Validator
Throws:
MetsException - Validation exception