|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.harvard.hul.ois.mets.helper.MetsElement
edu.harvard.hul.ois.mets.helper.MetsVElement
edu.harvard.hul.ois.mets.helper.MetsIDElement
edu.harvard.hul.ois.mets.Mets
METS (Metadata Encoding and Transmission Standard) is intended to provide a standardized XML format for transmission of complex digital library objects between systems. This class encapsulates the document root <mets> 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 | |
Mets()
Instantiate a new Mets object. |
|
Mets(boolean noSchema)
Instantiate a new Mets object. |
|
| Method Summary | |
java.lang.String |
getLABEL()
Return document label. |
java.lang.String |
getOBJID()
Return document object ID |
java.lang.String |
getPROFILE()
Return document profile. |
java.lang.String |
getTYPE()
Return document object type |
void |
read(MetsReader r)
De-serialize the content of the file into this element using the given reader. |
static Mets |
reader(MetsReader r)
Instantiate a Mets object de-serialized from the input stream. |
static Mets |
reader(MetsReader r,
boolean noSchema)
Instantiate a Mets object de-serialized from the input stream. |
void |
setLABEL(java.lang.String LABEL)
Set document object label. |
void |
setOBJID(java.lang.String OBJID)
Set document object ID. |
void |
setPROFILE(java.lang.String PROFILE)
Set document object profile. |
void |
setTYPE(java.lang.String TYPE)
Set document object 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. |
void |
write(MetsWriter w,
boolean noXmlDecl)
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 |
public Mets()
public Mets(boolean noSchema)
noSchema - If true, suppress the METS, XLink, and XSI schemas| Method Detail |
public java.lang.String getLABEL()
public java.lang.String getOBJID()
public java.lang.String getPROFILE()
public java.lang.String getTYPE()
public void setLABEL(java.lang.String LABEL)
LABEL - Object labelpublic void setOBJID(java.lang.String OBJID)
OBJID - Object idpublic void setPROFILE(java.lang.String PROFILE)
PROFILE - Object profilepublic void setTYPE(java.lang.String TYPE)
TYPE - Object type
public static Mets reader(MetsReader r)
throws MetsException
r - Reader
MetsException - De-serializing exception
public static Mets reader(MetsReader r,
boolean noSchema)
throws MetsException
r - ReadernoSchema - If true, suppress the METS, XLink, and XSI schemas
MetsException - De-serializing exception
public void read(MetsReader r)
throws MetsException
read in interface MetsSerializableread in class MetsElementr - Reader
MetsException
public void write(MetsWriter w)
throws MetsException
write in interface MetsSerializablewrite in class MetsElementw - Writer
MetsException
public void write(MetsWriter w,
boolean noXmlDecl)
throws MetsException
w - WriternoXmlDecl - If true, suppress the XML declaration
MetsException
public void validateThis(MetsValidator v)
throws MetsException
validateThis in interface MetsValidatablevalidateThis in class MetsVElementv - Validator
MetsException - Validation exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||