Class Generator


  • public class Generator
    extends java.lang.Object
    Identifies the agent used to generate a feed, for debugging and other purposes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      Human-readable name for the generating agent.
      private Reference uri
      Reference of the generating agent.
      private java.lang.String version
      Version of the generating agent.
    • Constructor Summary

      Constructors 
      Constructor Description
      Generator()
      Constructor.
      Generator​(java.lang.String name, 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.
      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
    • 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