org.pentaho.reporting.engine.classic.core.modules.parser.bundle.content
Class SubContentRootElementHandler

java.lang.Object
  extended by org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.bundle.content.SubContentRootElementHandler
All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler

public class SubContentRootElementHandler
extends org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler

The content root handler is the first handler that is parsed when dealing with bundle-reports. This file contains all the forwards to the various report-files.

A bundle always contains a master-report. It is not possible to parse a full bundle into a subreport. However, it is possible to parse the subreport xml files contained in a bundle into subreports, if needed.

Author:
Thomas Morgner

Constructor Summary
SubContentRootElementHandler()
           
 
Method Summary
 Object getObject()
          Returns the object for this element or null, if this element does not create an object.
 void init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler, String uri, String tagName)
          Initialises the handler.
 
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, endElement, getLocator, getRootHandler, getTagName, getUri, startElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubContentRootElementHandler

public SubContentRootElementHandler()
Method Detail

init

public void init(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler,
                 String uri,
                 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.

getObject

public Object getObject()
                 throws SAXException
Returns the object for this element or null, if this element does not create an object.

Returns:
the object.
Throws:
SAXException - if an parser error occured.