Package org.geotools.feature
Class AbstractFeatureFactoryImpl
Object
AbstractFeatureFactoryImpl
- All Implemented Interfaces:
FeatureFactory
- Direct Known Subclasses:
LenientFeatureFactoryImpl
,ValidatingFeatureFactoryImpl
Factory for creating instances of the Attribute family of classes.
- Author:
- Ian Schneider, Gabriel Roldan, Justin Deoliveira
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAssociation
(Attribute related, AssociationDescriptor descriptor) Creates an association.createAttribute
(Object value, AttributeDescriptor descriptor, String id) Creates an attribute.createComplexAttribute
(Collection<Property> value, AttributeDescriptor descriptor, String id) Creates a complex attribute.createComplexAttribute
(Collection<Property> value, ComplexType type, String id) Creates a complex attribute.createFeature
(Collection<Property> value, AttributeDescriptor descriptor, String id) Creates a feature.createFeature
(Collection<Property> value, FeatureType type, String id) Creates a feature.createGeometryAttribute
(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs) Creates a geometry attribute.createSimpleFeature
(Object[] array, SimpleFeatureType type, String id) Create a SimpleFeature from an array of objects.createSimpleFeautre
(Object[] array, AttributeDescriptor descriptor, String id) Creates a simple feature.void
setCRSFactory
(CRSFactory crsFactory)
-
Field Details
-
ff
-
-
Constructor Details
-
AbstractFeatureFactoryImpl
public AbstractFeatureFactoryImpl()
-
-
Method Details
-
getCRSFactory
-
setCRSFactory
-
createAssociation
Description copied from interface:FeatureFactory
Creates an association.- Specified by:
createAssociation
in interfaceFeatureFactory
- Parameters:
related
- The value of the association, an attribute.descriptor
- The association descriptor.
-
createAttribute
Description copied from interface:FeatureFactory
Creates an attribute.- Specified by:
createAttribute
in interfaceFeatureFactory
- Parameters:
value
- The value of the attribute, may benull
.descriptor
- The attribute descriptor.id
- The id of the attribute, may benull
.
-
createGeometryAttribute
public GeometryAttribute createGeometryAttribute(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs) Description copied from interface:FeatureFactory
Creates a geometry attribute.descriptor.getType()
must be an instance ofGeometryType
.- Specified by:
createGeometryAttribute
in interfaceFeatureFactory
- 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
.
-
createComplexAttribute
public ComplexAttribute createComplexAttribute(Collection<Property> value, AttributeDescriptor descriptor, String id) Description copied from interface:FeatureFactory
Creates a complex attribute.descriptor.getType()
must be an instance ofComplexType
.- Specified by:
createComplexAttribute
in interfaceFeatureFactory
- Parameters:
value
- The value of the attribute, a collection of properties.descriptor
- The attribute descriptor.id
- The id of the attribute, may benull
.
-
createComplexAttribute
public ComplexAttribute createComplexAttribute(Collection<Property> value, ComplexType type, String id) Description copied from interface:FeatureFactory
Creates a complex attribute.- Specified by:
createComplexAttribute
in interfaceFeatureFactory
- 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
.
-
createFeature
Description copied from interface:FeatureFactory
Creates a feature.descriptor.getType()
must be an instance ofFeatureType
.- Specified by:
createFeature
in interfaceFeatureFactory
- Parameters:
value
- The value of the feature, a collection of properties.descriptor
- The attribute descriptor.id
- The id of the feature.
-
createFeature
Description copied from interface:FeatureFactory
Creates a feature.- Specified by:
createFeature
in interfaceFeatureFactory
- Parameters:
value
- The value of the feature, a collection of properties.type
- The type of the feature.id
- The id of the feature.
-
createSimpleFeature
Description copied from interface:FeatureFactory
Create a SimpleFeature from an array of objects.Please note that the provided array may be used directly by an implementation.
- Specified by:
createSimpleFeature
in interfaceFeatureFactory
- Parameters:
array
- Object array of values; this array may beused directly.type
- The type of the simple feature.id
- The id of the feature.
-
createSimpleFeautre
Description copied from interface:FeatureFactory
Creates a simple feature.descriptor.getType()
must be an instance ofSimpleFeatureType
.- Specified by:
createSimpleFeautre
in interfaceFeatureFactory
- Parameters:
array
- Object array of values; this array may be used directly.descriptor
- The attribute descriptor.id
- The id of the feature.
-