com.niggle.data.metadata
Class NumericalField
java.lang.Object
|
+--com.niggle.data.metadata.Field
|
+--com.niggle.data.metadata.NumericalField
- All Implemented Interfaces:
- FieldDescriptor, java.io.Serializable
- public class NumericalField
- extends Field
A descriptor for a field that holds a single numerical value.
- Author:
- Jonathan Revusky
- See Also:
- Serialized Form
Method Summary |
void |
checkValidValue(Record rec,
java.lang.Object value)
Note that the min-max interval is [min, max)
following python range semantics. |
java.lang.Class |
getJavaType()
The kind of java object that can live
in this record field. |
java.lang.Object |
getObjectFromString(Record rec,
java.lang.String s)
Given the string representation of a field,
return its internal java object representation. |
void |
init(org.w3c.dom.Element element)
|
Methods inherited from class com.niggle.data.metadata.Field |
capitalizeFirstLetter, defaultValue, getCopy, getLocalizedName, getName, getSQLType, hashCode, isFieldOf, isRequired, normalize, processDefaultValue, setDefaultValue, toString, valueToString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
NumericalField
public NumericalField()
init
public void init(org.w3c.dom.Element element)
throws org.xml.sax.SAXException
- Overrides:
init
in class Field
getJavaType
public java.lang.Class getJavaType()
- Description copied from interface:
FieldDescriptor
- The kind of java object that can live
in this record field.
- Overrides:
getJavaType
in class Field
getObjectFromString
public java.lang.Object getObjectFromString(Record rec,
java.lang.String s)
throws java.io.IOException
- Description copied from interface:
FieldDescriptor
- Given the string representation of a field,
return its internal java object representation.
Used in deserializing from a flat file.
checkValidValue
public void checkValidValue(Record rec,
java.lang.Object value)
throws java.io.IOException
- Note that the min-max interval is [min, max)
following python range semantics.
- Overrides:
checkValidValue
in class Field
- Following copied from interface:
com.niggle.data.FieldDescriptor
- Throws:
java.io.IOException
- Description of Exception