org.geotools.xml.impl.jxpath
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:
Justin Deoliveira, The Open Planning Project
Module:
modules/extension/xsd-core (gt-xsd-core.jar)

Constructor Summary
SingleFeatureTypeAttributeIterator(FeatureTypePointer pointer, int index)
          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
 

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 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-2010 Geotools. All Rights Reserved.