|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.dict.type.LengthChecker
gov.nasa.pds.tools.dict.type.IntegerChecker
public class IntegerChecker
Constructor Summary | |
---|---|
IntegerChecker()
|
Method Summary | |
---|---|
java.lang.Object |
cast(java.lang.String value,
AttributeStatement attribute)
Tries to cast the value to the appropriate type and return the value |
void |
checkMaxValue(java.lang.Number value,
ElementDefinition def,
AttributeStatement attribute)
|
void |
checkMinValue(java.lang.Number value,
ElementDefinition def,
AttributeStatement attribute)
|
Methods inherited from class gov.nasa.pds.tools.dict.type.LengthChecker |
---|
checkMaxLength, checkMinLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nasa.pds.tools.dict.type.TypeChecker |
---|
checkMaxLength, checkMinLength |
Constructor Detail |
---|
public IntegerChecker()
Method Detail |
---|
public java.lang.Object cast(java.lang.String value, AttributeStatement attribute) throws InvalidTypeException
TypeChecker
cast
in interface TypeChecker
value
- which must be cast
InvalidTypeException
- thrown when value can not be castpublic void checkMinValue(java.lang.Number value, ElementDefinition def, AttributeStatement attribute) throws OutOfRangeException
checkMinValue
in interface NumericTypeChecker
OutOfRangeException
public void checkMaxValue(java.lang.Number value, ElementDefinition def, AttributeStatement attribute) throws OutOfRangeException
checkMaxValue
in interface NumericTypeChecker
OutOfRangeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |