org.geotools.feature.xpath
Class SingleFeatureTypeAttributeIterator

Object
  extended by SingleFeatureTypeAttributeIterator
All Implemented Interfaces:
NodeIterator

public class SingleFeatureTypeAttributeIterator
extends Object
implements NodeIterator

Iterates over a single attribute of a feature type.

Author:
Niels Charlier (Curtin University of Technology)

Field Summary
protected  ComplexType featureType
           
protected  Name name
           
protected  NodePointer pointer
          The feature type node pointer
 
Constructor Summary
SingleFeatureTypeAttributeIterator(NodePointer pointer, ComplexType featureType, Name name)
          Creates the iteartor.
 
Method Summary
 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointer

protected NodePointer pointer
The feature type node pointer


name

protected Name name

featureType

protected ComplexType featureType
Constructor Detail

SingleFeatureTypeAttributeIterator

public SingleFeatureTypeAttributeIterator(NodePointer pointer,
                                          ComplexType featureType,
                                          Name name)
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 NodeIterator

setPosition

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

Specified by:
setPosition in interface NodeIterator

getNodePointer

public NodePointer getNodePointer()
Return a pointer to the property at the set index.

Specified by:
getNodePointer in interface NodeIterator


Copyright © 1996-2014 Geotools. All Rights Reserved.