Package adams.doc.docbook
Class Document
- java.lang.Object
-
- adams.doc.docbook.Document
-
- All Implemented Interfaces:
Serializable
public class Document extends Object implements Serializable
Represents a DocBook 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 StringATT_VERSIONthe "version" attribute.static StringATT_XMLNSthe "xmlns" attribute.protected AbstractTagm_Rootthe root element.static StringNS_DOCBOOKthe DocBook namespace.static StringXML_PROLOGthe XML prolog.
-
Constructor Summary
Constructors Constructor Description Document()Initializes the document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractTaggetRoot()Returns the current root element.voidsetRoot(AbstractTag value)Sets the root element.voidtoXML(StringBuilder buffer)Turns the XML tree into its string representation.
-
-
-
Field Detail
-
XML_PROLOG
public static final String XML_PROLOG
the XML prolog.- See Also:
- Constant Field Values
-
NS_DOCBOOK
public static final String NS_DOCBOOK
the DocBook namespace.- See Also:
- Constant Field Values
-
ATT_XMLNS
public static final String ATT_XMLNS
the "xmlns" attribute.- See Also:
- Constant Field Values
-
ATT_VERSION
public static final String ATT_VERSION
the "version" attribute.- See Also:
- Constant Field Values
-
m_Root
protected AbstractTag m_Root
the root element.
-
-
Method Detail
-
setRoot
public void setRoot(AbstractTag value)
Sets the root element.- Parameters:
value- the new root element
-
getRoot
public AbstractTag getRoot()
Returns the current root element.- 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
-
-