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.public abstract class FeatureBuilder<FT extends FeatureType,F extends Feature> extends Object
Modifier and Type | Field and Description |
---|---|
protected FeatureFactory |
factory
the feature factory
|
protected FT |
featureType
the feature type
|
Modifier | Constructor and Description |
---|---|
protected |
FeatureBuilder(FT featureType,
FeatureFactory factory) |
Modifier and Type | Method and Description |
---|---|
abstract F |
buildFeature(String id) |
protected Object |
convert(Object value,
PropertyDescriptor descriptor) |
static String |
createDefaultFeatureId()
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.
|
FT |
getFeatureType()
Returns the feature type used by this builder as a feature template
|
protected FT extends FeatureType featureType
protected FeatureFactory factory
protected FeatureBuilder(FT featureType, FeatureFactory factory)
public FT getFeatureType()
protected Object convert(Object value, PropertyDescriptor descriptor)
public static String createDefaultFeatureId()
public static FeatureIdImpl createDefaultFeatureIdentifier(String suggestedId)
suggestedId
- suggested idCopyright © 1996–2019 Geotools. All rights reserved.