| java.lang.Object org.geotools.feature.iso.AttributeImpl
All known Subclasses: org.geotools.feature.iso.attribute.TemporalAttribute, org.geotools.feature.iso.attribute.TextualAttribute, org.geotools.feature.iso.attribute.BoundingBoxAttribute, org.geotools.feature.iso.attribute.GeometricAttribute, org.geotools.feature.iso.attribute.NumericAttribute, org.geotools.feature.iso.attribute.BooleanAttribute,
AttributeImpl | public class AttributeImpl implements Attribute(Code) | | Simple, mutable class to store attributes.
author: Rob Hranac, VFNY author: Chris Holmes, TOPP author: Ian Schneider author: Jody Garnett author: Gabriel Roldan version: $Id: AttributeImpl.java 28577 2008-01-03 15:44:29Z groldan $ |
DESCRIPTOR | protected AttributeDescriptor DESCRIPTOR(Code) | | |
TYPE | final protected AttributeType TYPE(Code) | | |
AttributeImpl | public AttributeImpl(Object content, AttributeDescriptor descriptor, String id)(Code) | | |
descriptor | public PropertyDescriptor descriptor()(Code) | | |
equals | public boolean equals(Object other)(Code) | | Override of equals.
Parameters: other - the object to be tested for equality. whether other is equal to this attribute Type. |
getDescriptor | public AttributeDescriptor getDescriptor()(Code) | | |
getType | public AttributeType getType()(Code) | | |
hashCode | public int hashCode()(Code) | | Override of hashCode.
hashCode for this object. |
nillable | public boolean nillable()(Code) | | |
parse | protected Object parse(Object value) throws IllegalArgumentException(Code) | | Allows this Attribute to convert an argument to its prefered storage
type. If no parsing is possible, returns the original value. If a parse
is attempted, yet fails (i.e. a poor decimal format) throw the Exception.
This is mostly for use internally in Features, but implementors should
simply follow the rules to be safe.
Parameters: value - the object to attempt parsing of. value converted to the preferred storage of thisAttributeType . If no parsing was possible thenthe same object is returned. throws: IllegalArgumentException - if parsing is attempted and is unsuccessful. |
|
|