Class TemplateQueryHandler

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

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

      • TemplateQueryHandler

        public TemplateQueryHandler​(java.util.Map<java.lang.String,​TemplateQuery> templates,
                                    int version)
        Constructor
        Parameters:
        templates - Map from template name to TemplateQuery
        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