|
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
This default factory for DOM nodes called helper is used
by SDXOldBuilder.
SDXOldBuilder,
SDXOldHelper| Field Summary | |
protected org.w3c.dom.Document |
document
DOM Document used as factory for DOM nodes |
protected static javax.xml.parsers.DocumentBuilder |
jaxpBuilder
Factory for DOM Document objects |
protected static javax.xml.parsers.DocumentBuilderFactory |
jaxpFactory
Factory for JAXP DocumentBuilder objects |
| Constructor Summary | |
DefaultSDXOldHelper()
Creates a new helper. |
|
| Method Summary | |
org.w3c.dom.Element |
createElement(java.lang.String name,
org.xml.sax.AttributeList attributes,
org.w3c.dom.Element parent)
Creates a DOM Element node and appends it as a child
to the given parent element. |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data,
org.w3c.dom.Element parent)
Creates a DOM ProcessingInstruction node and appends it
as a child to the given parent element. |
org.w3c.dom.Text |
createTextNode(java.lang.String data,
org.w3c.dom.Element parent)
Creates a DOM Text node and appends it as a child
to the given parent element or just appends the data
to the last child of parent if that last child is
a Text node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static javax.xml.parsers.DocumentBuilderFactory jaxpFactory
DocumentBuilder objects
protected static javax.xml.parsers.DocumentBuilder jaxpBuilder
Document objects
protected org.w3c.dom.Document document
Document used as factory for DOM nodes
| Constructor Detail |
public DefaultSDXOldHelper()
| Method Detail |
public org.w3c.dom.Element createElement(java.lang.String name,
org.xml.sax.AttributeList attributes,
org.w3c.dom.Element parent)
Element node and appends it as a child
to the given parent element. The attributes stored by
the SAX object are retrieved and set to the created DOM object.
createElement in interface SDXOldHelpername - The name for the new elementattributes - The attributes for the new elementparent - The parent for the new element or
null if this is a root element
Element
public org.w3c.dom.Text createTextNode(java.lang.String data,
org.w3c.dom.Element parent)
Text node and appends it as a child
to the given parent element or just appends the data
to the last child of parent if that last child is
a Text node. In other words, this method avoids the
creation of adjacent Text nodes and creates
a Text node only when this is necessary.
createTextNode in interface SDXOldHelperdata - The character data for the text nodeparent - The parent for the text node
Text node
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data,
org.w3c.dom.Element parent)
ProcessingInstruction node and appends it
as a child to the given parent element.
createProcessingInstruction in interface SDXOldHelpertarget - The target for the new processing instructiondata - The data for the new processing instructionparent - The parent for the new processing instruction
ProcessingInstruction
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||