|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.XmlElement
org.purl.sword.atom.Link
public class Link
Represents an ATOM Link element.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_HREF
Label for the href attribute. |
static String |
ATTRIBUTE_HREF_LANG
Label for the hreflang attribute. |
static String |
ATTRIBUTE_LENGTH
Label for the length attribute. |
static String |
ATTRIBUTE_REL
Label for the rel attribute. |
static String |
ATTRIBUTE_TITLE
Label for the title attribute. |
static String |
ATTRIBUTE_TYPE
Label for the type attribute. |
static String |
ELEMENT_NAME
Deprecated. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
Link()
Create a new instance and set prefix and local name to 'atom' and 'link', respectively. |
|
| Method Summary | |
|---|---|
static XmlName |
elementName()
|
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. |
String |
toString()
|
void |
unmarshall(nu.xom.Element link)
Unmarshall the contents of the Link element into the internal data objects in this object. |
SwordValidationInfo |
unmarshall(nu.xom.Element link,
Properties validationProperties)
|
SwordValidationInfo |
validate(ArrayList<SwordValidationInfo> elements,
ArrayList<SwordValidationInfo> attributes,
Properties validationContext)
|
SwordValidationInfo |
validate(Properties validationContext)
|
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
createValidAttributeInfo, getQualifiedName, getQualifiedName, getQualifiedNameWithPrefix, getXmlName, handleIncorrectElement, isInstanceOf, isInstanceOf, processUnexpectedAttributes, processUnexpectedAttributes, unmarshallBoolean, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTRIBUTE_HREF
public static final String ATTRIBUTE_REL
public static final String ATTRIBUTE_TYPE
public static final String ATTRIBUTE_HREF_LANG
public static final String ATTRIBUTE_TITLE
public static final String ATTRIBUTE_LENGTH
@Deprecated public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public Link()
| Method Detail |
|---|
public static XmlName elementName()
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 SwordValidationInfo unmarshall(nu.xom.Element link,
Properties validationProperties)
throws UnmarshallException
UnmarshallExceptionpublic SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
public SwordValidationInfo validate(ArrayList<SwordValidationInfo> elements,
ArrayList<SwordValidationInfo> attributes,
Properties validationContext)
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.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||