|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.util.validators.IntegerInputValidator
@SASScope(value="ALL") public class IntegerInputValidator
The IntegerInputValidator is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for creating an integerinput validator. An IntegerInputValidator is a validator that validates if a value is an integer.
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 | |
|---|---|
protected int |
base
|
static int |
DECIMAL_BASE
Base used by the javascript function to parseInt the value to validate as a decimal number. |
static int |
GENERIC_BASE
Base used by the javascript function to parseInt the value to validate as a generic number. |
protected static int |
MAX_VALID_BASE
|
protected static int |
MIN_VALID_BASE
|
static java.lang.String |
RB_KEY
Key used to lookup resources in the resource bundle. |
| Fields inherited from class com.sas.util.validators.Validator |
|---|
message, messages, msgObject |
| Constructor Summary | |
|---|---|
IntegerInputValidator()
Constructs a new IntegerInputValidator Transformation Bean. |
|
| Method Summary | |
|---|---|
int |
getBase()
|
protected java.lang.String |
getDefaultValidationMessage(TransformationInterface bean)
|
protected java.lang.String |
getValidationParameters(TransformationInterface bean)
|
void |
setBase(int base)
Sets the base the javascript function will use to parseInt the value to validate. |
| 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 RB_KEY
public static final int GENERIC_BASE
public static final int DECIMAL_BASE
protected static int MIN_VALID_BASE
protected static int MAX_VALID_BASE
protected int base
| Constructor Detail |
|---|
public IntegerInputValidator()
| Method Detail |
|---|
public void setBase(int base)
base - the base the javascript function will use to parseInt the value to validate, valid values are between 2 and 36 included.
java.lang.IllegalArgumentException - if base is not between 2 and 36.public int getBase()
protected java.lang.String getDefaultValidationMessage(TransformationInterface bean)
getDefaultValidationMessage in class JavaScriptValidatorprotected 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 | |||||||||||||