|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.xmlgraph.NodeProcessor<T>
public class NodeProcessor<T>
Node processor interface.
Constructor Summary | |
---|---|
NodeProcessor()
|
Method Summary | |
---|---|
T |
dispatch(AttributeNode n)
Processes a AttributeNode . |
T |
dispatch(ChoiceNode n)
Processes a ChoiceNode . |
T |
dispatch(ElementNode n)
Processes a ElementNode . |
T |
dispatch(InterleaveNode n)
Processes a InterleaveNode . |
T |
dispatch(OneOrMoreNode n)
Processes a OneOrMoreNode . |
T |
dispatch(SequenceNode n)
Processes a SequenceNode . |
T |
dispatch(TextNode n)
Processes a TextNode . |
void |
post(Node n,
T t)
Method to be invoked for postprocessing a Node . |
T |
pre(Node n)
Method to be invoked for preprocessing a Node . |
T |
process(AttributeNode n)
Method to be invoked for processing an AttributeNode . |
T |
process(ChoiceNode n)
Method to be invoked for processing a ChoiceNode . |
T |
process(ElementNode n)
Method to be invoked for processing an ElementNode . |
T |
process(InterleaveNode n)
Method to be invoked for processing an InterleaveNode . |
T |
process(MultiContentNode n)
Method to be invoked for processing a MultiContentNode . |
T |
process(NoContentNode n)
Method to be invoked for processing a NoContentNode . |
T |
process(OneOrMoreNode n)
Method to be invoked for processing a OneOrMoreNode . |
T |
process(SequenceNode n)
Method to be invoked for processing a SequenceNode . |
T |
process(SingleContentNode n)
Method to be invoked for processing a SingleContentNode . |
T |
process(TextNode n)
Method to be invoked for processing a TextNode . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeProcessor()
Method Detail |
---|
public T dispatch(AttributeNode n)
AttributeNode
.
This invokes pre(Node)
,
if that returns null then process(AttributeNode)
is invoked,
and it that returns null then process(SingleContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public T dispatch(ChoiceNode n)
ChoiceNode
.
This invokes pre(Node)
,
if that returns null then process(ChoiceNode)
is invoked,
and it that returns null then process(MultiContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public T dispatch(ElementNode n)
ElementNode
.
This invokes pre(Node)
,
if that returns null then process(ElementNode)
is invoked,
and it that returns null then process(SingleContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public T dispatch(InterleaveNode n)
InterleaveNode
.
This invokes pre(Node)
,
if that returns null then process(InterleaveNode)
is invoked,
and it that returns null then process(MultiContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public T dispatch(OneOrMoreNode n)
OneOrMoreNode
.
This invokes pre(Node)
,
if that returns null then process(OneOrMoreNode)
is invoked,
and it that returns null then process(SingleContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public T dispatch(SequenceNode n)
SequenceNode
.
This invokes pre(Node)
,
if that returns null then process(SequenceNode)
is invoked,
and it that returns null then process(MultiContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public T dispatch(TextNode n)
TextNode
.
This invokes pre(Node)
,
if that returns null then process(TextNode)
is invoked,
and if that returns null then process(NoContentNode)
is invoked.
Finally, post(Node, Object)
is invoked.
n
- node
public void post(Node n, T t)
Node
.
By default, nothing happens.
n
- current nodet
- result from pre
or process
public T pre(Node n)
Node
.
By default, nothing happens and null is returned.
n
- current node
public T process(AttributeNode n)
AttributeNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(ChoiceNode n)
ChoiceNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(ElementNode n)
ElementNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(InterleaveNode n)
InterleaveNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(MultiContentNode n)
MultiContentNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(NoContentNode n)
NoContentNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(OneOrMoreNode n)
OneOrMoreNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(SequenceNode n)
SequenceNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(SingleContentNode n)
SingleContentNode
.
By default, nothing happens and null is returned.
n
- current node
public T process(TextNode n)
TextNode
.
By default, nothing happens and null is returned.
n
- current node
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |