|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.devsphere.examples.xml.saxdomix.OutputterBase
|
+--com.devsphere.examples.xml.saxdomix.DOMOutputter
This class outputs DOM sub-trees and implements SDXController.
It is used by MixedParsing.
OutputterBase,
MixedParsing| Field Summary | |
protected java.util.Vector |
elements
The names of the elements that will be the roots of the DOM sub-trees |
| Fields inherited from class com.devsphere.examples.xml.saxdomix.OutputterBase |
DEFAULT_MAX_DATA_LENGTH, level, maxDataLength |
| Constructor Summary | |
DOMOutputter(java.util.Vector elements)
Creates a new outputter and takes as parameter a vector containing the element names for which wantDOM() will return
true. |
|
| Method Summary | |
void |
handleDOM(org.w3c.dom.Element element)
Outputs the constructed DOM sub-tree |
void |
output(org.w3c.dom.Node node)
Outputs a DOM node and is called recursively for all children |
boolean |
wantDOM(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Returns true when the application wants to receive
a DOM sub-tree for handling, that is the elements vector
contains the qualified name of the current element |
| Methods inherited from class com.devsphere.examples.xml.saxdomix.OutputterBase |
blankLine, decLevel, getLevel, getMaxDataLength, incLevel, output, output, setLevel, setMaxDataLength |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector elements
| Constructor Detail |
public DOMOutputter(java.util.Vector elements)
wantDOM() will return
true.
| Method Detail |
public boolean wantDOM(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
true when the application wants to receive
a DOM sub-tree for handling, that is the elements vector
contains the qualified name of the current element
wantDOM in interface SDXControllernamespaceURI - The element's namespace URIlocalName - The element's local namequalifiedName - The element's qualified nameattributes - The element's attributes
org.xml.sax.SAXException - If an error must be signaled
public void handleDOM(org.w3c.dom.Element element)
throws org.xml.sax.SAXException
handleDOM in interface SDXControllerelement - The root of the DOM sub-tree
org.xml.sax.SAXException - If an error must be signaledpublic void output(org.w3c.dom.Node node)
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||