|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 12c Release 1 (12.1.1) Part Number E24391-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Validatable
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 |
---|
static final String ENCODED_SEPERATOR
static final String SEPERATOR
Method Detail |
---|
void setIsValid(boolean b)
boolean isValid()
boolean validate(ServletRequest req) throws Exception
Exception
String getFieldToValidate()
String getErrorMessage()
String writeHiddenField()
Validatable decodeHiddenField(String stringToDecode) throws Exception
stringToDecode
- the string to decode
Exception
|
Copyright 1996, 2011, 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. Oracle Fusion Middleware Oracle WebLogic Server API Reference 12c Release 1 (12.1.1) Part Number E24391-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |