org.restlet.ext.atom
Class Generator

java.lang.Object
  extended by org.restlet.ext.atom.Generator

public class Generator
extends java.lang.Object

Identifies the agent used to generate a feed, for debugging and other purposes.

Author:
Jerome Louvel

Constructor Summary
Generator()
          Constructor.
 
Method Summary
 java.lang.String getName()
          Returns the human-readable name for the generating agent.
 Reference getUri()
          Returns the reference of the generating agent.
 java.lang.String getVersion()
          Returns the version of the generating agent.
 void setName(java.lang.String name)
          Sets the human-readable name for the generating agent.
 void setUri(Reference uri)
          Sets the reference of the generating agent.
 void setVersion(java.lang.String version)
          Sets the version of the generating agent.
 void writeElement(XmlWriter writer)
          Writes the current object as an XML element using the given SAX writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator()
Constructor.

Method Detail

getName

public java.lang.String getName()
Returns the human-readable name for the generating agent.

Returns:
The human-readable name for the generating agent.

getUri

public Reference getUri()
Returns the reference of the generating agent.

Returns:
The reference of the generating agent.

getVersion

public java.lang.String getVersion()
Returns the version of the generating agent.

Returns:
The version of the generating agent.

setName

public void setName(java.lang.String name)
Sets the human-readable name for the generating agent.

Parameters:
name - The human-readable name for the generating agent.

setUri

public void setUri(Reference uri)
Sets the reference of the generating agent.

Parameters:
uri - The reference of the generating agent.

setVersion

public void setVersion(java.lang.String version)
Sets the version of the generating agent.

Parameters:
version - The version of the generating agent.

writeElement

public void writeElement(XmlWriter writer)
                  throws org.xml.sax.SAXException
Writes the current object as an XML element using the given SAX writer.

Parameters:
writer - The SAX writer.
Throws:
org.xml.sax.SAXException


Copyright © 2005-2008 Noelios Technologies.