|
||||||||||
| 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.File
This class encapsulates the <file> 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 | |
File()
Instantiate a new File object. |
|
| Method Summary | |
java.util.Map |
getADMID()
Return map IDREFS to administrative metadata. |
java.lang.String |
getCHECKSUM()
Return file checksum. |
Checksumtype |
getCHECKSUMTYPE()
Return file checksum type. |
java.util.Date |
getCREATED()
Return file creation date/time. |
java.util.Map |
getDMDID()
Return map IDREFS to descriptive metadata. |
java.lang.String |
getGROUPID()
Return file group ID. |
java.lang.String |
getMIMETYPE()
Return file MIME type. |
java.lang.String |
getOWNERID()
Return file owner-specific ID. |
int |
getSEQ()
Return file sequence number in this fileGrp. |
long |
getSIZE()
Return file size in bytes. |
java.lang.String |
getUSE()
Return use flag for this fileGrp. |
void |
read(MetsReader r)
De-serialize the content of the file into this element using the given reader. |
static File |
reader(MetsReader r)
Instantiate a File object de-serialized from the input stream. |
void |
setADMID(java.lang.String ADMID)
Set ADMID of AmdSec element. |
void |
setADMID(java.lang.String ADMID,
MetsIDElement elem)
Set ADMID of AmdSec element, with referenced element. |
void |
setCHECKSUM(java.lang.String checksum)
Set file checksum. |
void |
setCHECKSUMTYPE(Checksumtype type)
Set file checksum type. |
void |
setCREATED(java.util.Date date)
Set file creation date/time. |
void |
setDMDID(java.lang.String DMDID)
Set DMDID of DmdSec element. |
void |
setDMDID(java.lang.String DMDID,
DmdSec elem)
Set DMDID of DmdSec element, with referenced element. |
void |
setGROUPID(java.lang.String id)
Set file group ID. |
void |
setMIMETYPE(java.lang.String mime)
Set file MIME type. |
void |
setOWNERID(java.lang.String id)
Set file owner-specific ID. |
void |
setSEQ(int seq)
Set file sequence order in this fileGrp. |
void |
setSIZE(long size)
Set file size in bytes. |
void |
setUSE(java.lang.String use)
Set use flag for this fileGrp. |
void |
validateThis(MetsValidator v)
Validate this element using the given validator. |
void |
validateThisIDREFs(MetsValidator v)
Validate ID/IDREF consistency with 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 |
| 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 File()
| Method Detail |
public java.util.Map getADMID()
public java.lang.String getCHECKSUM()
public Checksumtype getCHECKSUMTYPE()
public java.util.Date getCREATED()
public java.util.Map getDMDID()
public java.lang.String getGROUPID()
public java.lang.String getMIMETYPE()
public java.lang.String getOWNERID()
public int getSEQ()
throws MetsException
MetsException - If SEQ has not been set
public long getSIZE()
throws MetsException
MetsException - If SIZE has not been setpublic java.lang.String getUSE()
public void setADMID(java.lang.String ADMID)
ADMID - Element IDREF
public void setADMID(java.lang.String ADMID,
MetsIDElement elem)
ADMID - Element IDREFelem - Element (or NULL)public void setCHECKSUM(java.lang.String checksum)
checksum - Checksumpublic void setCHECKSUMTYPE(Checksumtype type)
type - Checksum typepublic void setCREATED(java.util.Date date)
date - Creation date/timepublic void setDMDID(java.lang.String DMDID)
DMDID - Element IDREF
public void setDMDID(java.lang.String DMDID,
DmdSec elem)
DMDID - Element IDREFelem - Element (or NULL)public void setGROUPID(java.lang.String id)
id - Group IDpublic void setMIMETYPE(java.lang.String mime)
mime - MIME typepublic void setOWNERID(java.lang.String id)
id - Owner IDpublic void setSEQ(int seq)
seq - Sequence orderpublic void setSIZE(long size)
size - File sizepublic void setUSE(java.lang.String use)
use - Use flag
public static File reader(MetsReader r)
throws MetsException
r - Reader
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 validateThis(MetsValidator v)
throws MetsException
validateThis in interface MetsValidatablevalidateThis in class MetsVElementv - Validator
MetsException - Validation exception
public void validateThisIDREFs(MetsValidator v)
throws MetsException
validateThisIDREFs in class MetsVElementv - Validator
MetsException - Validation exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||