|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xmlgraph.Node
dk.brics.xmlgraph.SingleContentNode
dk.brics.xmlgraph.ElementNode
public class ElementNode
Element node.
For convenience, whitespace status may be expressed by a flag on the element node.
| Field Summary |
|---|
| Fields inherited from class dk.brics.xmlgraph.SingleContentNode |
|---|
content |
| Fields inherited from class dk.brics.xmlgraph.Node |
|---|
index, origin |
| Constructor Summary | |
|---|---|
ElementNode(Automaton name,
int content,
boolean ws,
Origin origin)
Constructs a new element node. |
|
| Method Summary | ||
|---|---|---|
protected ElementNode |
clone()
Clones this node. |
|
Automaton |
getName()
Returns possible attribute names. |
|
boolean |
isWs()
Returns whitespace status. |
|
|
process(NodeProcessor<T> v)
Applies the given node processor on this node. |
|
void |
setName(Automaton name,
XMLGraph xg)
Sets the possible names. |
|
| Methods inherited from class dk.brics.xmlgraph.SingleContentNode |
|---|
getContent, setContent |
| 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 ElementNode(Automaton name,
int content,
boolean ws,
Origin origin)
name - possible namescontent - index of node representing element contentws - if true, the element may be surrounded by arbitrary whitespace
(in addition to what else is declared)origin - source information (null if not applicable)| Method Detail |
|---|
protected ElementNode clone()
Node
clone in class SingleContentNodepublic Automaton getName()
public boolean isWs()
public <T> T process(NodeProcessor<T> v)
Node
process in class NodeT - return typev - node processor
public void setName(Automaton name,
XMLGraph xg)
name - possible namesxg - the current XML graph
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||