Class OneOrMoreNode

  extended by dk.brics.xmlgraph.Node
      extended by dk.brics.xmlgraph.SingleContentNode
          extended by dk.brics.xmlgraph.OneOrMoreNode
All Implemented Interfaces:
Serializable, Cloneable

public class OneOrMoreNode
extends SingleContentNode

One-or-more node.

See Also:
Serialized Form

Field Summary
Fields inherited from class dk.brics.xmlgraph.SingleContentNode
Fields inherited from class dk.brics.xmlgraph.Node
index, origin
Constructor Summary
OneOrMoreNode(int content, Origin origin)
          Constructs a new one-or-more node.
Method Summary
protected  OneOrMoreNode clone()
          Clones this node.
<T> T
process(NodeProcessor<T> v)
          Applies the given node processor on this node.
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

Constructor Detail


public OneOrMoreNode(int content,
                     Origin origin)
Constructs a new one-or-more node.

content - outgoing edge representing the content
origin - source information (null if not applicable)
Method Detail


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

Specified by:
clone in class SingleContentNode


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
v - node processor
result from processor

Copyright © 2005-2010 Anders Møller.