com.arsdigita.bebop.parameters
Class KeywordValidationListener

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

public class KeywordValidationListener
extends Object
implements ParameterListener

Verifies that the parameter's value is composed of only alpha-numeric or underscore characters. [a-zA-Z_0-9] Note: An empty string will pass the validation tests.

Version:
$Revision: #8 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih

Field Summary
static String versionId
           
 
Constructor Summary
KeywordValidationListener()
           
KeywordValidationListener(String label)
           
 
Method Summary
 void validate(ParameterEvent event)
          Validates the parameter by checking if the value is a valid keyword.
 
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
Constructor Detail

KeywordValidationListener

public KeywordValidationListener(String label)

KeywordValidationListener

public KeywordValidationListener()
Method Detail

validate

public void validate(ParameterEvent event)
Validates the parameter by checking if the value is a valid keyword. A keyword is defined as any combination of alph-numeric characters, and/or underscores. [a-zA-Z_0-9] Note: An empty string will pass the validation tests.

Specified by:
validate in interface ParameterListener
Parameters:
event - The parameter event


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