org.apache.cocoon.acting
Class ValidatorActionResult

java.lang.Object
  extended by org.apache.cocoon.util.EnumerationFactory
      extended by org.apache.cocoon.acting.ValidatorActionResult

public class ValidatorActionResult
extends EnumerationFactory

A number of constants to represent the possible outcomes of a validation.

Version:
CVS $Id: ValidatorActionResult.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Christian Haul

Field Summary
static ValidatorActionResult ERROR
          some error occurred, this is a result that is never set but serves as a comparison target.
static ValidatorActionResult ISNULL
          the parameter is null but isn't allowed to.
static ValidatorActionResult MAXERROR
          maximum error, only used for comparisons.
static ValidatorActionResult NOMATCH
          a string parameter's value is not matched by the specified regular expression.
static ValidatorActionResult NOTPRESENT
          this is returned when the result of a validation is requested but no such result is found in the request attribute.
static ValidatorActionResult OK
          no error occurred, parameter successfully checked.
static ValidatorActionResult TOOLARGE
          either value or length in case of a string is greater than the specified maximum.
static ValidatorActionResult TOOSMALL
          either value or length in case of a string is less than the specified minimum.
 
Method Summary
 
Methods inherited from class org.apache.cocoon.util.EnumerationFactory
ge, getFirst, getLast, getNext, getObject, getPos, getPrev, getVal, gt, le, lt, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OK

public static final ValidatorActionResult OK
no error occurred, parameter successfully checked.


NOTPRESENT

public static final ValidatorActionResult NOTPRESENT
this is returned when the result of a validation is requested but no such result is found in the request attribute.


ERROR

public static final ValidatorActionResult ERROR
some error occurred, this is a result that is never set but serves as a comparison target.


ISNULL

public static final ValidatorActionResult ISNULL
the parameter is null but isn't allowed to.


TOOSMALL

public static final ValidatorActionResult TOOSMALL
either value or length in case of a string is less than the specified minimum.


TOOLARGE

public static final ValidatorActionResult TOOLARGE
either value or length in case of a string is greater than the specified maximum.


NOMATCH

public static final ValidatorActionResult NOMATCH
a string parameter's value is not matched by the specified regular expression.


MAXERROR

public static final ValidatorActionResult MAXERROR
maximum error, only used for comparisons.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.