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 Summary
Fields Modifier and Type Field Description protected ComplexType
featureType
protected Name
name
protected NodePointer
pointer
The feature type node pointer
-
Constructor Summary
Constructors Constructor Description SingleFeatureTypeAttributeIterator(NodePointer pointer, ComplexType featureType, Name name)
Creates the iteartor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-
Method Detail
-
getPosition
public int getPosition()
Always return 1, only a single property.- Specified by:
getPosition
in interfaceNodeIterator
-
setPosition
public boolean setPosition(int position)
Return true if position == 1.- Specified by:
setPosition
in interfaceNodeIterator
-
getNodePointer
public NodePointer getNodePointer()
Return a pointer to the property at the set index.- Specified by:
getNodePointer
in interfaceNodeIterator
-
-