|
|||||||
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
public abstract class SingleContentNode
Abstract superclass for nodes with a single sub-node.
Field Summary | |
---|---|
protected int |
content
Index of sub-node. |
Fields inherited from class dk.brics.xmlgraph.Node |
---|
index, origin |
Constructor Summary | |
---|---|
SingleContentNode(int content,
Origin origin)
Constructor for node with a single sub-node. |
Method Summary | |
---|---|
protected abstract SingleContentNode |
clone()
Clones this node. |
int |
getContent()
Returns the index of the sub-node. |
void |
setContent(int content)
Sets the sub-node. |
Methods inherited from class dk.brics.xmlgraph.Node |
---|
getIndex, getOrigin, process, setOrigin |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int content
Constructor Detail |
---|
public SingleContentNode(int content, Origin origin)
content
- index of sub-nodeorigin
- source information (null if not applicable)Method Detail |
---|
protected abstract SingleContentNode clone()
Node
clone
in class Node
public int getContent()
public void setContent(int content)
content
- node index
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |