Class SingleFeatureTypeAttributeIterator

Object
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 Details

    • pointer

      protected NodePointer pointer
      The feature type node pointer
    • name

      protected Name name
    • featureType

      protected ComplexType featureType
  • Constructor Details

    • SingleFeatureTypeAttributeIterator

      public SingleFeatureTypeAttributeIterator(NodePointer pointer, ComplexType featureType, Name name)
      Creates the iteartor.
      Parameters:
      pointer - The pointer to the feature.
  • Method Details

    • 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