|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xrel.xml.XmlDoc
Traverses an XML document with DOM and translates it in an internal format tree.
Field Summary | |
protected static java.lang.String |
DEFAULT_PARSER_NAME
Default parser name (Xerces). |
protected static org.w3c.dom.Document |
document
The imported document. |
protected static ParserWrapper.DocumentInfo |
fDocumentInfo
Document information. |
Fields inherited from interface xrel.parser.XRelParserTreeConstants |
JJTAS, JJTCASE, JJTCOMMA, JJTEMPTY, JJTEXPORTTP, JJTIDENTIFIER, JJTIMPORTST, jjtNodeName, JJTOPERATOR, JJTPAR, JJTPROGRAM, JJTSTATEMENTLIST, JJTSTRING, JJTSTRINGLITERAL, JJTSWITCHCASE, JJTTAG, JJTTYPEDECL, JJTVOID |
Constructor Summary | |
XmlDoc()
|
Method Summary | |
static SimpleNode |
convert()
Converts the XML document imported from file with loadFrom() in an internal format. |
static boolean |
loadFrom(java.lang.String filename)
Loads the specified file and parses it with DOM. |
protected static SimpleNode |
xmlSubtree(org.w3c.dom.Node node)
Traverses the specified node recursively and produces an equivalent internal subtree. This function phisically does the translation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static ParserWrapper.DocumentInfo fDocumentInfo
protected static final java.lang.String DEFAULT_PARSER_NAME
protected static org.w3c.dom.Document document
Constructor Detail |
public XmlDoc()
Method Detail |
public static boolean loadFrom(java.lang.String filename)
Loads the specified file and parses it with DOM.
filename
- the name to load and parsepublic static SimpleNode convert()
Converts the XML document imported from file with loadFrom() in an internal format.
protected static SimpleNode xmlSubtree(org.w3c.dom.Node node)
Traverses the specified node recursively and produces an equivalent internal subtree.
This function phisically does the translation.
node
- the DOM node to parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |