gov.llnl.babel.parsers.xml
public class SymbolToDOM extends java.lang.Object
SymbolToDOM
converts a SIDL symbol into an XML DOM
document. Utility function convert
takes a symbol and returns
a DOM document. The DOM representation is formatted with white space such
that a straight-forward DOM printer will generate pretty XML output.Constructor and Description |
---|
SymbolToDOM(Symbol symbol,
Context context)
Create a symbol to DOM converter object.
|
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
convert(Symbol symbol,
Context context)
This is a convenience utility function that converts the symbol into
a DOM document.
|
org.w3c.dom.Node |
convertExpr(AssertionExpression ae,
org.w3c.dom.Node parent) |
static java.lang.String |
convertToString(Symbol symbol,
Context context)
This is a convenience utilility function that converts the symbol
directly into a string.
|
org.w3c.dom.Document |
getDocument()
Return the DOM document for the symbol specified in the constructor.
|
java.lang.String |
getDTDPath(java.lang.String dtd) |
public SymbolToDOM(Symbol symbol, Context context)
getDocument
.symbol
- The symbol associated with an instance of this class.public static org.w3c.dom.Document convert(Symbol symbol, Context context)
SymbolToDOM
.symbol
- The symbol to be converted.public static java.lang.String convertToString(Symbol symbol, Context context)
symbol
- The symbol to be converted.public java.lang.String getDTDPath(java.lang.String dtd)
public org.w3c.dom.Document getDocument()
public org.w3c.dom.Node convertExpr(AssertionExpression ae, org.w3c.dom.Node parent)