org.apache.cocoon.acting
Class ValidatorActionResult

java.lang.Object
  extended byorg.apache.cocoon.util.EnumerationFactory
      extended byorg.apache.cocoon.acting.ValidatorActionResult

public class ValidatorActionResult
extends org.apache.cocoon.util.EnumerationFactory

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

Version:
$Id: ValidatorActionResult.html 1304280 2012-03-23 11:18:01Z ilgrosso $

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.
 
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-2008 The Apache Software Foundation. All Rights Reserved.