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
|
id
descriptor, 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, validate
getName, getUserData, isNillable
getIdentifier, validate
getName, getUserData, isNillable
protected BoundingBox bounds
public GeometryAttributeImpl(Object content, GeometryDescriptor descriptor, Identifier id)
public GeometryType getType()
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()
.
getType
in interface Attribute
getType
in interface GeometryAttribute
getType
in interface Property
getType
in class AttributeImpl
Property.getType()
public GeometryDescriptor getDescriptor()
Property
PropertyDscriptor
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 Attribute
getDescriptor
in interface GeometryAttribute
getDescriptor
in interface Property
getDescriptor
in class AttributeImpl
ComplexAttribute
public Geometry getValue()
Property
The 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 Property
getValue
in class PropertyImpl
public void setValue(Object newValue) throws IllegalArgumentException, IllegalStateException
AttributeImpl
setValue
in interface Property
setValue
in class AttributeImpl
newValue
- The new value of the property.IllegalArgumentException
IllegalStateException
public void setValue(Geometry geometry)
public void setBounds(BoundingBox bbox)
setBounds
in interface GeometryAttribute
bbox
- The bounds of the attribute.public BoundingBox getBounds()
null
the returned Envelope isNull()
is true.getBounds
in interface GeometryAttribute
public boolean equals(Object o)
AttributeImpl
equals
in class AttributeImpl
public int hashCode()
AttributeImpl
hashCode
in class AttributeImpl
public String toString()
toString
in class AttributeImpl
Copyright © 1996–2019 Geotools. All rights reserved.