org.geotools.feature.type
Class FeatureTypeFactoryImpl
java.lang.Object
org.geotools.feature.type.FeatureTypeFactoryImpl
- All Implemented Interfaces:
- org.opengis.feature.type.FeatureTypeFactory
- Direct Known Subclasses:
- ComplexFeatureTypeFactoryImpl
public class FeatureTypeFactoryImpl
- extends java.lang.Object
- implements org.opengis.feature.type.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
Method Summary |
org.opengis.feature.type.AssociationDescriptor |
createAssociationDescriptor(org.opengis.feature.type.AssociationType type,
org.opengis.feature.type.Name name,
int minOccurs,
int maxOccurs,
boolean isNillable)
|
org.opengis.feature.type.AssociationType |
createAssociationType(org.opengis.feature.type.Name name,
org.opengis.feature.type.AttributeType relatedType,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AssociationType superType,
org.opengis.util.InternationalString description)
|
org.opengis.feature.type.AttributeDescriptor |
createAttributeDescriptor(org.opengis.feature.type.AttributeType type,
org.opengis.feature.type.Name name,
int minOccurs,
int maxOccurs,
boolean isNillable,
java.lang.Object defaultValue)
|
org.opengis.feature.type.AttributeType |
createAttributeType(org.opengis.feature.type.Name name,
java.lang.Class binding,
boolean isIdentifiable,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
|
org.opengis.feature.type.ComplexType |
createComplexType(org.opengis.feature.type.Name name,
java.util.Collection schema,
boolean isIdentifiable,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
|
org.opengis.feature.type.FeatureType |
createFeatureType(org.opengis.feature.type.Name name,
java.util.Collection schema,
org.opengis.feature.type.GeometryDescriptor defaultGeometry,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
|
org.opengis.feature.type.GeometryDescriptor |
createGeometryDescriptor(org.opengis.feature.type.GeometryType type,
org.opengis.feature.type.Name name,
int minOccurs,
int maxOccurs,
boolean isNillable,
java.lang.Object defaultValue)
|
org.opengis.feature.type.GeometryType |
createGeometryType(org.opengis.feature.type.Name name,
java.lang.Class binding,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
boolean isIdentifiable,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
|
org.opengis.feature.type.Schema |
createSchema(java.lang.String uri)
|
org.opengis.feature.simple.SimpleFeatureType |
createSimpleFeatureType(org.opengis.feature.type.Name name,
java.util.List<org.opengis.feature.type.AttributeDescriptor> schema,
org.opengis.feature.type.GeometryDescriptor defaultGeometry,
boolean isAbstract,
java.util.List<org.opengis.filter.Filter> restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
|
org.opengis.referencing.crs.CRSFactory |
getCRSFactory()
|
org.opengis.filter.FilterFactory |
getFilterFactory()
|
void |
setCRSFactory(org.opengis.referencing.crs.CRSFactory crsFactory)
|
void |
setFilterFactory(org.opengis.filter.FilterFactory filterFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureTypeFactoryImpl
public FeatureTypeFactoryImpl()
- Rely on setter injection
FeatureTypeFactoryImpl
public FeatureTypeFactoryImpl(org.opengis.referencing.crs.CRSFactory crsFactory,
org.opengis.filter.FilterFactory filterFactory)
- Constructor injection
createSchema
public org.opengis.feature.type.Schema createSchema(java.lang.String uri)
- Specified by:
createSchema
in interface org.opengis.feature.type.FeatureTypeFactory
getCRSFactory
public org.opengis.referencing.crs.CRSFactory getCRSFactory()
setCRSFactory
public void setCRSFactory(org.opengis.referencing.crs.CRSFactory crsFactory)
getFilterFactory
public org.opengis.filter.FilterFactory getFilterFactory()
setFilterFactory
public void setFilterFactory(org.opengis.filter.FilterFactory filterFactory)
createAssociationDescriptor
public org.opengis.feature.type.AssociationDescriptor createAssociationDescriptor(org.opengis.feature.type.AssociationType type,
org.opengis.feature.type.Name name,
int minOccurs,
int maxOccurs,
boolean isNillable)
- Specified by:
createAssociationDescriptor
in interface org.opengis.feature.type.FeatureTypeFactory
createAttributeDescriptor
public org.opengis.feature.type.AttributeDescriptor createAttributeDescriptor(org.opengis.feature.type.AttributeType type,
org.opengis.feature.type.Name name,
int minOccurs,
int maxOccurs,
boolean isNillable,
java.lang.Object defaultValue)
- Specified by:
createAttributeDescriptor
in interface org.opengis.feature.type.FeatureTypeFactory
createGeometryDescriptor
public org.opengis.feature.type.GeometryDescriptor createGeometryDescriptor(org.opengis.feature.type.GeometryType type,
org.opengis.feature.type.Name name,
int minOccurs,
int maxOccurs,
boolean isNillable,
java.lang.Object defaultValue)
- Specified by:
createGeometryDescriptor
in interface org.opengis.feature.type.FeatureTypeFactory
createAssociationType
public org.opengis.feature.type.AssociationType createAssociationType(org.opengis.feature.type.Name name,
org.opengis.feature.type.AttributeType relatedType,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AssociationType superType,
org.opengis.util.InternationalString description)
- Specified by:
createAssociationType
in interface org.opengis.feature.type.FeatureTypeFactory
createAttributeType
public org.opengis.feature.type.AttributeType createAttributeType(org.opengis.feature.type.Name name,
java.lang.Class binding,
boolean isIdentifiable,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
- Specified by:
createAttributeType
in interface org.opengis.feature.type.FeatureTypeFactory
createComplexType
public org.opengis.feature.type.ComplexType createComplexType(org.opengis.feature.type.Name name,
java.util.Collection schema,
boolean isIdentifiable,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
- Specified by:
createComplexType
in interface org.opengis.feature.type.FeatureTypeFactory
createGeometryType
public org.opengis.feature.type.GeometryType createGeometryType(org.opengis.feature.type.Name name,
java.lang.Class binding,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
boolean isIdentifiable,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
- Specified by:
createGeometryType
in interface org.opengis.feature.type.FeatureTypeFactory
createFeatureType
public org.opengis.feature.type.FeatureType createFeatureType(org.opengis.feature.type.Name name,
java.util.Collection schema,
org.opengis.feature.type.GeometryDescriptor defaultGeometry,
boolean isAbstract,
java.util.List restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
- Specified by:
createFeatureType
in interface org.opengis.feature.type.FeatureTypeFactory
createSimpleFeatureType
public org.opengis.feature.simple.SimpleFeatureType createSimpleFeatureType(org.opengis.feature.type.Name name,
java.util.List<org.opengis.feature.type.AttributeDescriptor> schema,
org.opengis.feature.type.GeometryDescriptor defaultGeometry,
boolean isAbstract,
java.util.List<org.opengis.filter.Filter> restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
- Specified by:
createSimpleFeatureType
in interface org.opengis.feature.type.FeatureTypeFactory
Copyright © 1996-2010 Geotools. All Rights Reserved.