Package org.apache.torque.generator.source.stream

# Klasse SourceToXml

java.lang.Object
org.apache.torque.generator.source.stream.SourceToXml

public class SourceToXml extends Object
Creates an xml String out of a source tree.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `SourceToXml()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `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.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### SourceToXml

    public SourceToXml()

- ## Methodendetails

  - ### toXml

    public String toXml(SourceElement rootElement, boolean createIdAttributes) throws SourceException
    Renders a source element and its children as XML.
    Parameter:
      `rootElement` - the element to render.
      `createIdAttributes` - whether id attributes should be created and filled automatically.
    Gibt zurück:
      the created XML.
    Löst aus:
      `SourceException` - if automaticIds is false and an element is encountered twice in the source tree.

  - ### getIndent

    public String getIndent()
    Returns the String by which a child element is indented relative to its parent.
    Gibt zurück:
      the indent String.

  - ### setIndent

    public void setIndent(String indent)
    Sets the String by which a child element is indented relative to its parent.
    Parameter:
      `indent` - the indent String to set.