|
Jala 1.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--jala.XmlWriter
This class defines a generic interface to write
arbitrary and validating XML source code. This is done
by first applying data objects onto template objects,
both in a specified format. Then, the resulting object
tree is transformed into XML. Moreover, template objects
can be extended with other template objects to provide
full flexibility in inheriting subclasses.
Defined in XmlWriter.js
Constructor Summary | |
jala.XmlWriter
(<String> header)
Construct a new XML writer. |
Method Summary | |
jala.XmlWriter.XmlElement
|
addNamespace(<String> name, <String> url)
Add a namespace to this writer. |
jala.XmlWriter
|
clone(obj)
Clone this XML writer. |
jala.XmlWriter.XmlElement
|
createElement(<Object> data)
Get a newly created XML element. |
jala.XmlWriter
|
extend(<Object> template, <Object> ext)
Extend a template object. |
jala.XmlWriter.XmlElement
|
getRoot()
Get the root XML element of this writer. |
String
|
toString()
Get the XML output as string. |
void
|
write()
Write the XML to the response buffer. |
Constructor Detail |
jala.XmlWriter(<String> header)
header
- An optional XML header.
Method Detail |
jala.XmlWriter.XmlElement addNamespace(<String> name, <String> url)
name
- The name of the namespace.
url
- The URL string of the namespace.
jala.XmlWriter clone(obj)
The
- clone templare.
jala.XmlWriter.XmlElement createElement(<Object> data)
data
- The XML data as object tree.
jala.XmlWriter extend(<Object> template, <Object> ext)
template
- The template object.
ext
- The extension object.
jala.XmlWriter.XmlElement getRoot()
String toString()
void write()
|
Jala 1.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |