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
public abstract class FeatureBuilder<FT extends FeatureType,F extends Feature> extends Object
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
Fields Modifier and Type Field Description protected FeatureFactoryfactorythe feature factoryprotected FTfeatureTypethe feature type
-
Constructor Summary
Constructors Modifier Constructor Description protectedFeatureBuilder(FT featureType, FeatureFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FbuildFeature(String id)protected Objectconvert(Object value, PropertyDescriptor descriptor)static StringcreateDefaultFeatureId()Internal method for creating feature id's when none is specified.static FeatureIdImplcreateDefaultFeatureIdentifier(String suggestedId)Internal method for a temporary FeatureId that can be assigned a real value after a commit.FTgetFeatureType()Returns the feature type used by this builder as a feature template
-
-
-
Field Detail
-
featureType
protected FT extends FeatureType featureType
the feature type
-
factory
protected FeatureFactory factory
the feature factory
-
-
Constructor Detail
-
FeatureBuilder
protected FeatureBuilder(FT featureType, FeatureFactory factory)
-
-
Method Detail
-
getFeatureType
public FT getFeatureType()
Returns the feature type used by this builder as a feature template
-
convert
protected Object convert(Object value, PropertyDescriptor descriptor)
-
createDefaultFeatureId
public static String createDefaultFeatureId()
Internal method for creating feature id's when none is specified.
-
createDefaultFeatureIdentifier
public static FeatureIdImpl createDefaultFeatureIdentifier(String suggestedId)
Internal method for a temporary FeatureId that can be assigned a real value after a commit.- Parameters:
suggestedId- suggested id
-
-