|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsjg.xml.Document
public class Document
Represents an XML-document. You will want to access the root element via the getRoot() method.
Constructor Summary | |
---|---|
Document(Element root)
Constructs a new document with the given element as root and default header. |
|
Document(java.lang.String header,
Element root)
Constructs a new document with given header and document root. |
Method Summary | |
---|---|
java.lang.String |
getHeader()
Returns the header of the document in unparsed textual form. |
Element |
getRoot()
Return the document root. |
java.lang.String |
toString()
Returns the textual representation of this document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Document(java.lang.String header, Element root)
public Document(Element root)
Method Detail |
---|
public Element getRoot()
public java.lang.String getHeader()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |