|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.XmlElement
org.w3.atom.Link
public class Link
Represents an ATOM Link element.
| Field Summary |
|---|
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
Link()
Create a new instance and set prefix and local name to 'atom' and 'link', respectively. |
|
| Method Summary | |
|---|---|
String |
getContent()
Get the content. |
String |
getHref()
Get the HREF attribute. |
String |
getHreflang()
Get the HREF Lang attribute. |
String |
getLength()
Get the length. |
String |
getRel()
Get the Rel attribute. |
String |
getTitle()
Get the title. |
String |
getType()
Get the type. |
nu.xom.Element |
marshall()
Mashall the data stored in this object into Element objects. |
void |
setContent(String content)
Set the content. |
void |
setHref(String href)
Set the HREF attribute. |
void |
setHreflang(String hreflang)
Set the HREF Lang attribute. |
void |
setLength(String length)
Set the length. |
void |
setRel(String rel)
Set the Rel attribute. |
void |
setTitle(String title)
Set the title. |
void |
setType(String type)
Set the type. |
void |
unmarshall(nu.xom.Element link)
Unmarshall the contents of the Link element into the internal data objects in this object. |
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
dateToString, getQualifiedName, getQualifiedName, isInstanceOf, stringToDate, unmarshallBoolean, unmarshallDate, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Link()
| Method Detail |
|---|
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element link)
throws UnmarshallException
unmarshall in interface SwordElementInterfacelink - The Link element to process.
UnmarshallException - If the element does not contain an ATOM link
element, or if there is a problem processing the element or any
subelements.public String getHref()
public void setHref(String href)
href - The href.public String getRel()
public void setRel(String rel)
rel - The Rel.public String getType()
public void setType(String type)
type - The type.public String getHreflang()
public void setHreflang(String hreflang)
hreflang - The HREF Lang.public String getTitle()
public void setTitle(String title)
title - The title.public String getLength()
public void setLength(String length)
length - The length.public String getContent()
public void setContent(String content)
content - The content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||