|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPropertyImpl
AttributeImpl
GeometryAttributeImpl
public class GeometryAttributeImpl
TODO: rename to GeometricAttribute Provides ...TODO summary sentence
TODO Description
Example Use:
GeometryAttributeType x = new GeometryAttributeType( ... );
TODO code example
Field Summary | |
---|---|
protected BoundingBox |
bounds
bounds, derived |
Fields inherited from class AttributeImpl |
---|
id |
Fields inherited from class PropertyImpl |
---|
descriptor, userData, value |
Constructor Summary | |
---|---|
GeometryAttributeImpl(Object content,
GeometryDescriptor descriptor,
Identifier id)
|
Method Summary | |
---|---|
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()
The value or content of the property. |
int |
hashCode()
Override of hashCode. |
void |
setBounds(BoundingBox bbox)
Set the bounds for the contained geometry. |
void |
setValue(Geometry geometry)
|
void |
setValue(Object newValue)
Override of setValue to convert the newValue to specified type if need be. |
String |
toString()
|
Methods inherited from class AttributeImpl |
---|
getIdentifier, parse, validate |
Methods inherited from class PropertyImpl |
---|
getName, getUserData, isNillable |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Attribute |
---|
getIdentifier, validate |
Methods inherited from interface Property |
---|
getName, getUserData, isNillable |
Field Detail |
---|
protected BoundingBox bounds
Constructor Detail |
---|
public GeometryAttributeImpl(Object content, GeometryDescriptor descriptor, Identifier id)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |