org.geotools.feature.type
Class UniqueNameFeatureTypeFactoryImpl

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

public class UniqueNameFeatureTypeFactoryImpl
extends FeatureTypeFactoryImpl

A specialisation of FeatureTypeFactoryImpl that returns UniqueNameFeatureTypeImpl instead of FeatureTypeImpl to avoid equality tests on types with cyclic definitions.

Users of this factory must not use it to create multiple FeatureType instances with the same name unless they represent the same type, because other parts of the implementation will assume they are equal, and if they are not, Bad Things Will Happen.

Author:
Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
See Also:
GEOT-3354

Constructor Summary
UniqueNameFeatureTypeFactoryImpl()
           
 
Method Summary
 FeatureType createFeatureType(Name name, Collection schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description)
          Override superclass to return UniqueNameFeatureTypeImpl instead of FeatureTypeImpl.
 
Methods inherited from class FeatureTypeFactoryImpl
createAssociationDescriptor, createAssociationType, createAttributeDescriptor, createAttributeType, createComplexType, createGeometryDescriptor, createGeometryType, createSchema, createSimpleFeatureType, getCRSFactory, getFilterFactory, setCRSFactory, setFilterFactory
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueNameFeatureTypeFactoryImpl

public UniqueNameFeatureTypeFactoryImpl()
Method Detail

createFeatureType

public FeatureType createFeatureType(Name name,
                                     Collection schema,
                                     GeometryDescriptor defaultGeometry,
                                     boolean isAbstract,
                                     List restrictions,
                                     AttributeType superType,
                                     InternationalString description)
Override superclass to return UniqueNameFeatureTypeImpl instead of FeatureTypeImpl.

Specified by:
createFeatureType in interface FeatureTypeFactory
Overrides:
createFeatureType in class FeatureTypeFactoryImpl
Parameters:
name - The name of the type.
schema - Collection of property descriptors which define the type.
isAbstract - Flag indicating if the type is abstract.
restrictions - Set of restrictions on the attribute.
superType - Parent type.
description - A description of the type.
See Also:
FeatureTypeFactoryImpl.createFeatureType(org.opengis.feature.type.Name, java.util.Collection, org.opengis.feature.type.GeometryDescriptor, boolean, java.util.List, org.opengis.feature.type.AttributeType, org.opengis.util.InternationalString)


Copyright © 1996-2014 Geotools. All Rights Reserved.