dk.brics.xmlgraph.validator
Class AttributeCollector

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

public class AttributeCollector
extends Object

Collector of attribute nodes.


Constructor Summary
AttributeCollector()
          Constructs a new collector.
 
Method Summary
 Collection<AttributeNode> collect(Node n, XMLGraph xg, NodeKind[] nodekind, boolean required_only)
          Collects attributes 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

AttributeCollector

public AttributeCollector()
Constructs a new collector.

Method Detail

collect

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

Parameters:
n - node
xg - XML graph
nodekind - node kinds for the XML graph
required_only - if true, skip optional attributes
Returns:
collection of attribute nodes


Copyright © 2005-2010 Anders Møller.