| java.lang.Object org.geotools.feature.DefaultAttributeType org.geotools.feature.type.NumericAttributeType
Constructor Summary | |
public | NumericAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, Filter filter) Constructor with name, type and nillable. | public | NumericAttributeType(String name, Class type, boolean nillable, Object defaultValue, Filter filter) |
NumericAttributeType | public NumericAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, Filter filter) throws IllegalArgumentException(Code) | | Constructor with name, type and nillable. Type should always be a
Number class.
Parameters: name - Name of this attribute. Parameters: type - Class type of this attribute. Parameters: nillable - If nulls are allowed for the attribute of this type. Parameters: min - Parameters: max - Parameters: defaultValue - default value when none is suppled Parameters: filter - throws: IllegalArgumentException - is type is not a Number. |
duplicate | public Object duplicate(Object o)(Code) | | Duplicate the given Object. In this case, since Number classes are
immutable, lets return the Object.
Parameters: o - DOCUMENT ME! DOCUMENT ME! |
getRestriction | public Filter getRestriction()(Code) | | |
parse | public Object parse(Object value) throws IllegalArgumentException(Code) | | Allows this AttributeType 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 isunsuccessful. |
|
|