|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.XmlToDom
public class XmlToDom
Helper which parses a XML ASCII string into a DOM tree.
Field Summary | |
---|---|
protected Global |
glob
|
protected org.w3c.dom.Node |
rootNode
|
protected java.lang.String |
xmlKey_literal
|
Constructor Summary | |
---|---|
XmlToDom(Global glob,
java.lang.String xmlKey_literal)
Parses given xml string |
Method Summary | |
---|---|
void |
create(java.lang.String xmlKey_literal)
Creates the DOM tree, this is done delayed when the first access is done. |
java.lang.String |
domToXml(java.lang.String offset)
Dump DOM tree to XML ASCII String. |
org.w3c.dom.NamedNodeMap |
getRootAttributes()
The syntax of the XmlKey_literal String. |
org.w3c.dom.Node |
getRootNode()
Fills the DOM tree, and assures that a valid |
java.lang.String |
literal()
Access the unparsed, literal ASCII xmlKey. |
void |
mergeRootNode(I_MergeDomNode merger)
Should be called by publish() to merge the local XmlKey DOM into the big xmlBlaster DOM tree |
static org.w3c.dom.Document |
parseToDomTree(Global glob,
java.lang.String xmlKey_literal)
|
java.lang.StringBuffer |
printOn()
Dump state of this object into XML. |
java.lang.StringBuffer |
printOn(java.lang.String extraOffset)
Dump state of this object into XML. |
java.lang.String |
toString()
Access the unparsed, literal ASCII xmlKey. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Global glob
protected java.lang.String xmlKey_literal
protected org.w3c.dom.Node rootNode
Constructor Detail |
---|
public XmlToDom(Global glob, java.lang.String xmlKey_literal) throws XmlBlasterException
The
- original key in XML syntax, for example:XmlBlasterException
Method Detail |
---|
public final void create(java.lang.String xmlKey_literal) throws XmlBlasterException
xmlKey_literal
- The ASCII XML string
XmlBlasterException
public final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String literal()
public final org.w3c.dom.NamedNodeMap getRootAttributes() throws XmlBlasterException
XmlBlasterException
public final org.w3c.dom.Node getRootNode() throws XmlBlasterException
XmlBlasterException
public static org.w3c.dom.Document parseToDomTree(Global glob, java.lang.String xmlKey_literal) throws XmlBlasterException
XmlBlasterException
public final void mergeRootNode(I_MergeDomNode merger) throws XmlBlasterException
XmlBlasterException
public java.lang.String domToXml(java.lang.String offset)
offset
- indenting of tags with given blanks e.g. " "
public final java.lang.StringBuffer printOn() throws XmlBlasterException
XmlBlasterException
public final java.lang.StringBuffer printOn(java.lang.String extraOffset) throws XmlBlasterException
extraOffset
- indenting of tags
XmlBlasterException
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |