public abstract class

ValidationEditorSupport

extends PropertyEditorSupport
java.lang.Object
   ↳ java.beans.PropertyEditorSupport
     ↳ webwork.action.ValidationEditorSupport
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This is a useful base class for JavaBeans property editors whose main purpose is to provide validation of form input parameters.

Overriding setAsText is sufficient. Do whatever validation you need and throw IllegalArgumentException if something is wrong. If all is ok then set the protected attribute "value" to the converted value (may be a string).
See Also

Summary

Fields
protected Object value
Public Constructors
ValidationEditorSupport()
Public Methods
String getAsText()
String getAsText(Object val)
This method is specified in the FastPropertyEditor interface and it is implemented here for convenience
Object getValue()
abstract void setAsText(String txt)
void setValue(Object val)
[Expand]
Inherited Methods
From class java.beans.PropertyEditorSupport
From class java.lang.Object
From interface java.beans.PropertyEditor

Fields

protected Object value

Public Constructors

public ValidationEditorSupport ()

Public Methods

public String getAsText ()

public String getAsText (Object val)

This method is specified in the FastPropertyEditor interface and it is implemented here for convenience

public Object getValue ()

public abstract void setAsText (String txt)

public void setValue (Object val)