Class HintHandler

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

    @NotThreadSafe
    public class HintHandler
    extends org.xml.sax.helpers.DefaultHandler
    A handler to load hint rules.
    Author:
    Jeremy Long
    • Constructor Summary

      Constructors 
      Constructor Description
      HintHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName)
      Handles the end element event.
      java.util.List<HintRule> getHintRules()
      Returns the list of hint rules.
      java.util.List<VendorDuplicatingHintRule> getVendorDuplicatingHintRules()
      Returns the list of vendor duplicating hint rules.
      void startElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr)
      Handles the start element event.
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HintHandler

        public HintHandler()
    • Method Detail

      • getHintRules

        public java.util.List<HintRule> getHintRules()
        Returns the list of hint rules.
        Returns:
        the value of hintRules
      • getVendorDuplicatingHintRules

        public java.util.List<VendorDuplicatingHintRule> getVendorDuplicatingHintRules()
        Returns the list of vendor duplicating hint rules.
        Returns:
        the list of vendor duplicating hint rules
      • startElement

        public void startElement​(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes attr)
                          throws org.xml.sax.SAXException
        Handles the start element event.
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class org.xml.sax.helpers.DefaultHandler
        Parameters:
        uri - the URI of the element being processed
        localName - the local name of the element being processed
        qName - the qName of the element being processed
        attr - the attributes of the element being processed
        Throws:
        org.xml.sax.SAXException - thrown if there is an exception processing
      • endElement

        public void endElement​(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String qName)
                        throws org.xml.sax.SAXException
        Handles the end element event.
        Specified by:
        endElement in interface org.xml.sax.ContentHandler
        Overrides:
        endElement in class org.xml.sax.helpers.DefaultHandler
        Parameters:
        uri - the element's URI
        localName - the local name
        qName - the qualified name
        Throws:
        org.xml.sax.SAXException - thrown if there is an exception processing the element