|
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 |
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 Validatable
validate
in class ValidatableAdapter
Exception
public String writeHiddenField()
Validatable
writeHiddenField
in interface Validatable
writeHiddenField
in class ValidatableAdapter
public Validatable decodeHiddenField(String stToDecode) throws Exception
Validatable
decodeHiddenField
in interface Validatable
decodeHiddenField
in class ValidatableAdapter
stToDecode
- the string to decode
Exception
public boolean userExit() throws JspException
ValidatableTagAdapter
userExit
in class ValidatableTagAdapter
JspException
public 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
UnImplementedException
public void release()
release
in class ValidatableTagAdapter
|
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 |