kirk.io.sdl
Class SDLDocument

java.lang.Object
  extended bykirk.io.sdl.SDLDocument

public class SDLDocument
extends Object

This class represents an Structured Data Language document. It consists of an SDLElement tree.

Version:
1
Author:
Berend "Kirk" Wouda
See Also:
SDLReader, SDLElement

Field Summary
protected  SDLElement root
          The root element of this document.
 
Constructor Summary
SDLDocument(SDLElement root)
          Constructs a new SDLDocument with the given version and root.
 
Method Summary
 SDLElement getRoot()
          Returns the root element of this document.
 void setRoot(SDLElement root)
          Sets the root element of this document to root.
 String toString()
          Returns a string representation of this SDL Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

root

protected SDLElement root
The root element of this document.

Constructor Detail

SDLDocument

public SDLDocument(SDLElement root)
Constructs a new SDLDocument with the given version and root.

Parameters:
root - The root element of this document.
Method Detail

getRoot

public SDLElement getRoot()
Returns the root element of this document.

Returns:
The root element of this document.

setRoot

public void setRoot(SDLElement root)
Sets the root element of this document to root.

Parameters:
root - The root element of this document.

toString

public String toString()
Returns a string representation of this SDL Document.

Returns:
A string representation of this SDL Document.
See Also:
Object.toString()