public class GeometryAttributeImpl extends AttributeImpl implements GeometryAttribute
TODO Description
Example Use:
GeometryAttributeType x = new GeometryAttributeType( ... );
TODO code example
| Modifier and Type | Field and Description |
|---|---|
protected BoundingBox |
bounds
bounds, derived
|
iddescriptor, userData, value| Constructor and Description |
|---|
GeometryAttributeImpl(Object content,
GeometryDescriptor descriptor,
Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Override of equals.
|
BoundingBox |
getBounds()
Returns the non null envelope of this attribute.
|
GeometryDescriptor |
getDescriptor()
The
PropertyDscriptor of the property, null if this is a top-level value. |
GeometryType |
getType()
The type of the property.
|
Geometry |
getValue()
Deprecated.
|
int |
hashCode()
Override of hashCode.
|
void |
setBounds(BoundingBox bbox)
Set the bounds for the contained geometry.
|
void |
setValue(Geometry geometry)
Deprecated.
|
void |
setValue(Object newValue)
Override of setValue to convert the newValue to specified type if need be.
|
String |
toString() |
getIdentifier, parse, validategetName, getUserData, isNillablegetIdentifier, validategetName, getUserData, isNillableprotected BoundingBox bounds
public GeometryAttributeImpl(Object content, GeometryDescriptor descriptor, Identifier id)
public GeometryType getType()
PropertyThe type contains information about the value or content of the property such as its java class.
This value is also available via getDescriptor().getType().
getType in interface AttributegetType in interface GeometryAttributegetType in interface PropertygetType in class AttributeImplProperty.getType()public GeometryDescriptor getDescriptor()
PropertyPropertyDscriptor 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 or ComplexAttribute.
getDescriptor in interface AttributegetDescriptor in interface GeometryAttributegetDescriptor in interface PropertygetDescriptor in class AttributeImplComplexAttributepublic Geometry getValue()
PropertyThe class of this object is defined by getType().getBinding().
This value may be null. In this case getDescriptor().isNillable()
would be true.
getValue in interface PropertygetValue in class PropertyImplpublic void setValue(Object newValue) throws IllegalArgumentException, IllegalStateException
AttributeImplsetValue in interface PropertysetValue in class AttributeImplnewValue - The new value of the property.IllegalArgumentExceptionIllegalStateExceptionpublic void setValue(Geometry geometry)
public void setBounds(BoundingBox bbox)
setBounds in interface GeometryAttributebbox - The bounds of the attribute.public BoundingBox getBounds()
null
the returned Envelope isNull() is true.getBounds in interface GeometryAttributepublic boolean equals(Object o)
AttributeImplequals in class AttributeImplpublic int hashCode()
AttributeImplhashCode in class AttributeImplpublic String toString()
toString in class AttributeImplCopyright © 1996–2019 Geotools. All rights reserved.