Class StAXFeatureHandler

    • Method Detail

      • addHandler

        protected void addHandler​(ElementRecognizer rec,
                                  StAXHandlerFactory handler)
        Adds a feature to the Handler attribute of the StAXFeatureHandler object
        Parameters:
        rec - The feature to be added to the Handler attribute
        handler - The feature to be added to the Handler attribute
      • returnData

        public void returnData​(java.lang.Object o)
        provides a standardised way of returning an object that represents the result of parsing the child element
      • startElementHandler

        public void startElementHandler​(java.lang.String nsURI,
                                        java.lang.String localName,
                                        java.lang.String qName,
                                        org.xml.sax.Attributes attrs)
                                 throws org.xml.sax.SAXException
        Element-specific handler. Subclass this to do something useful!
        Parameters:
        nsURI - Description of the Parameter
        localName - Description of the Parameter
        qName - Description of the Parameter
        attrs - Description of the Parameter
        Throws:
        org.xml.sax.SAXException - Description of the Exception
      • startElement

        public void startElement​(java.lang.String nsURI,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes attrs,
                                 DelegationManager dm)
                          throws org.xml.sax.SAXException
        Handles basic entry processing for all feature handlers.
        Specified by:
        startElement in interface StAXContentHandler
        Overrides:
        startElement in class StAXContentHandlerBase
        Parameters:
        nsURI - Description of the Parameter
        localName - Description of the Parameter
        qName - Description of the Parameter
        attrs - Description of the Parameter
        dm - Description of the Parameter
        Throws:
        org.xml.sax.SAXException - Description of the Exception
      • endElementHandler

        public void endElementHandler​(java.lang.String nsURI,
                                      java.lang.String localName,
                                      java.lang.String qName,
                                      StAXContentHandler handler)
                               throws org.xml.sax.SAXException
        Element specific exit handler Subclass to do anything useful.
        Parameters:
        nsURI - Description of the Parameter
        localName - Description of the Parameter
        qName - Description of the Parameter
        handler - Description of the Parameter
        Throws:
        org.xml.sax.SAXException - Description of the Exception
      • endElement

        public void endElement​(java.lang.String nsURI,
                               java.lang.String localName,
                               java.lang.String qName,
                               StAXContentHandler handler)
                        throws org.xml.sax.SAXException
        Handles basic exit processing.
        Specified by:
        endElement in interface StAXContentHandler
        Overrides:
        endElement in class StAXContentHandlerBase
        Parameters:
        nsURI - Description of the Parameter
        localName - Description of the Parameter
        qName - Description of the Parameter
        handler - Description of the Parameter
        Throws:
        org.xml.sax.SAXException - Description of the Exception