Package org.geotools.feature
Class AbstractFeatureFactoryImpl
- Object
-
- AbstractFeatureFactoryImpl
-
- All Implemented Interfaces:
FeatureFactory
- Direct Known Subclasses:
LenientFeatureFactoryImpl,ValidatingFeatureFactoryImpl
public abstract class AbstractFeatureFactoryImpl extends Object implements FeatureFactory
Factory for creating instances of the Attribute family of classes.- Author:
- Ian Schneider, Gabriel Roldan, Justin Deoliveira
-
-
Field Summary
Fields Modifier and Type Field Description FilterFactoryff
-
Constructor Summary
Constructors Constructor Description AbstractFeatureFactoryImpl()
-
Method Summary
-
-
-
Field Detail
-
ff
public FilterFactory ff
-
-
Method Detail
-
getCRSFactory
public CRSFactory getCRSFactory()
-
setCRSFactory
public void setCRSFactory(CRSFactory crsFactory)
-
createAssociation
public Association createAssociation(Attribute related, AssociationDescriptor descriptor)
Description copied from interface:FeatureFactoryCreates an association.- Specified by:
createAssociationin interfaceFeatureFactory- Parameters:
related- The value of the association, an attribute.descriptor- The association descriptor.
-
createAttribute
public Attribute createAttribute(Object value, AttributeDescriptor descriptor, String id)
Description copied from interface:FeatureFactoryCreates an attribute.- Specified by:
createAttributein 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:FeatureFactoryCreates a geometry attribute.descriptor.getType()must be an instance ofGeometryType.- Specified by:
createGeometryAttributein 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:FeatureFactoryCreates a complex attribute.descriptor.getType()must be an instance ofComplexType.- Specified by:
createComplexAttributein 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:FeatureFactoryCreates a complex attribute.- Specified by:
createComplexAttributein 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
public Feature createFeature(Collection<Property> value, AttributeDescriptor descriptor, String id)
Description copied from interface:FeatureFactoryCreates a feature.descriptor.getType()must be an instance ofFeatureType.- Specified by:
createFeaturein interfaceFeatureFactory- Parameters:
value- The value of the feature, a collection of properties.descriptor- The attribute descriptor.id- The id of the feature.
-
createFeature
public Feature createFeature(Collection<Property> value, FeatureType type, String id)
Description copied from interface:FeatureFactoryCreates a feature.- Specified by:
createFeaturein 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
public SimpleFeature createSimpleFeature(Object[] array, SimpleFeatureType type, String id)
Description copied from interface:FeatureFactoryCreate a SimpleFeature from an array of objects.Please note that the provided array may be used directly by an implementation.
- Specified by:
createSimpleFeaturein 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
public SimpleFeature createSimpleFeautre(Object[] array, AttributeDescriptor descriptor, String id)
Description copied from interface:FeatureFactoryCreates a simple feature.descriptor.getType()must be an instance ofSimpleFeatureType.- Specified by:
createSimpleFeautrein interfaceFeatureFactory- Parameters:
array- Object array of values; this array may be used directly.descriptor- The attribute descriptor.id- The id of the feature.
-
-