|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.xsdimportdom.DOMHandler
public class DOMHandler
Class responsible for building rule-trees from DOM tree.
Extracts information from existing DOM tree to create rule-trees.
Rule-trees are tree data structures, where vertices are instances of Element
and edges are the relations between them stored in Regexp
instances within vertices.
Every vertex is a rule by itself, so in order to obtain IG rules,
one must extract all Element
s from a rule-tree.
Constructor Summary | |
---|---|
DOMHandler()
Construct this parser, set loglevel as defined in XSD Import properties. |
Method Summary | |
---|---|
List<Element> |
createRuleTrees(Element root)
Create rule-trees from direct children of the root node of DOM tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMHandler()
Method Detail |
---|
public List<Element> createRuleTrees(Element root) throws XSDException, InterruptedException
root
node of DOM tree.
Returns list of Element
s containing complete rule-trees of the top level tags.
This method recursively builds rule-trees for all its sub-nodes,
thus should be invoked only once, on the schema tag node itself.
root
- Root of the DOM tree, (schema tag) node.
XSDException
InterruptedException
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |