Package org.geotools.feature
Class GeometryAttributeImpl
Object
PropertyImpl
AttributeImpl
GeometryAttributeImpl
- All Implemented Interfaces:
Attribute
,GeometryAttribute
,Property
TODO: rename to GeometricAttribute Provides ...TODO summary sentence
TODO Description
Example Use:
GeometryAttributeType x = new GeometryAttributeType( ... );
TODO code example
- Since:
- 0.3 TODO: test wkt geometry parse.
- Author:
- Leprosy
-
Field Summary
FieldsFields inherited from class AttributeImpl
id
Fields inherited from class PropertyImpl
descriptor, value
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryAttributeImpl
(Object content, GeometryDescriptor descriptor, Identifier id) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override of equals.Returns the non null envelope of this attribute.ThePropertyDscriptor
of the property, null if this is a top-level value.getType()
The type of the property.getValue()
The value or content of the property.int
hashCode()
Override of hashCode.void
setBounds
(BoundingBox bbox) Set the bounds for the contained geometry.void
Override of setValue to convert the newValue to specified type if need be.void
toString()
Methods inherited from class AttributeImpl
getIdentifier, parse, validate
Methods inherited from class PropertyImpl
getName, getUserData, getUserData, isNillable
Methods inherited from interface Attribute
getIdentifier, validate
Methods inherited from interface Property
getName, getUserData, hasUserData, isNillable
-
Field Details
-
bounds
bounds, derived
-
-
Constructor Details
-
GeometryAttributeImpl
-
-
Method Details
-
getType
Description copied from interface:Property
The type of the property.The type contains information about the value or content of the property such as its java class.
This value is also available via
getDescriptor().getType()
.- Specified by:
getType
in interfaceAttribute
- Specified by:
getType
in interfaceGeometryAttribute
- Specified by:
getType
in interfaceProperty
- Overrides:
getType
in classAttributeImpl
- Returns:
- The property type.
- See Also:
-
getDescriptor
Description copied from interface:Property
ThePropertyDscriptor
of the property, null if this is a top-level value.The descriptor provides information about the property with respect to its containing entity (more often then not a
Feature
orComplexAttribute
.- Specified by:
getDescriptor
in interfaceAttribute
- Specified by:
getDescriptor
in interfaceGeometryAttribute
- Specified by:
getDescriptor
in interfaceProperty
- Overrides:
getDescriptor
in classAttributeImpl
- Returns:
- The property descriptor, null if this is a top-level value.
- See Also:
-
getValue
Description copied from interface:Property
The value or content of the property.The class of this object is defined by
getType().getBinding()
.This value may be
null
. In this casegetDescriptor().isNillable()
would betrue
.- Specified by:
getValue
in interfaceProperty
- Overrides:
getValue
in classPropertyImpl
- Returns:
- The value of the property.
-
setValue
Description copied from class:AttributeImpl
Override of setValue to convert the newValue to specified type if need be.- Specified by:
setValue
in interfaceProperty
- Overrides:
setValue
in classAttributeImpl
- Parameters:
newValue
- The new value of the property.- Throws:
IllegalArgumentException
IllegalStateException
-
setValue
-
setBounds
Set the bounds for the contained geometry.- Specified by:
setBounds
in interfaceGeometryAttribute
- Parameters:
bbox
- The bounds of the attribute.
-
getBounds
Returns the non null envelope of this attribute. If the attribute's geometry isnull
the returned EnvelopeisNull()
is true.- Specified by:
getBounds
in interfaceGeometryAttribute
- Returns:
- The bounds of the underlying geometry, possibly empty.
-
equals
Description copied from class:AttributeImpl
Override of equals.- Overrides:
equals
in classAttributeImpl
- 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:AttributeImpl
Override of hashCode.- Overrides:
hashCode
in classAttributeImpl
- Returns:
- hashCode for this object.
-
toString
- Overrides:
toString
in classAttributeImpl
-