com.arsdigita.cms.ui.authoring
Class NameValidationListener

java.lang.Object
  extended bycom.arsdigita.cms.ui.authoring.NameValidationListener
All Implemented Interfaces:
EventListener, com.arsdigita.bebop.event.ParameterListener

public class NameValidationListener
extends Object
implements com.arsdigita.bebop.event.ParameterListener

Verifies that the parameter is a valid filename, is not null, and contains no reserved characters.

Version:
$Id: //cms/dev/src/com/arsdigita/cms/ui/authoring/NameValidationListener.java#7 $
Author:
Justin Ross <jross@redhat.com>

Field Summary
protected  String label
           
static String versionId
           
 
Constructor Summary
NameValidationListener()
          Constructs a new NameValidationListener.
NameValidationListener(String label)
          Constructs a new NameValidationListener.
 
Method Summary
 void validate(com.arsdigita.bebop.event.ParameterEvent e)
           
 
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

label

protected String label
Constructor Detail

NameValidationListener

public NameValidationListener(String label)
Constructs a new NameValidationListener.

Parameters:
label - the label for the error message

NameValidationListener

public NameValidationListener()
Constructs a new NameValidationListener.

Method Detail

validate

public void validate(com.arsdigita.bebop.event.ParameterEvent e)
Specified by:
validate in interface com.arsdigita.bebop.event.ParameterListener


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