org.apache.commons.configuration.tree.xpath
Class ConfigurationNodeIteratorAttribute

java.lang.Object
  extended by org.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorBase
      extended by org.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorAttribute
All Implemented Interfaces:
org.apache.commons.jxpath.ri.model.NodeIterator

 class ConfigurationNodeIteratorAttribute
extends ConfigurationNodeIteratorBase

A specialized node iterator implementation that deals with attribute nodes.

Version:
$Id: ConfigurationNodeIteratorAttribute.java 439648 2006-09-02 20:42:10Z oheger $
Author:
Oliver Heger

Field Summary
private static java.lang.String WILDCARD
          Constant for the wildcard node name.
 
Constructor Summary
ConfigurationNodeIteratorAttribute(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name)
          Creates a new instance of ConfigurationNodeIteratorAttribute.
 
Method Summary
protected  java.util.List createSubNodeList(ConfigurationNode node, org.apache.commons.jxpath.ri.QName name)
          Determines which attributes are selected based on the passed in node name.
 
Methods inherited from class org.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorBase
createNodePointer, getMaxPosition, getNodePointer, getParent, getPosition, getStartOffset, initSubNodeList, positionToIndex, setPosition, setStartOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WILDCARD

private static final java.lang.String WILDCARD
Constant for the wildcard node name.

See Also:
Constant Field Values
Constructor Detail

ConfigurationNodeIteratorAttribute

public ConfigurationNodeIteratorAttribute(org.apache.commons.jxpath.ri.model.NodePointer parent,
                                          org.apache.commons.jxpath.ri.QName name)
Creates a new instance of ConfigurationNodeIteratorAttribute.

Parameters:
parent - the parent node pointer
name - the name of the selected attribute
Method Detail

createSubNodeList

protected java.util.List createSubNodeList(ConfigurationNode node,
                                           org.apache.commons.jxpath.ri.QName name)
Determines which attributes are selected based on the passed in node name.

Parameters:
node - the current node
name - the name of the selected attribute
Returns:
a list with the selected attributes