| java.lang.Object org.apache.cocoon.acting.ValidatorActionHelper
ValidatorActionHelper | public class ValidatorActionHelper (Code) | | Helper class to pass the result of a validation back along with
the validated object itself.
author: Christian Haul version: CVS $Id: ValidatorActionHelper.java 433543 2006-08-22 06:22:54Z crossley $ |
ValidatorActionHelper | public ValidatorActionHelper(Object validatedObject)(Code) | | Create a ValidatorActionHelper object that contains just the
object. Defaults to OK as validation result.
Parameters: validatedObject - object that has been validated |
ValidatorActionHelper | public ValidatorActionHelper(Object validatedObject, ValidatorActionResult validationResult)(Code) | | Create a ValidatorActionHelper object that contains just the
object. Defaults to OK as validation result.
Parameters: validatedObject - object that has been validated Parameters: validationResult - result of the validation |
doesNotMatch | public boolean doesNotMatch()(Code) | | Tests if the validation result is NOMATCH , can
only occur when
|
getObject | public Object getObject()(Code) | | Returns the tested object.
|
isNotPresent | public boolean isNotPresent()(Code) | | Tests if the validation result is NOTPRESENT ,
e.g. when the value is null and is allowed to be null.
|
isNull | public boolean isNull()(Code) | | Tests if the validation result is ISNULL ,
e.g. when the value is null but is not supposed to be null.
|
isOK | public boolean isOK()(Code) | | Tests if the validation result is OK
|
isTooLarge | public boolean isTooLarge()(Code) | | Tests if the validation result is TOOLARGE ,
e.g. in case of a double or long the value is too large or in
case of a string it is too long.
|
isTooSmall | public boolean isTooSmall()(Code) | | Tests if the validation result is TOOSMALL ,
e.g. in case of a double or long the value is too small or in
case of a string it is too short.
|
|
|