Class SingleFeatureTypeAttributeIterator
Object
SingleFeatureTypeAttributeIterator
- All Implemented Interfaces:
NodeIterator
Iterates over a single attribute of a feature type.
- Author:
- Niels Charlier (Curtin University of Technology)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ComplexTypeprotected Nameprotected NodePointerThe feature type node pointer -
Constructor Summary
ConstructorsConstructorDescriptionSingleFeatureTypeAttributeIterator(NodePointer pointer, ComplexType featureType, Name name) Creates the iteartor. -
Method Summary
Modifier and TypeMethodDescriptionNodePointerReturn a pointer to the property at the set index.intAlways return 1, only a single property.booleansetPosition(int position) Return true if position == 1.
-
Field Details
-
pointer
protected NodePointer pointerThe feature type node pointer -
name
-
featureType
-
-
Constructor Details
-
SingleFeatureTypeAttributeIterator
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:
getPositionin interfaceNodeIterator
-
setPosition
public boolean setPosition(int position) Return true if position == 1.- Specified by:
setPositionin interfaceNodeIterator
-
getNodePointer
public NodePointer getNodePointer()Return a pointer to the property at the set index.- Specified by:
getNodePointerin interfaceNodeIterator
-