|
Oracle | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogicx.jsp.tags.validators.ValidatableAdapter
weblogicx.jsp.tags.validators.ValidatableTagAdapter
weblogicx.jsp.tags.validators.CustomValidator
public class CustomValidator
Class implements the ValidatableTagAdapter and forms a wrapper around the Customizable classes. A Customizable Class is instantiated and method calls delegated to the particular instance.
| Field Summary |
|---|
| Fields inherited from class weblogicx.jsp.tags.validators.ValidatableTagAdapter |
|---|
bodyContent, pageContext, parent |
| Fields inherited from class weblogicx.jsp.tags.validators.ValidatableAdapter |
|---|
errorMessage, fieldToValidate, isValid |
| Fields inherited from interface weblogicx.jsp.tags.validators.Validatable |
|---|
ENCODED_SEPERATOR, SEPERATOR |
| Constructor Summary | |
|---|---|
CustomValidator()
|
|
| Method Summary | |
|---|---|
Validatable |
decodeHiddenField(String stToDecode)
given the String of writtenHiddenField(), this method must know how to reconstruct an object from the string. |
boolean |
equals(Object o)
|
String |
getExpression()
|
String |
getValidatorClass()
|
void |
instantiateCustomClass(String className)
instantiates the custom class |
void |
release()
|
void |
setExpression(String exp)
|
void |
setValidatorClass(String vclass)
|
boolean |
userExit()
This acts as an User Exit... |
boolean |
validate(ServletRequest req)
abstract class to be implemented |
String |
writeHiddenField()
write a hidden input type e.g. |
| Methods inherited from class weblogicx.jsp.tags.validators.ValidatableTagAdapter |
|---|
doAfterBody, doEndTag, doInitBody, doStartTag, getHiddenField, getParent, setBodyContent, setPageContext, setParent |
| Methods inherited from class weblogicx.jsp.tags.validators.ValidatableAdapter |
|---|
defaultDecodeHiddenField, defaultWriteHiddenField, getErrorMessage, getFieldToValidate, isValid, setErrorMessage, setFieldToValidate, setIsValid |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomValidator()
| Method Detail |
|---|
public void setExpression(String exp)
public void setValidatorClass(String vclass)
public String getExpression()
public String getValidatorClass()
public boolean validate(ServletRequest req)
throws Exception
ValidatableAdapter
validate in interface Validatablevalidate in class ValidatableAdapterExceptionpublic String writeHiddenField()
Validatable
writeHiddenField in interface ValidatablewriteHiddenField in class ValidatableAdapter
public Validatable decodeHiddenField(String stToDecode)
throws Exception
Validatable
decodeHiddenField in interface ValidatabledecodeHiddenField in class ValidatableAdapterException
public boolean userExit()
throws JspException
ValidatableTagAdapter
userExit in class ValidatableTagAdapterJspExceptionpublic boolean equals(Object o)
equals in class Object
public void instantiateCustomClass(String className)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
UnImplementedException
className - to be instantiated
ClassNotFoundException
InstantiationException
IllegalAccessException
UnImplementedExceptionpublic void release()
release in class ValidatableTagAdapter
|
Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, 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. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||