|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.japisoft.fastparser.document.DocumentBuilderImpl
Build a document.
Constructor Summary | |
DocumentBuilderImpl(NodeFactory nf)
Pass the parser node factory |
Method Summary | |
void |
addCommentNode(java.lang.String comment)
Add a comment node |
void |
addTextNode(java.lang.String text)
Add a new node for the current node |
void |
closeNode()
Close the last open node |
void |
closeNode(java.lang.String tag)
Close the current node, an exception is thrown for invalid tag name |
Document |
getDocument()
|
void |
openNode(java.lang.String tag)
Reset the current node |
void |
setAttribute(java.lang.String att,
java.lang.String value)
Reset attribute for the current node, an exception is thrown for no current node |
void |
setCheckForCloseTag(boolean check)
Check the closing node : false should be used for always well formed document |
void |
trimTextNode(boolean trim)
Remove start and end white space for text |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentBuilderImpl(NodeFactory nf)
Method Detail |
public void openNode(java.lang.String tag)
openNode
in interface DocumentBuilder
public void setCheckForCloseTag(boolean check)
false
should be used for always well formed document
setCheckForCloseTag
in interface DocumentBuilder
public void closeNode(java.lang.String tag) throws DocumentBuilderException
closeNode
in interface DocumentBuilder
DocumentBuilderException
public void closeNode() throws DocumentBuilderException
DocumentBuilder
closeNode
in interface DocumentBuilder
DocumentBuilderException
public void setAttribute(java.lang.String att, java.lang.String value) throws DocumentBuilderException
setAttribute
in interface DocumentBuilder
DocumentBuilderException
public void addTextNode(java.lang.String text) throws DocumentBuilderException
addTextNode
in interface DocumentBuilder
DocumentBuilderException
public void addCommentNode(java.lang.String comment)
addCommentNode
in interface DocumentBuilder
public Document getDocument()
getDocument
in interface DocumentBuilder
public void trimTextNode(boolean trim)
trimTextNode
in interface DocumentBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |