fr.opensagres.xdocreport.document.preprocessor.sax
Class BufferedDocument

java.lang.Object
  extended by fr.opensagres.xdocreport.document.preprocessor.sax.BufferedElement
      extended by fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocument
All Implemented Interfaces:
IBufferedRegion, ISavable
Direct Known Subclasses:
TransformedBufferedDocument

public class BufferedDocument
extends BufferedElement

Buffered document.


Field Summary
 
Fields inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedElement
endTagElement, startTagElement
 
Constructor Summary
BufferedDocument()
           
 
Method Summary
protected  BufferedElement createElement(BufferedElement parent, String uri, String localName, String name, Attributes attributes)
          Create an element instance.
 BufferedElement getCurrentElement()
          Returns the current element from the stack and null otherwise.
 void onEndEndElement(String uri, String localName, String name)
          On end of End element.
 void onEndStartElement(BufferedElement element, String uri, String localName, String name, Attributes attributes)
          On end of Start element.
 void onStartEndElement(String uri, String localName, String name)
          On start of End element.
 BufferedElement onStartStartElement(String uri, String localName, String name, Attributes attributes)
          On start of Start element.
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedElement
addRegion, append, append, append, end, findChildren, findChildren, findFirstChild, findFirstChild, findParent, findParent, get, getAttributes, getEndTagElement, getEndTagElementName, getInnerText, getName, getOwnerElement, getParent, getStartTagElement, getStartTagElementName, getTextContent, isEnded, isReseted, isString, match, put, registerDynamicAttributes, removeAll, reset, save, setAttribute, setContentAfterEndTagElement, setContentBeforeStartTagElement, setInnerText, setTextContent, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedDocument

public BufferedDocument()
Method Detail

onStartStartElement

public BufferedElement onStartStartElement(String uri,
                                           String localName,
                                           String name,
                                           Attributes attributes)
                                    throws SAXException
On start of Start element.

Parameters:
uri -
localName -
name -
attributes -
Returns:
Throws:
SAXException

createElement

protected BufferedElement createElement(BufferedElement parent,
                                        String uri,
                                        String localName,
                                        String name,
                                        Attributes attributes)
                                 throws SAXException
Create an element instance.

Parameters:
parent -
uri -
localName -
name -
attributes -
Returns:
Throws:
SAXException

onEndStartElement

public void onEndStartElement(BufferedElement element,
                              String uri,
                              String localName,
                              String name,
                              Attributes attributes)
                       throws SAXException
On end of Start element.

Parameters:
element -
uri -
localName -
name -
attributes -
Throws:
SAXException

onStartEndElement

public void onStartEndElement(String uri,
                              String localName,
                              String name)
On start of End element.

Parameters:
uri -
localName -
name -

onEndEndElement

public void onEndEndElement(String uri,
                            String localName,
                            String name)
On end of End element.

Parameters:
uri -
localName -
name -

getCurrentElement

public BufferedElement getCurrentElement()
Returns the current element from the stack and null otherwise.

Returns:


Copyright © 2013. All rights reserved.