|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
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 Validatable
public void setIsValid(boolean bo)
Validatable
setIsValid
in interface Validatable
public String getErrorMessage()
getErrorMessage
in interface Validatable
public String getFieldToValidate()
getFieldToValidate
in interface Validatable
public String writeHiddenField()
Validatable
writeHiddenField
in interface Validatable
public Validatable decodeHiddenField(String stToDecode) throws Exception
Validatable
decodeHiddenField
in interface Validatable
Exception
public abstract boolean validate(ServletRequest request) throws Exception
validate
in interface Validatable
Exception
public 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://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, 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 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |