|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcwi.GraphXML.InterpretDocument
Interpret a full GraphXML document. This class is a collection of convenience routines, which go through the full GraphXML document tree, manage each of the different types of elements separately, and invoke the corresponding semantic methods.
The class has to be initialized with a GraphSemantics instance. In fact, this class is
never used in isolation; it is initialized and used by the AbstractParser
internally.
GraphSemantics
,
AbstractParser
Field Summary | |
(package private) GraphSemantics |
sem
|
Constructor Summary | |
(package private) |
InterpretDocument(GraphSemantics sema,
ParserError p)
|
Method Summary | |
protected void |
editEdge(org.w3c.dom.Node edge,
boolean remove)
|
protected void |
editNode(org.w3c.dom.Node node,
boolean remove)
Edit a node. |
protected void |
interpretEdge(org.w3c.dom.Node edge)
Interpret an edge. |
protected void |
interpretEdit(org.w3c.dom.Node edit)
Interpret an edit block |
protected void |
interpretEditBundle(org.w3c.dom.Node child)
An edit bundle. |
protected void |
interpretGraph(org.w3c.dom.Node graph)
A full graph. |
protected void |
interpretNode(org.w3c.dom.Node node)
Interpret a node. |
(package private) void |
setFileLevelStyle(Style style)
Set the file level style. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
GraphSemantics sem
Constructor Detail |
InterpretDocument(GraphSemantics sema, ParserError p)
sema
- the semantics methods which will be used during interpretationMethod Detail |
void setFileLevelStyle(Style style)
style
- the file level style.protected void interpretGraph(org.w3c.dom.Node graph)
graph
- the full graphprotected void interpretNode(org.w3c.dom.Node node)
protected void editNode(org.w3c.dom.Node node, boolean remove)
node
- the node element itselfremove
- if true, the action is remove; if false, the action is replaceprotected void interpretEdge(org.w3c.dom.Node edge)
protected void editEdge(org.w3c.dom.Node edge, boolean remove)
protected void interpretEdit(org.w3c.dom.Node edit)
protected void interpretEditBundle(org.w3c.dom.Node child)
child
- the edit bundle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |