public interface TypeChecker
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 |
checkMaxLength(String value,
ElementDefinition def,
AttributeStatement attribute)
Checks to make sure that the value does not exceed the maximum length
|
void |
checkMinLength(String value,
ElementDefinition def,
AttributeStatement attribute)
Checks to make sure that the value does fall below the minimum length
length
|
Object cast(String value, AttributeStatement attribute) throws InvalidTypeException
value
- which must be castInvalidTypeException
- thrown when value can not be castvoid checkMinLength(String value, ElementDefinition def, AttributeStatement attribute) throws InvalidLengthException
value
- to be checkeddef
- contains the boundInvalidLengthException
- thrown when value falls below minimumvoid checkMaxLength(String value, ElementDefinition def, AttributeStatement attribute) throws InvalidLengthException
value
- to be checkeddef
- contains the boundInvalidLengthException
- thrown when value exceeds maximumCopyright © 2005–2015 Planetary Data System. All rights reserved.