org.axiondb.types
public abstract class BaseNumberDataType extends BaseDataType
Version: $Revision: 1.9 $ $Date: 2005/05/02 22:29:40 $
| Constructor Summary | |
|---|---|
| BaseNumberDataType() | |
| Method Summary | |
|---|---|
| boolean | accepts(Object value) |
| Object | convert(Object value)
Returns value if value is null and throws
IllegalArgumentExceptionotherwise. |
| boolean | supportsSuccessor() This base implementation returns true. |
| protected Number | toNumber(Object value) |
null and throws
IllegalArgumentExceptionotherwise. Subclasses should override this method
and call super.convert(value) as their last case.
Throws: AxionException
true.