Package org.geotools.appschema.feature
Class AppSchemaFeatureFactoryImpl
- Object
-
- AbstractFeatureFactoryImpl
-
- ValidatingFeatureFactoryImpl
-
- AppSchemaFeatureFactoryImpl
-
- All Implemented Interfaces:
FeatureFactory
public class AppSchemaFeatureFactoryImpl extends ValidatingFeatureFactoryImpl
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 Constructor Description AppSchemaFeatureFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
createAttribute(Object value, AttributeDescriptor descriptor, String id)
Create an attribute, even for null id.ComplexAttribute
createComplexAttribute(Collection value, AttributeDescriptor descriptor, String id)
Create a new complex attribute, even for null value or id.ComplexAttribute
createComplexAttribute(Collection value, ComplexType type, String id)
Create a new complex attribute, even for null value or id.Feature
createFeature(Collection value, AttributeDescriptor descriptor, String id)
Create a new feature, even for null value or id.Feature
createFeature(Collection value, FeatureType type, String id)
Create a new feature, even for null value or id.GeometryAttribute
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
-
-
-
-
Method Detail
-
createAttribute
public Attribute createAttribute(Object value, AttributeDescriptor descriptor, String id)
Create an attribute, even for null id.- Specified by:
createAttribute
in interfaceFeatureFactory
- Overrides:
createAttribute
in classAbstractFeatureFactoryImpl
- Parameters:
value
- The value of the attribute, may benull
.descriptor
- The attribute descriptor.id
- The id of the attribute, may benull
.- See Also:
AbstractFeatureFactoryImpl.createAttribute(java.lang.Object, org.geotools.api.feature.type.AttributeDescriptor, java.lang.String)
-
createGeometryAttribute
public GeometryAttribute createGeometryAttribute(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs)
Create a new geometry attribute, even for null id.- Specified by:
createGeometryAttribute
in interfaceFeatureFactory
- Overrides:
createGeometryAttribute
in 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:
AbstractFeatureFactoryImpl.createGeometryAttribute(java.lang.Object, org.geotools.api.feature.type.GeometryDescriptor, java.lang.String, org.geotools.api.referencing.crs.CoordinateReferenceSystem)
-
createComplexAttribute
public ComplexAttribute createComplexAttribute(Collection value, AttributeDescriptor descriptor, String id)
Create a new complex attribute, even for null value or id.- Specified by:
createComplexAttribute
in interfaceFeatureFactory
- Overrides:
createComplexAttribute
in 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:
AbstractFeatureFactoryImpl.createComplexAttribute(java.util.Collection, org.geotools.api.feature.type.AttributeDescriptor, java.lang.String)
-
createComplexAttribute
public ComplexAttribute createComplexAttribute(Collection value, ComplexType type, String id)
Create a new complex attribute, even for null value or id.- Specified by:
createComplexAttribute
in interfaceFeatureFactory
- Overrides:
createComplexAttribute
in 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:
AbstractFeatureFactoryImpl.createComplexAttribute(java.util.Collection, org.geotools.api.feature.type.ComplexType, java.lang.String)
-
createFeature
public Feature createFeature(Collection value, AttributeDescriptor descriptor, String id)
Create a new feature, even for null value or id.- Specified by:
createFeature
in interfaceFeatureFactory
- Overrides:
createFeature
in classAbstractFeatureFactoryImpl
- Parameters:
value
- The value of the feature, a collection of properties.descriptor
- The attribute descriptor.id
- The id of the feature.- See Also:
AbstractFeatureFactoryImpl.createFeature(java.util.Collection, org.geotools.api.feature.type.AttributeDescriptor, java.lang.String)
-
createFeature
public Feature createFeature(Collection value, FeatureType type, String id)
Create a new feature, even for null value or id.- Specified by:
createFeature
in interfaceFeatureFactory
- Overrides:
createFeature
in 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:
AbstractFeatureFactoryImpl.createFeature(java.util.Collection, org.geotools.api.feature.type.FeatureType, java.lang.String)
-
-