Package org.geotools.feature
Class ComplexFeatureBuilder
- Object
-
- FeatureBuilder<FeatureType,Feature>
-
- ComplexFeatureBuilder
-
public class ComplexFeatureBuilder extends FeatureBuilder<FeatureType,Feature>
The complex feature builder allows the construction of features by progressively appending their components and deferring the construction till you're ready.- Author:
- Adam Brown (Curtin University of Technology)
-
-
Field Summary
-
Fields inherited from class FeatureBuilder
factory, featureType
-
-
Constructor Summary
Constructors Modifier Constructor Description ComplexFeatureBuilder(AttributeDescriptor ad)
protected
ComplexFeatureBuilder(AttributeDescriptor ad, FeatureFactory factory)
ComplexFeatureBuilder(FeatureType featureType)
protected
ComplexFeatureBuilder(FeatureType featureType, FeatureFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Name name, Property value)
Append a property value to the complex feature under construction and associate it with the name specified.Feature
buildFeature(String id)
Build and return the feature you've been constructing.-
Methods inherited from class FeatureBuilder
convert, createDefaultFeatureId, createDefaultFeatureIdentifier, getFeatureType
-
-
-
-
Constructor Detail
-
ComplexFeatureBuilder
public ComplexFeatureBuilder(FeatureType featureType)
-
ComplexFeatureBuilder
protected ComplexFeatureBuilder(FeatureType featureType, FeatureFactory factory)
-
ComplexFeatureBuilder
public ComplexFeatureBuilder(AttributeDescriptor ad)
-
ComplexFeatureBuilder
protected ComplexFeatureBuilder(AttributeDescriptor ad, FeatureFactory factory)
-
-
Method Detail
-
buildFeature
public Feature buildFeature(String id)
Build and return the feature you've been constructing. If the id is null it will be assigned from FeatureBuilder.createDefaultFeatureId().- Specified by:
buildFeature
in classFeatureBuilder<FeatureType,Feature>
-
-