|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogicx.jsp.tags.validators.CustomizableAdapter
public abstract class CustomizableAdapter
class provides the default base implementation of the Customizable interface, users can extend this class and override beaviour
Field Summary | |
---|---|
protected String |
errorMessage
|
protected String |
expression
|
protected String |
fieldToValidate
|
Constructor Summary | |
---|---|
CustomizableAdapter()
|
Method Summary | |
---|---|
static String |
attributeDequote(String attr)
|
boolean |
equals(Object o)
|
String |
getErrorMessage()
|
String |
getExpression()
|
String |
getFieldToValidate()
|
void |
setErrorMessage(String error)
error message being shown to the user. |
void |
setExpression(String exp)
customExpression which may be used by the implementor for use in the validate method |
void |
setFieldToValidate(String control)
field being validated |
abstract boolean |
validate(ServletRequest request)
users may use this method to validate the value of the parameter in the request for eg: the parameter value must contain NYC or it must not contain XYZ or they may even validate it against the custom expression set optionally. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String fieldToValidate
protected String errorMessage
protected String expression
Constructor Detail |
---|
public CustomizableAdapter()
Method Detail |
---|
public void setFieldToValidate(String control)
Customizable
setFieldToValidate
in interface Customizable
public void setErrorMessage(String error)
Customizable
setErrorMessage
in interface Customizable
public void setExpression(String exp)
setExpression
in interface Customizable
public String getExpression()
public String getFieldToValidate()
public String getErrorMessage()
public abstract boolean validate(ServletRequest request) throws Exception
validate
in interface Customizable
request
- : received
Exception
public boolean equals(Object o)
equals
in class Object
public static String attributeDequote(String attr)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |