|
Oracle | ||||||||||
| 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 Customizablepublic void setErrorMessage(String error)
Customizable
setErrorMessage in interface Customizablepublic void setExpression(String exp)
setExpression in interface Customizablepublic String getExpression()
public String getFieldToValidate()
public String getErrorMessage()
public abstract boolean validate(ServletRequest request)
throws Exception
validate in interface Customizablerequest - : received
Exceptionpublic boolean equals(Object o)
equals in class Objectpublic static String attributeDequote(String attr)
|
Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||