| |
|
| java.lang.Object org.geotools.feature.iso.simple.SimpleFeatureBuilder
SimpleFeatureBuilder | public class SimpleFeatureBuilder (Code) | | This builder will help you put together a SimpleFeature.
Since the simple feature is well simple, this class is not very complicated
either! You are required to provide a SimpleFeatureFactory in order to use
this builder.
author: Justin |
Method Summary | |
public void | add(Object value) Call to add the next attribute to the builder. | public Object | build(String id) | public SimpleFeatureCollection | collection(String id) | protected Attribute | create(Object value, AttributeDescriptor descriptor) | public SimpleFeature | feature(String id) | public void | init() | public void | init(SimpleFeature feature) Initialize the builder with the provided feature. | public void | setSimpleFeatureFactory(SimpleFeatureFactory factory) Setter injection for SimpleFeatureFactory. | public void | setType(SimpleFeatureType featureType) | public void | setType(SimpleFeatureCollectionType collectionType) |
SimpleFeatureBuilder | public SimpleFeatureBuilder(SimpleFeatureFactory factory)(Code) | | |
add | public void add(Object value)(Code) | | Call to add the next attribute to the builder.
|
collection | public SimpleFeatureCollection collection(String id)(Code) | | |
create | protected Attribute create(Object value, AttributeDescriptor descriptor)(Code) | | |
init | public void init(SimpleFeature feature)(Code) | | Initialize the builder with the provided feature.
This is used to quickly create a "clone", can be used to change between
one SimpleFeatureImplementation and another.
Parameters: feature - |
setSimpleFeatureFactory | public void setSimpleFeatureFactory(SimpleFeatureFactory factory)(Code) | | Setter injection for SimpleFeatureFactory. XXX Review? If you do not mean
for Setter injection please factory final
Parameters: factory - |
setType | public void setType(SimpleFeatureType featureType)(Code) | | |
setType | public void setType(SimpleFeatureCollectionType collectionType)(Code) | | |
|
|
|