|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.source.stream.SourceToXml
public class SourceToXml
Creates an xml String out of a source tree.
| Constructor Summary | |
|---|---|
SourceToXml()
|
|
| Method Summary | |
|---|---|
String |
getIndent()
Returns the String by which a child element is indented relative to its parent. |
void |
setIndent(String indent)
Sets the String by which a child element is indented relative to its parent. |
String |
toXml(SourceElement rootElement,
boolean createIdAttributes)
Renders a source element and its children as XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceToXml()
| Method Detail |
|---|
public String toXml(SourceElement rootElement,
boolean createIdAttributes)
throws SourceException
rootElement - the element to render.createIdAttributes - whether id attributes should be created
and filled automatically.
SourceException - if automaticIds is false and an element
is encountered twice in the source tree.public String getIndent()
public void setIndent(String indent)
indent - the indent String to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||