org.w3.atom
Class Link

java.lang.Object
  extended by org.purl.sword.base.XmlElement
      extended by org.w3.atom.Link
All Implemented Interfaces:
SwordElementInterface

public class Link
extends XmlElement
implements SwordElementInterface

Represents an ATOM Link element.

Author:
Neil Taylor

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

Link

public Link()
Create a new instance and set prefix and local name to 'atom' and 'link', respectively.

Method Detail

marshall

public nu.xom.Element marshall()
Mashall the data stored in this object into Element objects.

Specified by:
marshall in interface SwordElementInterface
Returns:
An element that holds the data associated with this object.

unmarshall

public void unmarshall(nu.xom.Element link)
                throws UnmarshallException
Unmarshall the contents of the Link element into the internal data objects in this object.

Specified by:
unmarshall in interface SwordElementInterface
Parameters:
link - The Link element to process.
Throws:
UnmarshallException - If the element does not contain an ATOM link element, or if there is a problem processing the element or any subelements.

getHref

public String getHref()
Get the HREF attribute.

Returns:
The HREF.

setHref

public void setHref(String href)
Set the HREF attribute.

Parameters:
href - The href.

getRel

public String getRel()
Get the Rel attribute.

Returns:
The Rel.

setRel

public void setRel(String rel)
Set the Rel attribute.

Parameters:
rel - The Rel.

getType

public String getType()
Get the type.

Returns:
The type.

setType

public void setType(String type)
Set the type.

Parameters:
type - The type.

getHreflang

public String getHreflang()
Get the HREF Lang attribute.

Returns:
The HREF Lang.

setHreflang

public void setHreflang(String hreflang)
Set the HREF Lang attribute.

Parameters:
hreflang - The HREF Lang.

getTitle

public String getTitle()
Get the title.

Returns:
The title.

setTitle

public void setTitle(String title)
Set the title.

Parameters:
title - The title.

getLength

public String getLength()
Get the length.

Returns:
The length.

setLength

public void setLength(String length)
Set the length.

Parameters:
length - The length.

getContent

public String getContent()
Get the content.

Returns:
The content.

setContent

public void setContent(String content)
Set the content.

Parameters:
content - The content.


Copyright © 2008 The DSpace Foundation. All Rights Reserved.