Package adams.doc.xhtml
Class Document
- java.lang.Object
-
- adams.doc.xhtml.Document
-
- All Implemented Interfaces:
Serializable
public class Document extends Object implements Serializable
Represents an XHTML document.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOCTYPE_PROLOG
the DOCTYPE prolog.protected Html
m_Root
the root element.
-
Constructor Summary
Constructors Constructor Description Document()
Initializes the document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Html
getRoot()
Returns the current root element, i.e., the HTML tag.void
toXML(StringBuilder buffer)
Turns the XML tree into its string representation.
-
-
-
Field Detail
-
DOCTYPE_PROLOG
public static final String DOCTYPE_PROLOG
the DOCTYPE prolog.- See Also:
- Constant Field Values
-
m_Root
protected Html m_Root
the root element.
-
-
Method Detail
-
getRoot
public Html getRoot()
Returns the current root element, i.e., the HTML tag.- Returns:
- the root element
-
toXML
public void toXML(StringBuilder buffer)
Turns the XML tree into its string representation.- Parameters:
buffer
- the buffer to append the tag to
-
-