|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFeatureBuilder<FT,F>
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>
This class provides some common functionality for builders and defines an abstraction for Feature builders' public interfaces.
Field Summary | |
---|---|
protected FeatureFactory |
factory
the feature factory |
protected FT |
featureType
the feature type |
Constructor Summary | |
---|---|
protected |
FeatureBuilder(FT featureType,
FeatureFactory factory)
|
Method Summary | |
---|---|
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 |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FT extends FeatureType featureType
protected FeatureFactory factory
Constructor Detail |
---|
protected FeatureBuilder(FT featureType, FeatureFactory factory)
Method Detail |
---|
public abstract F buildFeature(String id)
public FT getFeatureType()
protected Object convert(Object value, PropertyDescriptor descriptor)
public static String createDefaultFeatureId()
public static FeatureIdImpl createDefaultFeatureIdentifier(String suggestedId)
suggestedId
- suggested id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |