|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xrel.xml.Builder
Permits to build an XML document.
Here's a list of methods available:
.. TODO: to complete..
Field Summary | |
protected java.io.PrintStream |
fOut
Stream to which to print. |
Constructor Summary | |
Builder()
|
Method Summary | |
void |
addNode(java.lang.String tagName,
java.lang.String content)
Adds a node with a string content on one row. |
void |
beginNode(java.lang.String tagName)
Begins a new tag without increase the indentation level and without go to the next line. |
void |
closeDoc()
Closes the current document. |
void |
closeNode(java.lang.String tagName)
Closes the specified tag and makes the indentation level lower. |
void |
endNode(java.lang.String tagName)
Closes the specified tag without decrease the indentation level. |
java.io.PrintStream |
getPrintStream()
Returns the stream specfied at the creation of the object. |
void |
openDoc(java.lang.String filename,
java.lang.String rt)
Creates a new XML document with the specified name and with a root tag with name "rt". |
void |
openNode(java.lang.String tagName)
Opens a new tag and makes the indention level higher. |
void |
writeText(java.lang.String content)
Writes simple text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.PrintStream fOut
Constructor Detail |
public Builder()
Method Detail |
public void openDoc(java.lang.String filename, java.lang.String rt)
filename
- the name of the XML documentrt
- the name of the root nodepublic void closeDoc()
public void openNode(java.lang.String tagName)
tagName
- the name of the tag to openpublic void closeNode(java.lang.String tagName)
tagName
- the name of the tag to closepublic void beginNode(java.lang.String tagName)
tagName
- the name of the tag to openpublic void endNode(java.lang.String tagName)
tagName
- the name of the tag to closepublic void addNode(java.lang.String tagName, java.lang.String content)
tagName
- content
- public void writeText(java.lang.String content)
content
- public java.io.PrintStream getPrintStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |