org.geotools.feature
Class AbstractFeatureFactoryImpl

Object
  extended by AbstractFeatureFactoryImpl
All Implemented Interfaces:
FeatureFactory
Direct Known Subclasses:
LenientFeatureFactory, 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

Constructor Summary
AbstractFeatureFactoryImpl()
           
 
Method Summary
 Association createAssociation(Attribute related, AssociationDescriptor descriptor)
          Creates an association.
 Attribute createAttribute(Object value, AttributeDescriptor descriptor, String id)
          Creates an attribute.
 ComplexAttribute createComplexAttribute(Collection value, AttributeDescriptor descriptor, String id)
          Creates a complex attribute.
 ComplexAttribute createComplexAttribute(Collection value, ComplexType type, String id)
          Creates a complex attribute.
 Feature createFeature(Collection value, AttributeDescriptor descriptor, String id)
          Creates a feature.
 Feature createFeature(Collection value, FeatureType type, String id)
          Creates a feature.
 GeometryAttribute createGeometryAttribute(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs)
          Creates a geometry attribute.
 SimpleFeature createSimpleFeature(Object[] array, SimpleFeatureType type, String id)
          Create a SimpleFeature from an array of objects.
 SimpleFeature createSimpleFeautre(Object[] array, AttributeDescriptor descriptor, String id)
          Creates a simple feature.
 CRSFactory getCRSFactory()
           
 GeometryFactory getGeometryFactory()
           
 void setCRSFactory(CRSFactory crsFactory)
           
 void setGeometryFactory(GeometryFactory geometryFactory)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeatureFactoryImpl

public AbstractFeatureFactoryImpl()
Method Detail

getCRSFactory

public CRSFactory getCRSFactory()

setCRSFactory

public void setCRSFactory(CRSFactory crsFactory)

getGeometryFactory

public GeometryFactory getGeometryFactory()

setGeometryFactory

public void setGeometryFactory(GeometryFactory geometryFactory)

createAssociation

public Association createAssociation(Attribute related,
                                     AssociationDescriptor descriptor)
Description copied from interface: FeatureFactory
Creates an association.

Specified by:
createAssociation in interface FeatureFactory
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: FeatureFactory
Creates an attribute.

Specified by:
createAttribute in interface FeatureFactory
Parameters:
value - The value of the attribute, may be null.
descriptor - The attribute descriptor.
id - The id of the attribute, may be null.

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 of GeometryType.

Specified by:
createGeometryAttribute in interface FeatureFactory
descriptor - The attribute descriptor.
id - The id of the attribute, may be null.
crs - The coordinate reference system of the attribute, may be null.

createComplexAttribute

public ComplexAttribute createComplexAttribute(Collection value,
                                               AttributeDescriptor descriptor,
                                               String id)
Description copied from interface: FeatureFactory
Creates a complex attribute.

descriptor.getType() must be an instance of ComplexType.

Specified by:
createComplexAttribute in interface FeatureFactory
Parameters:
value - The value of the attribute, a collection of properties.
descriptor - The attribute descriptor.
id - The id of the attribute, may be null.

createComplexAttribute

public ComplexAttribute createComplexAttribute(Collection value,
                                               ComplexType type,
                                               String id)
Description copied from interface: FeatureFactory
Creates a complex attribute.

Specified by:
createComplexAttribute in interface FeatureFactory
Parameters:
value - The value of the attribute, a collection of properties.
type - The type of the attribute.
id - The id of the attribute, may be null.

createFeature

public Feature createFeature(Collection value,
                             AttributeDescriptor descriptor,
                             String id)
Description copied from interface: FeatureFactory
Creates a feature.

descriptor.getType() must be an instance of FeatureType.

Specified by:
createFeature in interface FeatureFactory
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 value,
                             FeatureType type,
                             String id)
Description copied from interface: FeatureFactory
Creates a feature.

Specified by:
createFeature in interface FeatureFactory
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: 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 interface FeatureFactory
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: FeatureFactory
Creates a simple feature.

descriptor.getType() must be an instance of SimpleFeatureType.

Specified by:
createSimpleFeautre in interface FeatureFactory
Parameters:
array - Object array of values; this array may be used directly.
id - The id of the feature.


Copyright © 1996-2014 Geotools. All Rights Reserved.