Package org.geotools.appschema.feature
Class AppSchemaFeatureFactoryImpl
Object
AbstractFeatureFactoryImpl
ValidatingFeatureFactoryImpl
AppSchemaFeatureFactoryImpl
- All Implemented Interfaces:
FeatureFactory
FeatureFactory that:
- does not choke on null ids
- constructs containers for complex attributes with null values
- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
Field Summary
Fields inherited from class AbstractFeatureFactoryImpl
ff -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAttribute(Object value, AttributeDescriptor descriptor, String id) Create an attribute, even for null id.createComplexAttribute(Collection value, AttributeDescriptor descriptor, String id) Create a new complex attribute, even for null value or id.createComplexAttribute(Collection value, ComplexType type, String id) Create a new complex attribute, even for null value or id.createFeature(Collection value, AttributeDescriptor descriptor, String id) Create a new feature, even for null value or id.createFeature(Collection value, FeatureType type, String id) Create a new feature, even for null value or id.createGeometryAttribute(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs) Create a new geometry attribute, even for null id.Methods inherited from class AbstractFeatureFactoryImpl
createAssociation, createSimpleFeature, createSimpleFeautre, getCRSFactory, setCRSFactory
-
Constructor Details
-
AppSchemaFeatureFactoryImpl
public AppSchemaFeatureFactoryImpl()
-
-
Method Details
-
createAttribute
Create an attribute, even for null id.- Specified by:
createAttributein interfaceFeatureFactory- Overrides:
createAttributein classAbstractFeatureFactoryImpl- Parameters:
value- The value of the attribute, may benull.descriptor- The attribute descriptor.id- The id of the attribute, may benull.- See Also:
-
createGeometryAttribute
public GeometryAttribute createGeometryAttribute(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs) Create a new geometry attribute, even for null id.- Specified by:
createGeometryAttributein interfaceFeatureFactory- Overrides:
createGeometryAttributein classAbstractFeatureFactoryImpl- Parameters:
value- The value of the attribute, may benull.descriptor- The attribute descriptor.id- The id of the attribute, may benull.crs- The coordinate reference system of the attribute, may benull.- See Also:
-
createComplexAttribute
public ComplexAttribute createComplexAttribute(Collection value, AttributeDescriptor descriptor, String id) Create a new complex attribute, even for null value or id.- Specified by:
createComplexAttributein interfaceFeatureFactory- Overrides:
createComplexAttributein classAbstractFeatureFactoryImpl- Parameters:
value- The value of the attribute, a collection of properties.descriptor- The attribute descriptor.id- The id of the attribute, may benull.- See Also:
-
createComplexAttribute
Create a new complex attribute, even for null value or id.- Specified by:
createComplexAttributein interfaceFeatureFactory- Overrides:
createComplexAttributein classAbstractFeatureFactoryImpl- Parameters:
value- The value of the attribute, a collection of properties.type- The type of the attribute.id- The id of the attribute, may benull.- See Also:
-
createFeature
Create a new feature, even for null value or id.- Specified by:
createFeaturein interfaceFeatureFactory- Overrides:
createFeaturein classAbstractFeatureFactoryImpl- Parameters:
value- The value of the feature, a collection of properties.descriptor- The attribute descriptor.id- The id of the feature.- See Also:
-
createFeature
Create a new feature, even for null value or id.- Specified by:
createFeaturein interfaceFeatureFactory- Overrides:
createFeaturein classAbstractFeatureFactoryImpl- Parameters:
value- The value of the feature, a collection of properties.type- The type of the feature.id- The id of the feature.- See Also:
-