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 String
ATT_VERSION
the "version" attribute.static String
ATT_XMLNS
the "xmlns" attribute.protected AbstractTag
m_Root
the root element.static String
NS_DOCBOOK
the DocBook namespace.static String
XML_PROLOG
the XML prolog.
-
Constructor Summary
Constructors Constructor Description Document()
Initializes the document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractTag
getRoot()
Returns the current root element.void
setRoot(AbstractTag value)
Sets the root element.void
toXML(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
-
-