org.geotools.xml.impl.jxpath
Class SingleFeatureTypeAttributeIterator

java.lang.Object
  extended by org.geotools.xml.impl.jxpath.SingleFeatureTypeAttributeIterator
All Implemented Interfaces:
org.apache.commons.jxpath.ri.model.NodeIterator

public class SingleFeatureTypeAttributeIterator
extends java.lang.Object
implements org.apache.commons.jxpath.ri.model.NodeIterator

Iterates over a single attribute of a feature type.

Author:
Justin Deoliveira, The Open Planning Project

Constructor Summary
SingleFeatureTypeAttributeIterator(FeatureTypePointer pointer, int index)
          Creates the iteartor.
 
Method Summary
 org.apache.commons.jxpath.ri.model.NodePointer getNodePointer()
          Return a pointer to the property at the set index.
 int getPosition()
          Always return 1, only a single property.
 boolean setPosition(int position)
          Return true if position == 1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleFeatureTypeAttributeIterator

public SingleFeatureTypeAttributeIterator(FeatureTypePointer pointer,
                                          int index)
Creates the iteartor.

Parameters:
pointer - The pointer to the feature.
index - The index of the property to iterate over
Method Detail

getPosition

public int getPosition()
Always return 1, only a single property.

Specified by:
getPosition in interface org.apache.commons.jxpath.ri.model.NodeIterator

setPosition

public boolean setPosition(int position)
Return true if position == 1.

Specified by:
setPosition in interface org.apache.commons.jxpath.ri.model.NodeIterator

getNodePointer

public org.apache.commons.jxpath.ri.model.NodePointer getNodePointer()
Return a pointer to the property at the set index.

Specified by:
getNodePointer in interface org.apache.commons.jxpath.ri.model.NodeIterator


Copyright © 1996-2010 Geotools. All Rights Reserved.