org.geotools.feature.type
Class FeatureTypeFactoryImpl

Object
  extended by FeatureTypeFactoryImpl
All Implemented Interfaces:
FeatureTypeFactory
Direct Known Subclasses:
DefaultFeatureTypeFactory2

public class FeatureTypeFactoryImpl
extends Object
implements FeatureTypeFactory

This implementation is capable of creating a good default implementation of the Types used in the feature model.

The implementation focus here is on corretness rather then efficiency or even strict error messages. The code serves as a good example, but is not optimized for any particular use.

Author:
Jody Garnett
Module:
modules/library/main (gt-main.jar)

Constructor Summary
FeatureTypeFactoryImpl()
          Rely on setter injection
FeatureTypeFactoryImpl(CRSFactory crsFactory, FilterFactory filterFactory)
          Constructor injection
 
Method Summary
 AssociationDescriptor createAssociationDescriptor(AssociationType type, Name name, int minOccurs, int maxOccurs, boolean isNillable)
           
 AssociationType createAssociationType(Name name, AttributeType relatedType, boolean isAbstract, List restrictions, AssociationType superType, InternationalString description)
           
 AttributeDescriptor createAttributeDescriptor(AttributeType type, Name name, int minOccurs, int maxOccurs, boolean isNillable, Object defaultValue)
           
 AttributeType createAttributeType(Name name, Class binding, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description)
           
 ComplexType createComplexType(Name name, Collection schema, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description)
           
 FeatureType createFeatureType(Name name, Collection schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description)
           
 GeometryDescriptor createGeometryDescriptor(GeometryType type, Name name, int minOccurs, int maxOccurs, boolean isNillable, Object defaultValue)
           
 GeometryType createGeometryType(Name name, Class binding, CoordinateReferenceSystem crs, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description)
           
 Schema createSchema(String uri)
           
 SimpleFeatureType createSimpleFeatureType(Name name, List<AttributeDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
           
 CRSFactory getCRSFactory()
           
 FilterFactory getFilterFactory()
           
 void setCRSFactory(CRSFactory crsFactory)
           
 void setFilterFactory(FilterFactory filterFactory)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTypeFactoryImpl

public FeatureTypeFactoryImpl()
Rely on setter injection


FeatureTypeFactoryImpl

public FeatureTypeFactoryImpl(CRSFactory crsFactory,
                              FilterFactory filterFactory)
Constructor injection

Method Detail

createSchema

public Schema createSchema(String uri)
Specified by:
createSchema in interface FeatureTypeFactory

getCRSFactory

public CRSFactory getCRSFactory()

setCRSFactory

public void setCRSFactory(CRSFactory crsFactory)

getFilterFactory

public FilterFactory getFilterFactory()

setFilterFactory

public void setFilterFactory(FilterFactory filterFactory)

createAssociationDescriptor

public AssociationDescriptor createAssociationDescriptor(AssociationType type,
                                                         Name name,
                                                         int minOccurs,
                                                         int maxOccurs,
                                                         boolean isNillable)
Specified by:
createAssociationDescriptor in interface FeatureTypeFactory

createAttributeDescriptor

public AttributeDescriptor createAttributeDescriptor(AttributeType type,
                                                     Name name,
                                                     int minOccurs,
                                                     int maxOccurs,
                                                     boolean isNillable,
                                                     Object defaultValue)
Specified by:
createAttributeDescriptor in interface FeatureTypeFactory

createGeometryDescriptor

public GeometryDescriptor createGeometryDescriptor(GeometryType type,
                                                   Name name,
                                                   int minOccurs,
                                                   int maxOccurs,
                                                   boolean isNillable,
                                                   Object defaultValue)
Specified by:
createGeometryDescriptor in interface FeatureTypeFactory

createAssociationType

public AssociationType createAssociationType(Name name,
                                             AttributeType relatedType,
                                             boolean isAbstract,
                                             List restrictions,
                                             AssociationType superType,
                                             InternationalString description)
Specified by:
createAssociationType in interface FeatureTypeFactory

createAttributeType

public AttributeType createAttributeType(Name name,
                                         Class binding,
                                         boolean isIdentifiable,
                                         boolean isAbstract,
                                         List restrictions,
                                         AttributeType superType,
                                         InternationalString description)
Specified by:
createAttributeType in interface FeatureTypeFactory

createComplexType

public ComplexType createComplexType(Name name,
                                     Collection schema,
                                     boolean isIdentifiable,
                                     boolean isAbstract,
                                     List restrictions,
                                     AttributeType superType,
                                     InternationalString description)
Specified by:
createComplexType in interface FeatureTypeFactory

createGeometryType

public GeometryType createGeometryType(Name name,
                                       Class binding,
                                       CoordinateReferenceSystem crs,
                                       boolean isIdentifiable,
                                       boolean isAbstract,
                                       List restrictions,
                                       AttributeType superType,
                                       InternationalString description)
Specified by:
createGeometryType in interface FeatureTypeFactory

createFeatureType

public FeatureType createFeatureType(Name name,
                                     Collection schema,
                                     GeometryDescriptor defaultGeometry,
                                     boolean isAbstract,
                                     List restrictions,
                                     AttributeType superType,
                                     InternationalString description)
Specified by:
createFeatureType in interface FeatureTypeFactory

createSimpleFeatureType

public SimpleFeatureType createSimpleFeatureType(Name name,
                                                 List<AttributeDescriptor> schema,
                                                 GeometryDescriptor defaultGeometry,
                                                 boolean isAbstract,
                                                 List<Filter> restrictions,
                                                 AttributeType superType,
                                                 InternationalString description)
Specified by:
createSimpleFeatureType in interface FeatureTypeFactory


Copyright © 1996-2009 Geotools. All Rights Reserved.