|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeChecker
Method Summary | |
---|---|
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 |
Method Detail |
---|
Object cast(String value, AttributeStatement attribute) throws InvalidTypeException
value
- which must be cast
InvalidTypeException
- thrown when value can not be castvoid checkMinLength(String value, ElementDefinition def, AttributeStatement attribute) throws InvalidLengthException
value
- to be checkeddef
- contains the bound
InvalidLengthException
- thrown when value falls below minimumvoid checkMaxLength(String value, ElementDefinition def, AttributeStatement attribute) throws InvalidLengthException
value
- to be checkeddef
- contains the bound
InvalidLengthException
- thrown when value exceeds maximum
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |