com.arsdigita.bebop.parameters
Class URLTokenValidationListener

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

public class URLTokenValidationListener
extends Object
implements ParameterListener

Verifies that the parameter's value is composed of only alpha-numeric, underscore, or hyphen 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
URLTokenValidationListener()
           
URLTokenValidationListener(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

URLTokenValidationListener

public URLTokenValidationListener(String label)

URLTokenValidationListener

public URLTokenValidationListener()
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, hyphens, 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 20 2004:2337 UTC