|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xmlgraph.Node dk.brics.xmlgraph.NoContentNode dk.brics.xmlgraph.TextNode
public class TextNode
Text node.
Field Summary |
---|
Fields inherited from class dk.brics.xmlgraph.Node |
---|
index, origin |
Constructor Summary | |
---|---|
TextNode(Automaton text,
Origin origin)
Constructs a new text node (representing character data or attribute values) |
Method Summary | ||
---|---|---|
protected TextNode |
clone()
Clones this node. |
|
Automaton |
getText()
Returns possible values. |
|
|
process(NodeProcessor<T> v)
Applies the given node processor on this node. |
|
void |
replaceText(Automaton text,
XMLGraph xg)
Sets the possible values. |
|
boolean |
setText(Automaton text,
XMLGraph xg)
Sets the possible values. |
Methods inherited from class dk.brics.xmlgraph.Node |
---|
getIndex, getOrigin, setOrigin |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface dk.brics.xmlgraph.ConcreteNode |
---|
getIndex |
Constructor Detail |
---|
public TextNode(Automaton text, Origin origin)
text
- possible valuesorigin
- source information (null if not applicable)Method Detail |
---|
protected TextNode clone()
Node
clone
in class NoContentNode
public Automaton getText()
public <T> T process(NodeProcessor<T> v)
Node
process
in class Node
T
- return typev
- node processor
public void replaceText(Automaton text, XMLGraph xg)
text
- possible valuesxg
- the current XML graphpublic boolean setText(Automaton text, XMLGraph xg)
text
- possible valuesxg
- the current XML graph
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |