Package org.geotools.feature.type
Class FeatureTypeImpl
Object
PropertyTypeImpl
AttributeTypeImpl
ComplexTypeImpl
FeatureTypeImpl
- All Implemented Interfaces:
AttributeType,ComplexType,FeatureType,PropertyType
- Direct Known Subclasses:
SimpleFeatureTypeImpl,UniqueNameFeatureTypeImpl
Base implementation of FeatureType.
- Author:
- gabriel
-
Field Summary
Fields inherited from class AttributeTypeImpl
identifiedFields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData -
Constructor Summary
ConstructorsConstructorDescriptionFeatureTypeImpl(Name name, Collection<PropertyDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description) -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride of equals.The coordinate reference system of the feature.Describe the default geometric attribute for this feature.inthashCode()Override of hashcode.Methods inherited from class ComplexTypeImpl
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline, toStringMethods inherited from class AttributeTypeImpl
createDefaultValue, getSuper, isIdentified, parseMethods inherited from class PropertyTypeImpl
getDescription, getName, getRestrictions, getUserData, isAbstractMethods inherited from interface AttributeType
getSuperMethods inherited from interface ComplexType
getBinding, getDescriptor, getDescriptor, getDescriptors, isInlineMethods inherited from interface FeatureType
isIdentifiedMethods inherited from interface PropertyType
getDescription, getName, getRestrictions, getUserData, isAbstract
-
Constructor Details
-
FeatureTypeImpl
public FeatureTypeImpl(Name name, Collection<PropertyDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
-
-
Method Details
-
getCoordinateReferenceSystem
Description copied from interface:FeatureTypeThe coordinate reference system of the feature.This value is derived from the default geometry attribute:
((GeometryType)getDefaultGeometry().getType()).getCRS();
This method will return
nullin the case where no default geometric attribute is defined.- Specified by:
getCoordinateReferenceSystemin interfaceFeatureType- Returns:
- The coordinate referencing system, or
null.
-
getGeometryDescriptor
Description copied from interface:FeatureTypeDescribe the default geometric attribute for this feature.This method returns
nullin the case where no such attribute exists.- Specified by:
getGeometryDescriptorin interfaceFeatureType- Returns:
- The descriptor of the default geometry attribute, or
null.
-
equals
Description copied from class:AttributeTypeImplOverride of equals.- Specified by:
equalsin interfacePropertyType- Overrides:
equalsin 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:AttributeTypeImplOverride of hashcode.- Specified by:
hashCodein interfacePropertyType- Overrides:
hashCodein classAttributeTypeImpl- Returns:
- getName().hashCode()
-