|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Factory methods that allow for document and element creation.
Method Summary | |
XDocument |
createDocument(URL url,
XElement root)
Creates a document for the Url supplied. |
XElement |
createElement(Reader reader)
Creates an element tree for the character stream Reader supplied. |
XElement |
createElement(String name)
Creates an empty element for the name supplied. |
XElement |
createElement(XElementType type)
Creates an empty element for the element type supplied. |
XDocument |
openDocument(URL url)
Opens a document for the Url supplied. |
Method Detail |
public XElement createElement(String name)
name
- the name of the element.public XElement createElement(XElementType type)
type
- the type of element.public XElement createElement(Reader reader) throws org.xml.sax.SAXParseException
reader
- the reader for the XML information.org.xml.sax.SAXParseException
- if the information
in the reader
cannot be parsed.public XDocument openDocument(URL url) throws IOException, org.xml.sax.SAXParseException
XManager.getDocument()
for this.url
- the URL for the document.IOException
- if the document cannot be opened.org.xml.sax.SAXParseException
- if the information
in the document cannot be parsed.public XDocument createDocument(URL url, XElement root)
url
- the URL for the document.root
- the root element for the document.
|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |