Package org.restlet.ext.atom
Class Generator
- java.lang.Object
-
- org.restlet.ext.atom.Generator
-
public class Generator extends java.lang.ObjectIdentifies the agent used to generate a feed, for debugging and other purposes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the human-readable name for the generating agent.ReferencegetUri()Returns the reference of the generating agent.java.lang.StringgetVersion()Returns the version of the generating agent.voidsetName(java.lang.String name)Sets the human-readable name for the generating agent.voidsetUri(Reference uri)Sets the reference of the generating agent.voidsetVersion(java.lang.String version)Sets the version of the generating agent.voidwriteElement(XmlWriter writer)Writes the current object as an XML element using the given SAX writer.
-
-
-
Field Detail
-
name
private volatile java.lang.String name
Human-readable name for the generating agent.
-
uri
private volatile Reference uri
Reference of the generating agent.
-
version
private volatile java.lang.String version
Version of the generating agent.
-
-
Constructor Detail
-
Generator
public Generator()
Constructor.
-
Generator
public Generator(java.lang.String name, Reference uri, java.lang.String version)Constructor.- Parameters:
name- Human-readable name for the generating agent.uri- Reference of the generating agent.version- Version of the generating agent.
-
-
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
-
-