dk.brics.xmlgraph
Class InterleaveNode

java.lang.Object
  extended by dk.brics.xmlgraph.Node
      extended by dk.brics.xmlgraph.MultiContentNode
          extended by dk.brics.xmlgraph.InterleaveNode
All Implemented Interfaces:
Serializable, Cloneable

public class InterleaveNode
extends MultiContentNode

Interleave node.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class dk.brics.xmlgraph.MultiContentNode
contents
 
Fields inherited from class dk.brics.xmlgraph.Node
index, origin
 
Constructor Summary
InterleaveNode(Collection<Integer> content, Origin origin)
          Constructs a new interleave node.
 
Method Summary
protected  InterleaveNode clone()
          Clones this node.
 Collection<Integer> getSortedContents()
          Returns indices of sub-nodes in order.
<T> T
process(NodeProcessor<T> v)
          Applies the given node processor on this node.
 
Methods inherited from class dk.brics.xmlgraph.MultiContentNode
getContents, setContents
 
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
 

Constructor Detail

InterleaveNode

public InterleaveNode(Collection<Integer> content,
                      Origin origin)
Constructs a new interleave node.

Parameters:
content - outgoing edges representing the contents
origin - source information (null if not applicable)
Method Detail

clone

protected InterleaveNode clone()
Description copied from class: Node
Clones this node.

Specified by:
clone in class MultiContentNode

getSortedContents

public Collection<Integer> getSortedContents()
Description copied from class: MultiContentNode
Returns indices of sub-nodes in order.

Overrides:
getSortedContents in class MultiContentNode
Returns:
ordered collection of node indices (should not be modified by caller)

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.