info.informatica.report
Class ReportDocumentHandler.CarteHandler

java.lang.Object
  extended by info.informatica.report.ReportDocumentHandler.CarteHandler
All Implemented Interfaces:
ReportScopeHandler
Enclosing class:
ReportDocumentHandler

public class ReportDocumentHandler.CarteHandler
extends Object
implements ReportScopeHandler


Constructor Summary
ReportDocumentHandler.CarteHandler()
           
 
Method Summary
 Element addElement(String uri, String localName, Attributes attributes)
          Adds a new element for processing.
 void doCarteCharacters(char[] ch, int start, int length)
           
 void doCarteEndElement(String localName)
           
 void doCarteStartElement(String localName, Attributes attributes)
           
 void doReportElementEnd()
          Do block-end management.
 void doReportElementStart(String localName, Attributes attributes)
          Do block-start management for a new ReportElement with the given local name and attributes.
 Element getCurrentElement()
          Gets the element currently being processed by the handler, regardless of it being XHTML Element or ReportElement.
 ReportElement getCurrentReportElement()
          Gets the report element currently being processed by the handler.
 NamespaceStack getNamespaceStack()
           
 boolean handleAllAsCarte()
           
 boolean insideCarteElement()
           
 void leftTrimNLBuf()
           
 Element popElement()
          Removes the current element from stack and prepares the next one for processing, if any.
 void pushElement(Element element)
          Push element to Element stack.
 void resetCharacterBuffer()
           
 void rightTrimNLBuf()
           
 void setRootElement(String localName, Attributes attributes)
          Set the Object Model root element.
 void sharedEndElement(String uri, String localName, String qName)
           
 void sharedStartElement(String uri, String localName, String qName, Attributes attributes)
           
 void trimNLBuf()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportDocumentHandler.CarteHandler

public ReportDocumentHandler.CarteHandler()
Method Detail

doCarteStartElement

public void doCarteStartElement(String localName,
                                Attributes attributes)
                         throws SAXException
Throws:
SAXException

doCarteEndElement

public void doCarteEndElement(String localName)
                       throws SAXException
Throws:
SAXException

trimNLBuf

public final void trimNLBuf()

leftTrimNLBuf

public final void leftTrimNLBuf()

rightTrimNLBuf

public final void rightTrimNLBuf()

resetCharacterBuffer

public void resetCharacterBuffer()

insideCarteElement

public boolean insideCarteElement()

handleAllAsCarte

public final boolean handleAllAsCarte()

getNamespaceStack

public NamespaceStack getNamespaceStack()

getCurrentElement

public Element getCurrentElement()
Description copied from interface: ReportScopeHandler
Gets the element currently being processed by the handler, regardless of it being XHTML Element or ReportElement.

Specified by:
getCurrentElement in interface ReportScopeHandler
Returns:
the current Element.

getCurrentReportElement

public ReportElement getCurrentReportElement()
Description copied from interface: ReportScopeHandler
Gets the report element currently being processed by the handler.

Specified by:
getCurrentReportElement in interface ReportScopeHandler
Returns:
the current ReportElement, or null if none.

setRootElement

public void setRootElement(String localName,
                           Attributes attributes)
                    throws SAXException
Description copied from interface: ReportScopeHandler
Set the Object Model root element.

Specified by:
setRootElement in interface ReportScopeHandler
Parameters:
localName - the local name of the OM root element.
attributes - the attributes of the OM root element.
Throws:
SAXException - if root element was already set.

addElement

public Element addElement(String uri,
                          String localName,
                          Attributes attributes)
Description copied from interface: ReportScopeHandler
Adds a new element for processing.

Specified by:
addElement in interface ReportScopeHandler
Parameters:
uri - the namespace URI.
localName - the local name.
attributes - the attributes.
Returns:
the new element.

pushElement

public void pushElement(Element element)
Push element to Element stack.

Specified by:
pushElement in interface ReportScopeHandler
Parameters:
element - the element to push to the Report.

popElement

public Element popElement()
Removes the current element from stack and prepares the next one for processing, if any.

Specified by:
popElement in interface ReportScopeHandler
Returns:
the removed element.

doReportElementStart

public void doReportElementStart(String localName,
                                 Attributes attributes)
                          throws SAXException
Description copied from interface: ReportScopeHandler
Do block-start management for a new ReportElement with the given local name and attributes.

Specified by:
doReportElementStart in interface ReportScopeHandler
Parameters:
localName - the local name.
Throws:
SAXException - if the creation of the new element with the given attributes fail.

doReportElementEnd

public void doReportElementEnd()
                        throws SAXException
Do block-end management.

Specified by:
doReportElementEnd in interface ReportScopeHandler
Throws:
info.informatica.doc.DocumentFormatException - if initialization of the current block fails.
SAXException - if initialization of the current block fails.

sharedStartElement

public void sharedStartElement(String uri,
                               String localName,
                               String qName,
                               Attributes attributes)
                        throws SAXException
Throws:
SAXException

sharedEndElement

public void sharedEndElement(String uri,
                             String localName,
                             String qName)
                      throws SAXException
Throws:
SAXException

doCarteCharacters

public void doCarteCharacters(char[] ch,
                              int start,
                              int length)
                       throws SAXException
Throws:
SAXException