Class AbstractElementReadHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureElement​(Element e)  
      protected abstract Element getElement()  
      protected org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler getHandlerForChild​(java.lang.String uri, java.lang.String tagName, org.xml.sax.Attributes atts)
      Returns the handler for a child element.
      Node getNode()  
      java.lang.Object getObject()
      Returns the object for this element or null, if this element does not create an object.
      java.lang.String getStyle()  
      void init​(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, java.lang.String uri, java.lang.String tagName)
      Initialises the handler.
      boolean isEnabled()  
      protected void startParsing​(org.xml.sax.Attributes attrs)
      Starts parsing.
      • Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler

        characters, deriveParseParameters, doneParsing, endElement, getLocator, getRootHandler, getTagName, getUri, isSameNamespace, performExternalParsing, performExternalParsing, startElement
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler

        characters, endElement, startElement
    • Constructor Detail

      • AbstractElementReadHandler

        protected AbstractElementReadHandler()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • getStyle

        public java.lang.String getStyle()
      • init

        public void init​(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler,
                         java.lang.String uri,
                         java.lang.String tagName)
        Initialises the handler.
        Specified by:
        init in interface org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
        Overrides:
        init in class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
        Parameters:
        rootHandler - the root handler.
        tagName - the tag name.
      • startParsing

        protected void startParsing​(org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXException
        Starts parsing.
        Overrides:
        startParsing in class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
        Parameters:
        attrs - the attributes.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
      • getHandlerForChild

        protected org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler getHandlerForChild​(java.lang.String uri,
                                                                                                 java.lang.String tagName,
                                                                                                 org.xml.sax.Attributes atts)
                                                                                          throws org.xml.sax.SAXException
        Returns the handler for a child element.
        Overrides:
        getHandlerForChild in class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
        Parameters:
        tagName - the tag name.
        atts - the attributes.
        Returns:
        the handler or null, if the tagname is invalid.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
      • configureElement

        protected void configureElement​(Element e)
      • getElement

        protected abstract Element getElement()
      • getObject

        public java.lang.Object getObject()
                                   throws org.xml.sax.SAXException
        Returns the object for this element or null, if this element does not create an object.
        Specified by:
        getObject in interface org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
        Returns:
        the object.
        Throws:
        org.xml.sax.SAXException