Class 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

      Constructors 
      Constructor Description
      Generator()
      Constructor.
      Generator​(java.lang.String name, org.restlet.data.Reference uri, java.lang.String version)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the human-readable name for the generating agent.
      org.restlet.data.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​(org.restlet.data.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.
      • Generator

        public Generator​(java.lang.String name,
                         org.restlet.data.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 org.restlet.data.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​(org.restlet.data.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