|
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.ValidatableAdapter
public abstract class 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)
given the String of writtenHiddenField(), this method must know how to reconstruct an object from the string. |
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 fieldToValidate
protected String errorMessage
protected boolean isValid
| Constructor Detail |
|---|
public ValidatableAdapter()
| Method Detail |
|---|
public boolean isValid()
Validatable
isValid in interface Validatablepublic void setIsValid(boolean bo)
Validatable
setIsValid in interface Validatablepublic String getErrorMessage()
getErrorMessage in interface Validatablepublic String getFieldToValidate()
getFieldToValidate in interface Validatablepublic String writeHiddenField()
Validatable
writeHiddenField in interface Validatable
public Validatable decodeHiddenField(String stToDecode)
throws Exception
Validatable
decodeHiddenField in interface ValidatableException
public abstract boolean validate(ServletRequest request)
throws Exception
validate in interface ValidatableExceptionpublic void setFieldToValidate(String f)
public void setErrorMessage(String error)
public String defaultWriteHiddenField(Hashtable ht)
ht - containing all the names and values other than
errorMessage and fieldToValidate.public Hashtable defaultDecodeHiddenField(String value)
the - string containing the encoded hidden field
|
Documentation is available at http://e-docs.bea.com/wls/docs100 Copyright 2006 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||