|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.util.validators.JavaScriptValidator
public class JavaScriptValidator
The JavaScriptValidator is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for creating a validator. This is the base validator class which provides a default implementation of the ValidationInterface. Validator also provides a base framework for creating, storing, and overriding Message objects used during the validation.
Note that subclasses of this bean actually provide the markup rendering used in/with Servlet and JavaServer Pages technologies. If you need to add support for a markup language that is not explicitly provided with AppDev Studio, then you must extend this class.
For More Information:
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary |
---|
Fields inherited from class com.sas.util.validators.Validator |
---|
message, messages, msgObject |
Constructor Summary | |
---|---|
JavaScriptValidator()
Construct a new Validator object |
Method Summary | |
---|---|
java.lang.String |
createValidationFunctionCall(TransformationInterface bean)
Returns a String containing the entire Javascript validation function call. |
java.lang.String |
getClearErrorsFunctionName()
Gets the name of the clear errors function. |
protected java.lang.String |
getDefaultValidationMessage(TransformationInterface bean)
|
protected java.lang.String |
getDescription(TransformationInterface bean)
|
java.lang.String |
getErrorHandlerFunctionName()
Gets the name of the error handler function. |
java.lang.String |
getValidationFunctionName()
Gets the name of the validation function. |
protected java.lang.String |
getValidationParameters(TransformationInterface bean)
|
void |
setClearErrorsFunctionName(java.lang.String name)
Sets the name of the clear errors JavaScript function to call to clear all validations that have failed. |
void |
setErrorHandlerFunctionName(java.lang.String name)
Sets the name of the error handler function to call if validation fails. |
void |
setValidationFunctionName(java.lang.String name)
Sets the name of the JavaScript validation function to call for validation if there |
Methods inherited from class com.sas.util.validators.Validator |
---|
createValidationMessages, getExtendedBeanInfo, getValidationMessage, getValidationMessageCode, newValidationMessage, normalizeValue, setValidationMessage, setValidationMessageCode, validateValue |
Methods inherited from interface com.sas.util.validators.ValidationInterface |
---|
getValidationMessage, getValidationMessageCode, normalizeValue, setValidationMessage, validateValue |
Constructor Detail |
---|
public JavaScriptValidator()
Method Detail |
---|
public void setValidationFunctionName(java.lang.String name)
setValidationFunctionName
in interface JavaScriptValidationInterface
name
- The JavaScript validation function namepublic java.lang.String getValidationFunctionName()
getValidationFunctionName
in interface JavaScriptValidationInterface
public void setErrorHandlerFunctionName(java.lang.String name)
setErrorHandlerFunctionName
in interface JavaScriptValidationInterface
name
- The error handler function namepublic java.lang.String getErrorHandlerFunctionName()
getErrorHandlerFunctionName
in interface JavaScriptValidationInterface
public void setClearErrorsFunctionName(java.lang.String name)
setClearErrorsFunctionName
in interface JavaScriptValidationInterface
name
- The clear errors function namepublic java.lang.String getClearErrorsFunctionName()
getClearErrorsFunctionName
in interface JavaScriptValidationInterface
public java.lang.String createValidationFunctionCall(TransformationInterface bean)
createValidationFunctionCall
in interface JavaScriptValidationInterface
bean
- The transformation bean validation has been set on.
protected java.lang.String getDefaultValidationMessage(TransformationInterface bean)
protected java.lang.String getValidationParameters(TransformationInterface bean)
protected java.lang.String getDescription(TransformationInterface bean)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |