|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.util.validators.MaximumLengthValidator
public class MaximumLengthValidator
The DateStringValidator is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for creating a maximum length validator. A MaximumLengthValidator is a validator that validates the maximum length of an element.
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 | |
---|---|
MaximumLengthValidator()
Constructs a new MaximumLengthValidator Transformation Bean. |
|
MaximumLengthValidator(int max)
Constructs a new MaximumLengthValidator Transformation Bean |
Method Summary | |
---|---|
protected java.lang.String |
getDefaultValidationMessage(TransformationInterface bean)
|
int |
getMaxLength()
Returns the maxumum length set. |
protected java.lang.String |
getValidationParameters(TransformationInterface bean)
|
void |
setMaxLength(int max)
Sets the maximum length to use. |
Methods inherited from class com.sas.servlet.tbeans.util.validators.JavaScriptValidator |
---|
createValidationFunctionCall, getClearErrorsFunctionName, getDescription, getErrorHandlerFunctionName, getValidationFunctionName, setClearErrorsFunctionName, setErrorHandlerFunctionName, setValidationFunctionName |
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 MaximumLengthValidator()
public MaximumLengthValidator(int max)
max
- The maximum length valueMethod Detail |
---|
public void setMaxLength(int max)
max
- the maximum length to use.public int getMaxLength()
protected java.lang.String getDefaultValidationMessage(TransformationInterface bean)
getDefaultValidationMessage
in class JavaScriptValidator
protected java.lang.String getValidationParameters(TransformationInterface bean)
getValidationParameters
in class JavaScriptValidator
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |