edu.indiana.dlib.metsnav.mets.v1_4
Class MdWrap

java.lang.Object
  extended by edu.indiana.dlib.metsnav.mets.v1_4.MdWrap
All Implemented Interfaces:
Serializable

public class MdWrap
extends Object
implements Serializable

mdWrap: metadata wrapper. The mdWrap element is a generic element used throughout the METS schema to allow the encoder to place arbitrary metadata conforming to other standards/schema within a METS document. The included metadata can either be encoded in XML, in which case it may be placed directly within the mdWrap element, or it can be Base64 encoded, and placed within a subsidiary binData element.

See Also:
Serialized Form

Constructor Summary
MdWrap()
           
 
Method Summary
 byte[] getBinData()
          Returns the value of field 'binData'.
 String getID()
          Returns the value of field 'ID'.
 String getLABEL()
          Returns the value of field 'LABEL'.
 MdRefMDTYPEType getMDTYPE()
          Returns the value of field 'MDTYPE'.
 String getMIMETYPE()
          Returns the value of field 'MIMETYPE'.
 String getOTHERMDTYPE()
          Returns the value of field 'OTHERMDTYPE'.
 XmlData getXmlData()
          Returns the value of field 'xmlData'.
 boolean isValid()
          Method isValid
 void marshal(ContentHandler handler)
          Method marshal
 void marshal(Writer out)
          Method marshal
 void setBinData(byte[] binData)
          Sets the value of field 'binData'.
 void setID(String ID)
          Sets the value of field 'ID'.
 void setLABEL(String LABEL)
          Sets the value of field 'LABEL'.
 void setMDTYPE(MdRefMDTYPEType MDTYPE)
          Sets the value of field 'MDTYPE'.
 void setMIMETYPE(String MIMETYPE)
          Sets the value of field 'MIMETYPE'.
 void setOTHERMDTYPE(String OTHERMDTYPE)
          Sets the value of field 'OTHERMDTYPE'.
 void setXmlData(XmlData xmlData)
          Sets the value of field 'xmlData'.
static Object unmarshal(Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdWrap

public MdWrap()
Method Detail

getBinData

public byte[] getBinData()
Returns the value of field 'binData'. The field 'binData' has the following description: binData: A wrapper element to contain Base64 encoded metadata.

Returns:
byte

getID

public String getID()
Returns the value of field 'ID'. The field 'ID' has the following description: ID: an optional XML ID value.

Returns:
String

getLABEL

public String getLABEL()
Returns the value of field 'LABEL'. The field 'LABEL' has the following description: LABEL: an optional string attribute providing a label to display to the viewer of the METS document identifying the metadata.

Returns:
String

getMDTYPE

public MdRefMDTYPEType getMDTYPE()
Returns the value of field 'MDTYPE'. The field 'MDTYPE' has the following description: MDTYPE: a required attribute specifying the yype of metadata being pointed at (e.g., MARC, EAD, etc.). It must have one of the following values: MARC: any form of MARC record MODS: metadata in the Library of Congress MODS format EAD: Encoded Archival Description finding aid DC: Dublin Core NISOIMG: NISO Technical Metadata for Digital Still Images LC-AV: technical metadata specified in the Library of Congress A/V prototyping project VRA: Visual Resources Association Core TEIHDR: Text Encoding Initiative Header DDI: Data Documentation Initiative FGDC: Federal Geographic Data Committee metadata OTHER: metadata in a format not specified above.

Returns:
MdRefMDTYPEType

getMIMETYPE

public String getMIMETYPE()
Returns the value of field 'MIMETYPE'. The field 'MIMETYPE' has the following description: MIMETYPE: an optional string attribute providing the MIME type for the metadata contained in the element

Returns:
String

getOTHERMDTYPE

public String getOTHERMDTYPE()
Returns the value of field 'OTHERMDTYPE'. The field 'OTHERMDTYPE' has the following description: OTHERMDTYPE: Other Metadata Type an optional string which may be used to record the particular form of metadata referenced by this element when the MDTYPE attribute has a value of "OTHER".

Returns:
String

getXmlData

public XmlData getXmlData()
Returns the value of field 'xmlData'. The field 'xmlData' has the following description: xmlData: A wrapper element to contain XML encoded metadata.

Returns:
XmlData

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Method marshal

Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Method marshal

Parameters:
handler -
Throws:
IOException
MarshalException
ValidationException

setBinData

public void setBinData(byte[] binData)
Sets the value of field 'binData'. The field 'binData' has the following description: binData: A wrapper element to contain Base64 encoded metadata.

Parameters:
binData - the value of field 'binData'.

setID

public void setID(String ID)
Sets the value of field 'ID'. The field 'ID' has the following description: ID: an optional XML ID value.

Parameters:
ID - the value of field 'ID'.

setLABEL

public void setLABEL(String LABEL)
Sets the value of field 'LABEL'. The field 'LABEL' has the following description: LABEL: an optional string attribute providing a label to display to the viewer of the METS document identifying the metadata.

Parameters:
LABEL - the value of field 'LABEL'.

setMDTYPE

public void setMDTYPE(MdRefMDTYPEType MDTYPE)
Sets the value of field 'MDTYPE'. The field 'MDTYPE' has the following description: MDTYPE: a required attribute specifying the yype of metadata being pointed at (e.g., MARC, EAD, etc.). It must have one of the following values: MARC: any form of MARC record MODS: metadata in the Library of Congress MODS format EAD: Encoded Archival Description finding aid DC: Dublin Core NISOIMG: NISO Technical Metadata for Digital Still Images LC-AV: technical metadata specified in the Library of Congress A/V prototyping project VRA: Visual Resources Association Core TEIHDR: Text Encoding Initiative Header DDI: Data Documentation Initiative FGDC: Federal Geographic Data Committee metadata OTHER: metadata in a format not specified above.

Parameters:
MDTYPE - the value of field 'MDTYPE'.

setMIMETYPE

public void setMIMETYPE(String MIMETYPE)
Sets the value of field 'MIMETYPE'. The field 'MIMETYPE' has the following description: MIMETYPE: an optional string attribute providing the MIME type for the metadata contained in the element

Parameters:
MIMETYPE - the value of field 'MIMETYPE'.

setOTHERMDTYPE

public void setOTHERMDTYPE(String OTHERMDTYPE)
Sets the value of field 'OTHERMDTYPE'. The field 'OTHERMDTYPE' has the following description: OTHERMDTYPE: Other Metadata Type an optional string which may be used to record the particular form of metadata referenced by this element when the MDTYPE attribute has a value of "OTHER".

Parameters:
OTHERMDTYPE - the value of field 'OTHERMDTYPE'.

setXmlData

public void setXmlData(XmlData xmlData)
Sets the value of field 'xmlData'. The field 'xmlData' has the following description: xmlData: A wrapper element to contain XML encoded metadata.

Parameters:
xmlData - the value of field 'xmlData'.

unmarshal

public static Object unmarshal(Reader reader)
                        throws MarshalException,
                               ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Method validate

Throws:
ValidationException


Copyright © 2005 Trustees of Indiana University. All Rights Reserved.