com.arsdigita.bebop.parameters
Class StringLengthValidationListener

java.lang.Object
  extended bycom.arsdigita.bebop.parameters.StringLengthValidationListener
All Implemented Interfaces:
EventListener, ParameterListener

public class StringLengthValidationListener
extends Object
implements ParameterListener

Verifies that the string length is less than or equal to the specified value

Version:
$Revision: #9 $ $Author: dennis $ $DateTime: 2004/04/07 16:07:11 $
Author:
Stanislav Freidin

Field Summary
static StringLengthValidationListener FOUR_K
           
static String versionId
           
 
Constructor Summary
StringLengthValidationListener(int maxLength)
           
 
Method Summary
 void validate(ParameterEvent e)
          Performs a validation check on the data objects associated with a specific parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

FOUR_K

public static final StringLengthValidationListener FOUR_K
Constructor Detail

StringLengthValidationListener

public StringLengthValidationListener(int maxLength)
Method Detail

validate

public void validate(ParameterEvent e)
              throws FormProcessException
Description copied from interface: ParameterListener
Performs a validation check on the data objects associated with a specific parameter. Validate should call ParameterData.addError() with a message regarding the nature of the error.

Specified by:
validate in interface ParameterListener
Throws:
FormProcessException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC