|
||||||||||
| 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.SmLink
This class encapsulates the <smLink> 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 | |
SmLink()
Instantiate a new <smLink> object. |
|
| Method Summary | |
java.util.Map |
getFrom()
Return map of IDREF of "from" attribute. |
java.util.Map |
getTo()
Return map of IDREF of "to" attribute. |
Actuate |
getXlinkActuate()
Return pre-defined XLink actuate attribute. |
java.lang.String |
getXlinkArcrole()
Return XLink arcrole attribute. |
java.lang.String |
getXlinkFrom()
Return pre-defined XLink from attribute. |
Show |
getXlinkShow()
Return pre-defined XLink show attribute. |
java.lang.String |
getXlinkTitle()
Return XLink title attribute. |
java.lang.String |
getXlinkTo()
Return pre-defined XLink to attribute. |
void |
read(MetsReader r)
De-serialize the content of the file into this element using the given reader. |
static SmLink |
reader(MetsReader r)
Instantiate a SmLink object de-serialized from the input stream. |
void |
setFrom(java.lang.String from)
Set IDREF of "from" attribute StructMap element. |
void |
setFrom(java.lang.String from,
MetsIDElement element)
Set IDREF of StructMap element, with referenced element. |
void |
setTo(java.lang.String to)
Set IDREF of "to" attribute StructMap element. |
void |
setTo(java.lang.String to,
MetsIDElement element)
Set IDREF of StructMap element, with referenced element. |
void |
setXlinkActuate(Actuate actuate)
Set pre-defined Xlink actuate behavior. |
void |
setXlinkArcrole(java.lang.String arcrole)
Set Xlink arcrole attribute. |
void |
setXlinkFrom(java.lang.String from)
Set pre-defined Xlink from attribute. |
void |
setXlinkShow(Show show)
Set pre-defined Xlink show behavior. |
void |
setXlinkTitle(java.lang.String title)
Set Xlink title attribute |
void |
setXlinkTo(java.lang.String to)
Set pre-defined Xlink to attribute. |
void |
validateThis(MetsValidator v)
Validate this element and its content model using the given validator. |
void |
validateThisIDREFs(MetsValidator v)
Validate ID/IDREF consistency with the given validator. |
void |
write(MetsWriter w)
Serialize the content model 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 SmLink()
| Method Detail |
public java.util.Map getFrom()
public java.util.Map getTo()
public Actuate getXlinkActuate()
public java.lang.String getXlinkArcrole()
public Show getXlinkShow()
public java.lang.String getXlinkFrom()
public java.lang.String getXlinkTitle()
public java.lang.String getXlinkTo()
public void setFrom(java.lang.String from)
from - IDREF of element
public void setFrom(java.lang.String from,
MetsIDElement element)
from - IDREF of elementelement - Element (or NULL)public void setTo(java.lang.String to)
to - IDREF of element
public void setTo(java.lang.String to,
MetsIDElement element)
to - IDREF of elementelement - Element (or NULL)public void setXlinkActuate(Actuate actuate)
actuate - Actuate behaviorpublic void setXlinkArcrole(java.lang.String arcrole)
arcrole - Arcrolepublic void setXlinkFrom(java.lang.String from)
from - Frompublic void setXlinkShow(Show show)
show - Show behaviorpublic void setXlinkTitle(java.lang.String title)
title - Titlepublic void setXlinkTo(java.lang.String to)
to - To
public static SmLink 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 | |||||||||