|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All validators directly or indirectly should implement the following interface and it is used by Summary to call methods on them.
Field Summary | |
static java.lang.String |
ENCODED_SEPERATOR
string denoting the hidden field's encoded seperator |
static java.lang.String |
SEPERATOR
string denoting the "read" seperator for reading the parameter from the request and translating it back into a Validatable object |
Method Summary | |
Validatable |
decodeHiddenField(java.lang.String stringToDecode)
given the String of writtenHiddenField(), this method must know how to reconstruct an object from the string. |
java.lang.String |
getErrorMessage()
|
java.lang.String |
getFieldToValidate()
|
boolean |
isValid()
returns whether the validation was successful |
void |
setIsValid(boolean b)
set whether the particular validator was successful or not |
boolean |
validate(javax.servlet.ServletRequest req)
validate method where all the logic for validation lies. |
java.lang.String |
writeHiddenField()
write a hidden input type e.g. |
Field Detail |
public static final java.lang.String ENCODED_SEPERATOR
public static final java.lang.String SEPERATOR
Method Detail |
public void setIsValid(boolean b)
public boolean isValid()
public boolean validate(javax.servlet.ServletRequest req) throws java.lang.Exception
public java.lang.String getFieldToValidate()
public java.lang.String getErrorMessage()
public java.lang.String writeHiddenField()
public Validatable decodeHiddenField(java.lang.String stringToDecode) throws java.lang.Exception
string
- to decode
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |