|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ast.xml.XAstWriter
public class XAstWriter
Provides convenience methods for serializing AstObjects to XML.
The hard work is done by XmlChan
.
Constructor Summary | |
---|---|
XAstWriter()
|
Method Summary | |
---|---|
XmlChan |
getXmlChan()
Returns the XmlChan used by this writer. |
Element |
makeElement(AstObject obj)
Turns an AstObject into an Element. |
Source |
makeSource(AstObject obj)
Turns an AstObject into an XML Source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XAstWriter()
Method Detail |
---|
public XmlChan getXmlChan()
public Element makeElement(AstObject obj)
obj
- the AstObject to be serialised
public Source makeSource(AstObject obj)
obj
- the AstObject to be serialised
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |