|
|||||||
| 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.MultiContentNode
public abstract class MultiContentNode
Abstract superclass for nodes with multiple sub-nodes.
| Field Summary | |
|---|---|
protected Collection<Integer> |
contents
Collection of indices of sub-nodes. |
| Fields inherited from class dk.brics.xmlgraph.Node |
|---|
index, origin |
| Constructor Summary | |
|---|---|
MultiContentNode(Collection<Integer> contents,
Origin origin)
Constructor for nodes with multiple sub-nodes. |
|
| Method Summary | |
|---|---|
protected abstract MultiContentNode |
clone()
Clones this node. |
Collection<Integer> |
getContents()
Returns indices of sub-nodes. |
Collection<Integer> |
getSortedContents()
Returns indices of sub-nodes in order. |
void |
setContents(Collection<Integer> contents)
Sets the sub-nodes. |
| 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 Collection<Integer> contents
| Constructor Detail |
|---|
public MultiContentNode(Collection<Integer> contents,
Origin origin)
contents - indices of sub-nodesorigin - source information (null if not applicable)| Method Detail |
|---|
protected abstract MultiContentNode clone()
Node
clone in class Nodepublic Collection<Integer> getContents()
public Collection<Integer> getSortedContents()
public void setContents(Collection<Integer> contents)
contents - collection of node indices
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||