|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.devsphere.xml.saxdomix.helpers.DefaultSDXOldHelper
|
+--com.devsphere.xml.saxdomix.helpers.DefaultSDXHelper
|
+--com.devsphere.xml.saxdomix.helpers.DefaultSDXHelperT
This default factory for DOM sub-trees called helper is used
by SDXBuilderT.
SDXBuilderT,
SDXHelperT| Field Summary | |
protected javax.xml.transform.sax.TransformerHandler |
parser
Takes SAX events as input and produces a DOM sub-tree |
protected javax.xml.transform.dom.DOMResult |
result
Container for the current DOM sub-tree |
protected static javax.xml.transform.sax.SAXTransformerFactory |
traxFactory
Factory for TransformerHandler objects |
| Fields inherited from class com.devsphere.xml.saxdomix.helpers.DefaultSDXOldHelper |
document, jaxpBuilder, jaxpFactory |
| Constructor Summary | |
DefaultSDXHelperT()
Creates a new helper. |
|
| Method Summary | |
protected org.w3c.dom.DocumentFragment |
createDocumentFragment()
Creates a DOM DocumentFragment node |
org.w3c.dom.Element |
endBuilding()
This method must be called after the dispatching of the last SAX event of the sequence that was used for building the current DOM sub-tree. |
org.xml.sax.ContentHandler |
getContentHandler()
Returns the SAX ContentHandler that should receive
the events between startBuilding() and
endBuilding(). |
org.xml.sax.ext.LexicalHandler |
getLexicalHandler()
Returns the SAX LexicalHandler that should receive
the events between startBuilding() and
endBuilding(). |
void |
startBuilding()
Prepares this helper for building a DOM sub-tree from SAX events. |
| Methods inherited from class com.devsphere.xml.saxdomix.helpers.DefaultSDXHelper |
createCDATASection, createComment, createElement |
| Methods inherited from class com.devsphere.xml.saxdomix.helpers.DefaultSDXOldHelper |
createElement, createProcessingInstruction, createTextNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.devsphere.xml.saxdomix.helpers.SDXHelper |
createProcessingInstruction, createTextNode |
| Field Detail |
protected static javax.xml.transform.sax.SAXTransformerFactory traxFactory
TransformerHandler objects
protected javax.xml.transform.sax.TransformerHandler parser
protected javax.xml.transform.dom.DOMResult result
| Constructor Detail |
public DefaultSDXHelperT()
| Method Detail |
protected org.w3c.dom.DocumentFragment createDocumentFragment()
DocumentFragment node
DocumentFragment
public void startBuilding()
throws org.xml.sax.SAXException
ContentHandler and LexicalHandler with
SAX events. Then, the endBuilding() method must be called
in order to obtain the root of the created DOM sub-tree.
startBuilding in interface SDXHelperTorg.xml.sax.SAXException - If an error must be signaled
public org.w3c.dom.Element endBuilding()
throws org.xml.sax.SAXException
startBuilding(), which will mark the beginning of the
construction of another DOM sub-tree.
endBuilding in interface SDXHelperTorg.xml.sax.SAXException - If an error must be signaledpublic org.xml.sax.ContentHandler getContentHandler()
ContentHandler that should receive
the events between startBuilding() and
endBuilding().
getContentHandler in interface SDXHelperTContentHandler of this helperpublic org.xml.sax.ext.LexicalHandler getLexicalHandler()
LexicalHandler that should receive
the events between startBuilding() and
endBuilding().
getLexicalHandler in interface SDXHelperTLexicalHandler of this helper
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||