org.w3.atom
Class Generator

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

public class Generator
extends XmlElement
implements SwordElementInterface

Represents an ATOM Generator element.

Author:
Neil Taylor

Field Summary
 
Fields inherited from class org.purl.sword.base.XmlElement
DATE_FORMAT, localName, prefix
 
Constructor Summary
Generator()
          Create a new instance and set the prefix to 'atom' and the local name to 'generator'.
 
Method Summary
 String getContent()
          Get the content.
 String getUri()
          Get the URI.
 String getVersion()
          Get the version.
 nu.xom.Element marshall()
          Marshall the data in the object to an Element object.
 void setContent(String content)
          Set the content.
 void setUri(String uri)
          Set the URI.
 void setVersion(String version)
          Set the version.
 void unmarshall(nu.xom.Element generator)
          Unmarshall the specified Generator element into the data 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

Generator

public Generator()
Create a new instance and set the prefix to 'atom' and the local name to 'generator'.

Method Detail

marshall

public nu.xom.Element marshall()
Marshall the data in the object to an Element object.

Specified by:
marshall in interface SwordElementInterface
Returns:
The element.

unmarshall

public void unmarshall(nu.xom.Element generator)
                throws UnmarshallException
Unmarshall the specified Generator element into the data in this object.

Specified by:
unmarshall in interface SwordElementInterface
Parameters:
generator - The generator element.
Throws:
UnmarshallException - If the specified element is not an atom:generator element, or if there is an error accessing the data.

getContent

public String getContent()
Get the content.

Returns:
The content.

setContent

public void setContent(String content)
Set the content.

Parameters:
content - The content.

getUri

public String getUri()
Get the URI.

Returns:
The URI.

setUri

public void setUri(String uri)
Set the URI.

Parameters:
uri - The URI.

getVersion

public String getVersion()
Get the version.

Returns:
The version.

setVersion

public void setVersion(String version)
Set the version.

Parameters:
version - The version.


Copyright © 2008 The DSpace Foundation. All Rights Reserved.