org.geotools.xml.impl.jxpath
Class SingleFeaturePropertyIterator

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

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

Iterates over a single property of a feature.

Will "iterate" over fid if index is set to -1.

Author:
Justin Deoliveira, The Open Planning Project

Constructor Summary
SingleFeaturePropertyIterator(FeaturePointer 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

SingleFeaturePropertyIterator

public SingleFeaturePropertyIterator(FeaturePointer pointer,
                                     int index)
Creates the iteartor.

Parameters:
pointer - The pointer to the feature.
index - The index of the property to iterate over, or -1 for the feature id.
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.