Package org.geotools.feature
Class FeatureBuilder<FT extends FeatureType,F extends Feature>
Object
FeatureBuilder<FT,F>
- Type Parameters:
FT
- The kind of FeatureType whose feature the builder will build. Allows you to enforce a stricter specialist type; eg. SimpleFeatureType.F
- The kind of Feature that the builder will build. Allows you to enforce a stricter specialist type; eg. SimpleFeature.
- Direct Known Subclasses:
ComplexFeatureBuilder
,SimpleFeatureBuilder
This class provides some common functionality for builders and defines an abstraction for Feature builders' public
interfaces.
- Author:
- Adam Brown (Curtin University of Technology)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FeatureFactory
the feature factoryprotected FT
the feature type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract F
buildFeature
(String id) protected Object
convert
(Object value, PropertyDescriptor descriptor) static String
Internal method for creating feature id's when none is specified.static FeatureIdImpl
createDefaultFeatureIdentifier
(String suggestedId) Internal method for a temporary FeatureId that can be assigned a real value after a commit.Returns the feature type used by this builder as a feature template
-
Field Details
-
featureType
the feature type -
factory
the feature factory
-
-
Constructor Details
-
FeatureBuilder
-
-
Method Details
-
buildFeature
-
getFeatureType
Returns the feature type used by this builder as a feature template -
convert
-
createDefaultFeatureId
Internal method for creating feature id's when none is specified. -
createDefaultFeatureIdentifier
Internal method for a temporary FeatureId that can be assigned a real value after a commit.- Parameters:
suggestedId
- suggested id
-