|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | 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 String |
ENCODED_SEPERATOR
string denoting the hidden field's encoded seperator |
static 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(String stringToDecode)
given the String of writtenHiddenField(), this method must know how to reconstruct an object from the string. |
String |
getErrorMessage()
|
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(ServletRequest req)
validate method where all the logic for validation lies. |
String |
writeHiddenField()
write a hidden input type e.g. |
Field Detail |
public static final String ENCODED_SEPERATOR
public static final String SEPERATOR
Method Detail |
public Validatable decodeHiddenField(String stringToDecode) throws Exception
Exception
public String getErrorMessage()
public String getFieldToValidate()
public boolean isValid()
public void setIsValid(boolean b)
public boolean validate(ServletRequest req) throws Exception
Exception
public String writeHiddenField()
|
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 |