Package org.geotools.appschema.feature
Class AppSchemaFeatureFactoryImpl
- Object
-
- AbstractFeatureFactoryImpl
-
- ValidatingFeatureFactoryImpl
-
- AppSchemaFeatureFactoryImpl
-
- All Implemented Interfaces:
FeatureFactory
public class AppSchemaFeatureFactoryImpl extends ValidatingFeatureFactoryImpl
FeatureFactorythat:- 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 AttributecreateAttribute(Object value, AttributeDescriptor descriptor, String id)Create an attribute, even for null id.ComplexAttributecreateComplexAttribute(Collection value, AttributeDescriptor descriptor, String id)Create a new complex attribute, even for null value or id.ComplexAttributecreateComplexAttribute(Collection value, ComplexType type, String id)Create a new complex attribute, even for null value or id.FeaturecreateFeature(Collection value, AttributeDescriptor descriptor, String id)Create a new feature, even for null value or id.FeaturecreateFeature(Collection value, FeatureType type, String id)Create a new feature, even for null value or id.GeometryAttributecreateGeometryAttribute(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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
AbstractFeatureFactoryImpl.createFeature(java.util.Collection, org.geotools.api.feature.type.FeatureType, java.lang.String)
-
-