|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLWriter
public class OSgLWriter
The OSgLWriter
class is a general and generic writer class for all the other OSxL writer
classes to extend, which mostly writes a DOM tree of an OSxL instance and provide a set of "set" and "add"
methods that can be used to construct different pieces of information of the OSxL instance.
Field Summary | |
---|---|
org.w3c.dom.Document |
m_document
m_document holds the W3C DOM type document to create XML elements and attributes. |
Constructor Summary | |
---|---|
OSgLWriter()
Constructor. |
Method Summary | |
---|---|
org.w3c.dom.Document |
getDocument()
|
static void |
main(java.lang.String[] argv)
main for test purposes. |
void |
setDocument(org.w3c.dom.Document document)
|
boolean |
writeToFile(java.lang.String fileName)
Write the xml file from the internally constructed DOM tree structure that contains the OSxL instance to a file. |
java.lang.String |
writeToSring()
Write the xml file from the internally constructed DOM tree structure that contains the OSxL instance to a string to be returned. |
boolean |
writeToStandardOutput()
Write the xml file from the internally constructed DOM tree structure that contains the OSxL instance to the standard output (e.g. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.w3c.dom.Document m_document
Constructor Detail |
---|
public OSgLWriter()
Method Detail |
---|
public boolean writeToFile(java.lang.String fileName)
fileName
- holds the xml filename to write out the file to.
public boolean writeToStandardOutput()
public java.lang.String writeToSring()
public void setDocument(org.w3c.dom.Document document)
document
- holds the W3C DOM type document to create XML elements and attributes.
It is the parent of the root element, e.g. the <OSiL> element in OSiL. It is used
to create all the nodes in the DOM tree.public org.w3c.dom.Document getDocument()
public static void main(java.lang.String[] argv)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |