dk.brics.xmlgraph
Class SequenceNode
java.lang.Object
dk.brics.xmlgraph.Node
dk.brics.xmlgraph.MultiContentNode
dk.brics.xmlgraph.SequenceNode
- All Implemented Interfaces:
- Serializable, Cloneable
public class SequenceNode
- extends MultiContentNode
Sequence node.
- See Also:
- Serialized Form
SequenceNode
public SequenceNode(List<Integer> content,
Origin origin)
- Constructs a new sequence node.
- Parameters:
content
- outgoing edges representing the contentsorigin
- source information (null if not applicable)
addContent
public void addContent(int index)
- Adds outgoing edge.
This should only be used during initial construction.
- Parameters:
index
- index
clone
protected SequenceNode clone()
- Description copied from class:
Node
- Clones this node.
- Specified by:
clone
in class MultiContentNode
process
public <T> T process(NodeProcessor<T> v)
- Description copied from class:
Node
- Applies the given node processor on this node.
- Specified by:
process
in class Node
- Type Parameters:
T
- return type- Parameters:
v
- node processor
- Returns:
- result from processor
Copyright © 2005-2010 Anders Møller.