Package org.geotools.feature.type
Class FeatureTypeImpl
- Object
-
- PropertyTypeImpl
-
- AttributeTypeImpl
-
- ComplexTypeImpl
-
- FeatureTypeImpl
-
- All Implemented Interfaces:
AttributeType
,ComplexType
,FeatureType
,PropertyType
- Direct Known Subclasses:
SimpleFeatureTypeImpl
,UniqueNameFeatureTypeImpl
public class FeatureTypeImpl extends ComplexTypeImpl implements FeatureType
Base implementation of FeatureType.- Author:
- gabriel
-
-
Field Summary
-
Fields inherited from class AttributeTypeImpl
identified
-
Fields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData
-
-
Constructor Summary
Constructors Constructor Description FeatureTypeImpl(Name name, Collection<PropertyDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Override of equals.CoordinateReferenceSystem
getCoordinateReferenceSystem()
The coordinate reference system of the feature.GeometryDescriptor
getGeometryDescriptor()
Describe the default geometric attribute for this feature.int
hashCode()
Override of hashcode.-
Methods inherited from class ComplexTypeImpl
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline, toString
-
Methods inherited from class AttributeTypeImpl
createDefaultValue, getSuper, isIdentified, parse
-
Methods inherited from class PropertyTypeImpl
getDescription, getName, getRestrictions, getUserData, isAbstract
-
Methods inherited from interface AttributeType
getSuper
-
Methods inherited from interface ComplexType
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline
-
Methods inherited from interface FeatureType
isIdentified
-
Methods inherited from interface PropertyType
getDescription, getName, getRestrictions, getUserData, isAbstract
-
-
-
-
Constructor Detail
-
FeatureTypeImpl
public FeatureTypeImpl(Name name, Collection<PropertyDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
-
-
Method Detail
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:FeatureType
The coordinate reference system of the feature.This value is derived from the default geometry attribute:
((GeometryType)getDefaultGeometry().getType()).getCRS();
This method will return
null
in the case where no default geometric attribute is defined.- Specified by:
getCoordinateReferenceSystem
in interfaceFeatureType
- Returns:
- The coordinate referencing system, or
null
.
-
getGeometryDescriptor
public GeometryDescriptor getGeometryDescriptor()
Description copied from interface:FeatureType
Describe the default geometric attribute for this feature.This method returns
null
in the case where no such attribute exists.- Specified by:
getGeometryDescriptor
in interfaceFeatureType
- Returns:
- The descriptor of the default geometry attribute, or
null
.
-
equals
public boolean equals(Object o)
Description copied from class:AttributeTypeImpl
Override of equals.- Specified by:
equals
in interfacePropertyType
- Overrides:
equals
in classComplexTypeImpl
- Parameters:
o
- the object to be tested for equality.- Returns:
- whether other is equal to this attribute Type.
-
hashCode
public int hashCode()
Description copied from class:AttributeTypeImpl
Override of hashcode.- Specified by:
hashCode
in interfacePropertyType
- Overrides:
hashCode
in classAttributeTypeImpl
- Returns:
- getName().hashCode()
-
-