Class SavedQueryHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class SavedQueryHandler
    extends PathQueryHandler
    Extension of PathQueryHandler to handle parsing SavedQuerys
    Author:
    Xavier Watkins
    • Constructor Detail

      • SavedQueryHandler

        public SavedQueryHandler​(java.util.Map<java.lang.String,​SavedQuery> queries,
                                 java.util.Map savedBags,
                                 int version)
        Constructor
        Parameters:
        queries - Map from saved query name to SavedQuery
        savedBags - Map from bag name to bag
        version - the version of the xml, an attribute on the profile manager
    • Method Detail

      • startElement

        public void startElement​(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes attrs)
                          throws org.xml.sax.SAXException
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class PathQueryHandler
        Throws:
        org.xml.sax.SAXException
      • endElement

        public void endElement​(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String qName)
                        throws org.xml.sax.SAXException
        Specified by:
        endElement in interface org.xml.sax.ContentHandler
        Overrides:
        endElement in class PathQueryHandler
        Throws:
        org.xml.sax.SAXException