Class GeometryAttributeImpl

  • All Implemented Interfaces:
    Attribute, GeometryAttribute, Property

    public class GeometryAttributeImpl
    extends AttributeImpl
    implements GeometryAttribute
    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 Detail

    • Method Detail

      • getValue

        public Geometry 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 case getDescriptor().isNillable() would be true.

        Specified by:
        getValue in interface Property
        Overrides:
        getValue in class PropertyImpl
        Returns:
        The value of the property.
      • setValue

        public void setValue​(Object newValue)
                      throws IllegalArgumentException,
                             IllegalStateException
        Description copied from class: AttributeImpl
        Override of setValue to convert the newValue to specified type if need be.
        Specified by:
        setValue in interface Property
        Overrides:
        setValue in class AttributeImpl
        Parameters:
        newValue - The new value of the property.
        Throws:
        IllegalArgumentException
        IllegalStateException
      • setValue

        public void setValue​(Geometry geometry)
      • setBounds

        public void setBounds​(BoundingBox bbox)
        Set the bounds for the contained geometry.
        Specified by:
        setBounds in interface GeometryAttribute
        Parameters:
        bbox - The bounds of the attribute.
      • getBounds

        public BoundingBox getBounds()
        Returns the non null envelope of this attribute. If the attribute's geometry is null the returned Envelope isNull() is true.
        Specified by:
        getBounds in interface GeometryAttribute
        Returns:
        The bounds of the underlying geometry, possibly empty.
      • equals

        public boolean equals​(Object o)
        Description copied from class: AttributeImpl
        Override of equals.
        Overrides:
        equals in class AttributeImpl
        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 class AttributeImpl
        Returns:
        hashCode for this object.