public class NonDecimalChecker extends LengthChecker implements NumericTypeChecker
| Constructor and Description |
|---|
NonDecimalChecker() |
| 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, checkMinLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckMaxLength, checkMinLengthpublic Object cast(String value, AttributeStatement attribute) throws InvalidTypeException
TypeCheckercast in interface TypeCheckervalue - which must be castInvalidTypeException - thrown when value can not be castpublic void checkMinValue(Number value, ElementDefinition def, AttributeStatement attribute) throws OutOfRangeException
checkMinValue in interface NumericTypeCheckerOutOfRangeExceptionpublic void checkMaxValue(Number value, ElementDefinition def, AttributeStatement attribute) throws OutOfRangeException
checkMaxValue in interface NumericTypeCheckerOutOfRangeExceptionCopyright © 2019. All rights reserved.