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

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

public class MinimumValueCompositeValidator

The MinimumValueCompositeValidator is a TransformationBean™ that generates the appropriate HTML 4.0 and JavaScript for creating a minimum value composite validator. A MinimumValueCompositeValidator is a validator that validates (1) the value is present, (2) that the value is numeric, and (3) that the value is not less than the minimum 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
MinimumValueCompositeValidator()
          Construct a new MinimumValueCompositeValidator Transformation Bean The default min value is 0.
MinimumValueCompositeValidator(int min)
          Constructs a new MinimumValueCompositeValidator Transformation Bean
 
Method Summary
 int getMinValue()
          Returns the minumum value set.
 void setMinValue(int min)
          Sets the minimum 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

MinimumValueCompositeValidator

public MinimumValueCompositeValidator()
Construct a new MinimumValueCompositeValidator Transformation Bean The default min value is 0.


MinimumValueCompositeValidator

public MinimumValueCompositeValidator(int min)
Constructs a new MinimumValueCompositeValidator Transformation Bean

Parameters:
min - The minimum value
Method Detail

setMinValue

public void setMinValue(int min)
Sets the minimum value to use.

Parameters:
min - the minimum value to use.

getMinValue

public int getMinValue()
Returns the minumum value set.

Returns:
the minimum value.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.