|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.bridge.util.xml.Generator
Uses the XML functions from the bridge the construct DOM elements representing MMBase data structures.
| Constructor Summary | |
Generator(javax.xml.parsers.DocumentBuilder documentBuilder)
|
|
Generator(javax.xml.parsers.DocumentBuilder documentBuilder,
Cloud cloud)
To create documents representing structures from the cloud, it needs a documentBuilder, to contruct the DOM Document, and the cloud from which the data to be inserted will come from. |
|
| Method Summary | |
void |
add(Node node)
Adds one Node to a DOM Document. |
void |
add(Node node,
Field fieldDefinition)
Adds a field to the DOM Document. |
void |
add(NodeList nodes)
Adds a whole MMBase bridge NodeList to the DOM Document. |
void |
add(Relation relation)
Adds one Relation to a DOM Document. |
void |
add(RelationList relations)
Adds one Relation to a DOM Document. |
org.w3c.dom.Document |
getDocument()
Returns the working DOM document. |
java.lang.String |
toString()
Returns the document as a String. |
java.lang.String |
toString(boolean ident)
Returns the document as a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Generator(javax.xml.parsers.DocumentBuilder documentBuilder,
Cloud cloud)
documentBuilder - The DocumentBuilder which will be used to create the Document.cloud - The cloud from which the data will be.public Generator(javax.xml.parsers.DocumentBuilder documentBuilder)
| Method Detail |
public org.w3c.dom.Document getDocument()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean ident)
ident - if the string has to be idented
public void add(Node node,
Field fieldDefinition)
An - MMbase bridge Node.An - MMBase bridge Field.public void add(Node node)
An - MMBase bridge Node.public void add(Relation relation)
An - MMBase bridge Node.public void add(NodeList nodes)
An - MMBase bridge NodeList.public void add(RelationList relations)
An - MMBase bridge Node.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||