|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogicx.jsp.tags.validators.ValidatableAdapter
Field Summary | |
protected String |
errorMessage
|
protected String |
fieldToValidate
|
protected boolean |
isValid
|
Fields inherited from interface weblogicx.jsp.tags.validators.Validatable |
ENCODED_SEPERATOR, SEPERATOR |
Constructor Summary | |
ValidatableAdapter()
|
Method Summary | |
Validatable |
decodeHiddenField(String stToDecode)
|
Hashtable |
defaultDecodeHiddenField(String value)
|
String |
defaultWriteHiddenField(Hashtable ht)
|
String |
getErrorMessage()
|
String |
getFieldToValidate()
|
boolean |
isValid()
returns whether the validation was successful |
void |
setErrorMessage(String error)
|
void |
setFieldToValidate(String f)
|
void |
setIsValid(boolean bo)
set whether the particular validator was successful or not |
abstract boolean |
validate(ServletRequest request)
abstract class to be implemented |
String |
writeHiddenField()
write a hidden input type e.g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String errorMessage
protected String fieldToValidate
protected boolean isValid
Constructor Detail |
public ValidatableAdapter()
Method Detail |
public Validatable decodeHiddenField(String stToDecode) throws Exception
Validatable
decodeHiddenField
in interface Validatable
Exception
public Hashtable defaultDecodeHiddenField(String value)
public String defaultWriteHiddenField(Hashtable ht)
ht
- containing all the names and values other than
errorMessage and fieldToValidate.public String getErrorMessage()
getErrorMessage
in interface Validatable
public String getFieldToValidate()
getFieldToValidate
in interface Validatable
public boolean isValid()
Validatable
isValid
in interface Validatable
public void setErrorMessage(String error)
public void setFieldToValidate(String f)
public void setIsValid(boolean bo)
Validatable
setIsValid
in interface Validatable
public abstract boolean validate(ServletRequest request) throws Exception
validate
in interface Validatable
Exception
public String writeHiddenField()
Validatable
writeHiddenField
in interface Validatable
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |