com.sas.servlet.tbeans.util.validators
Class MaximumValueCompositeValidator

com.sas.servlet.tbeans.util.validators.MaximumValueCompositeValidator
All Implemented Interfaces:
ValidationInterface, java.io.Serializable

public class MaximumValueCompositeValidator

The MaximumValueCompositeValidator is a TransformationBean™ that generates the appropriate HTML 4.0 and JavaScript for creating a maximum value composite validator. A MaximumValueCompositeValidator is a validator that validates (1) the value is present, (2) that the value is numeric, and (3) 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 .

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.util.validators.CompositeValidator
validator1, validator2, validators
 
Fields inherited from class com.sas.util.validators.Validator
message, messages, msgObject, RB_KEY
 
Constructor Summary
MaximumValueCompositeValidator()
          Construct a new MaximumValueCompositeValidator Transformation Bean The default max value is 100.
MaximumValueCompositeValidator(int max)
          Constructs a new MaximumValueCompositeValidator Transformation Bean
 
Method Summary
 int getMaxValue()
          Returns the maxumum value set.
 void setMaxValue(int max)
          Sets the maximum value to use.
 
Methods inherited from class com.sas.util.validators.CompositeValidator
addValidator, getFirstValidator, getSecondValidator, getValidatorAtIndex, getValidators, insertValidatorAtIndex, normalizeValue, removeValidator, removeValidatorAtIndex, setFirstValidator, setSecondValidator, setValidators, validateValue
 
Methods inherited from class com.sas.util.validators.Validator
createValidationMessages, getExtendedBeanInfo, getValidationMessage, getValidationMessageCode, newValidationMessage, setValidationMessage, setValidationMessageCode
 

Constructor Detail

MaximumValueCompositeValidator

public MaximumValueCompositeValidator()
Construct a new MaximumValueCompositeValidator Transformation Bean The default max value is 100.


MaximumValueCompositeValidator

public MaximumValueCompositeValidator(int max)
Constructs a new MaximumValueCompositeValidator Transformation Bean

Parameters:
max - The maximum value
Method Detail

setMaxValue

public void setMaxValue(int max)
Sets the maximum value to use.

Parameters:
max - the maximum value to use.

getMaxValue

public int getMaxValue()
Returns the maxumum value set.

Returns:
the maximum value.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.