public class UniqueNameFeatureTypeFactoryImpl extends FeatureTypeFactoryImpl
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.
GEOT-3354
Constructor and Description |
---|
UniqueNameFeatureTypeFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
FeatureType |
createFeatureType(Name name,
Collection schema,
GeometryDescriptor defaultGeometry,
boolean isAbstract,
List restrictions,
AttributeType superType,
InternationalString description)
Override superclass to return
UniqueNameFeatureTypeImpl instead of FeatureTypeImpl . |
createAssociationDescriptor, createAssociationType, createAttributeDescriptor, createAttributeType, createComplexType, createGeometryDescriptor, createGeometryType, createSchema, createSimpleFeatureType, getCRSFactory, getFilterFactory, setCRSFactory, setFilterFactory
public FeatureType createFeatureType(Name name, Collection schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description)
UniqueNameFeatureTypeImpl
instead of FeatureTypeImpl
.createFeatureType
in interface FeatureTypeFactory
createFeatureType
in class FeatureTypeFactoryImpl
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.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–2019 Geotools. All rights reserved.