Class Categories

  • All Implemented Interfaces:
    javax.xml.namespace.NamespaceContext

    public class Categories
    extends SaxRepresentation
    Collection of Category entries.
    Author:
    Jerome Louvel
    • Constructor Detail

      • Categories

        public Categories​(org.restlet.Client clientDispatcher,
                          java.lang.String categoriesUri)
                   throws java.io.IOException
        Constructor.
        Parameters:
        clientDispatcher - The client HTTP dispatcher.
        categoriesUri - The feed URI.
        Throws:
        java.io.IOException
      • Categories

        public Categories​(org.restlet.Context context,
                          java.lang.String categoriesUri)
                   throws java.io.IOException
        Constructor.
        Parameters:
        context - The context from which the client dispatcher will be retrieved.
        categoriesUri - The feed URI.
        Throws:
        java.io.IOException
      • Categories

        public Categories​(org.restlet.representation.Representation categoriesFeed)
                   throws java.io.IOException
        Constructor.
        Parameters:
        categoriesFeed - The XML entries document.
        Throws:
        java.io.IOException
      • Categories

        public Categories​(java.lang.String categoriesUri)
                   throws java.io.IOException
        Constructor.
        Parameters:
        categoriesUri - The feed URI.
        Throws:
        java.io.IOException
    • Method Detail

      • getBaseReference

        public org.restlet.data.Reference getBaseReference()
        Returns the base reference used to resolve relative references found within the scope of the xml:base attribute.
        Returns:
        The base reference used to resolve relative references found within the scope of the xml:base attribute.
      • getEntries

        public java.util.List<Category> getEntries()
        Returns the list of entries.
        Returns:
        The list of entries.
      • getScheme

        public org.restlet.data.Reference getScheme()
        Returns the scheme.
        Returns:
        The scheme.
      • isFixed

        public boolean isFixed()
        Indicates if the list is fixed.
        Returns:
        True if the list is fixed.
      • setBaseReference

        public void setBaseReference​(org.restlet.data.Reference baseReference)
        Sets the base reference used to resolve relative references found within the scope of the xml:base attribute.
        Parameters:
        baseReference - The base reference used to resolve relative references found within the scope of the xml:base attribute.
      • setEntries

        public void setEntries​(java.util.List<Category> entries)
        Sets the list of entries.
        Parameters:
        entries - The list of entries.
      • setFixed

        public void setFixed​(boolean fixed)
        Indicates if the list is fixed.
        Parameters:
        fixed - True if the list is fixed.
      • setScheme

        public void setScheme​(org.restlet.data.Reference scheme)
        Sets the scheme.
        Parameters:
        scheme - The scheme.
      • write

        public void write​(XmlWriter writer)
                   throws java.io.IOException
        Writes the representation to a XML writer.
        Overrides:
        write in class SaxRepresentation
        Parameters:
        writer - The XML writer to write to.
        Throws:
        java.io.IOException
      • writeElement

        public void writeElement​(XmlWriter writer)
                          throws org.xml.sax.SAXException
        Writes the representation to a XML writer.
        Parameters:
        writer - The XML writer to write to.
        Throws:
        org.xml.sax.SAXException