dk.brics.xmlgraph.validator
Class ElementCollector

java.lang.Object
  extended by dk.brics.xmlgraph.validator.ElementCollector

public class ElementCollector
extends Object

Collector of element nodes.


Constructor Summary
ElementCollector()
          Constructs a new collector.
 
Method Summary
 Collection<ElementNode> collect(Node n, XMLGraph xg, NodeKind[] nodekind)
          Collects element nodes from the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementCollector

public ElementCollector()
Constructs a new collector.

Method Detail

collect

public Collection<ElementNode> collect(Node n,
                                       XMLGraph xg,
                                       NodeKind[] nodekind)
Collects element nodes from the given node. Results are cached by the converter.

Parameters:
n - node
xg - XML graph
nodekind - node kinds for the XML graph
Returns:
collection of element nodes


Copyright © 2005-2010 Anders Møller.