|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.util.validators.MaximumValueValidator
public class MaximumValueValidator
The MaximumValueValidator is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for creating a maximum value validator. A MaximumValueValidator is a validator that validates that the value does not exceed the maximum value specified.
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 | |
---|---|
static java.lang.String |
FLOAT
|
static java.lang.String |
INTEGER
|
protected java.lang.String |
type
Flag to determine whether to validate integers or floats. |
Fields inherited from class com.sas.util.validators.Validator |
---|
message, messages, msgObject |
Constructor Summary | |
---|---|
MaximumValueValidator()
Constructs a new MaximumValueValidator Transformation Bean. |
|
MaximumValueValidator(int max)
Constructs a new MaximumValueValidator Transformation Bean |
Method Summary | |
---|---|
protected java.lang.String |
getDefaultValidationMessage(TransformationInterface bean)
|
int |
getMaxValue()
Returns the maxumum value set. |
protected java.lang.String |
getValidationParameters(TransformationInterface bean)
|
void |
setMaxValue(int max)
Sets the maximum value 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 |
Field Detail |
---|
public static final java.lang.String INTEGER
public static final java.lang.String FLOAT
protected java.lang.String type
Constructor Detail |
---|
public MaximumValueValidator()
public MaximumValueValidator(int max)
max
- The maximum valueMethod Detail |
---|
public void setMaxValue(int max)
max
- the maximum value to use.public int getMaxValue()
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 |