public class DoubleChecker extends LengthChecker implements NumericTypeChecker
Constructor and Description |
---|
DoubleChecker() |
Modifier and Type | Method and Description |
---|---|
Object |
cast(String value,
AttributeStatement attribute)
Tries to cast the value to the appropriate type and return the value
|
void |
checkMaxValue(Number value,
ElementDefinition def,
AttributeStatement attribute) |
void |
checkMinValue(Number value,
ElementDefinition def,
AttributeStatement attribute) |
checkMaxLength, checkMinLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkMaxLength, checkMinLength
public Object cast(String value, AttributeStatement attribute) throws InvalidTypeException
TypeChecker
cast
in interface TypeChecker
value
- which must be castInvalidTypeException
- thrown when value can not be castpublic void checkMinValue(Number value, ElementDefinition def, AttributeStatement attribute) throws OutOfRangeException
checkMinValue
in interface NumericTypeChecker
OutOfRangeException
public void checkMaxValue(Number value, ElementDefinition def, AttributeStatement attribute) throws OutOfRangeException
checkMaxValue
in interface NumericTypeChecker
OutOfRangeException
Copyright © 2005–2015 Planetary Data System. All rights reserved.