com.ibm.etill.framework.payapi
Class NumericStringValidationItem

java.lang.Object
  |
  +--com.ibm.etill.framework.payapi.ParameterValidationItem
        |
        +--com.ibm.etill.framework.payapi.StringValidationItem
              |
              +--com.ibm.etill.framework.payapi.NumericStringValidationItem
All Implemented Interfaces:
FrameworkReturnCodes, com.ibm.etill.framework.payapi.validation.IParameterValidator, PaymentAPIConstants

public class NumericStringValidationItem
extends StringValidationItem
implements PaymentAPIConstants


 
Constructor Summary
NumericStringValidationItem(String parameterName, short returnCode, boolean nullValuesAllowed, int minLength, int maxLength, Long minValue, Long maxValue)
          Constructor Initialize this NumericStringValidationItem with the name of the parameter, the API failure return code, whether to allow null values, the minimum allowable length, the maximum allowable length, the minimum allowable value and the maximum allowable value.
 
Methods inherited from class com.ibm.etill.framework.payapi.ParameterValidationItem
getAliasKey, validateAndInsert, validateAndInsert, validateAndInsert
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericStringValidationItem

public NumericStringValidationItem(String parameterName,
                                   short returnCode,
                                   boolean nullValuesAllowed,
                                   int minLength,
                                   int maxLength,
                                   Long minValue,
                                   Long maxValue)
Constructor Initialize this NumericStringValidationItem with the name of the parameter, the API failure return code, whether to allow null values, the minimum allowable length, the maximum allowable length, the minimum allowable value and the maximum allowable value.
Parameters:
parameterName - name given to identify this parameter
returnCode - The return code to return in the API response if parameter fails validation.
nullValuesAllowed - true to allow null values; false otherwise
minLength - minimum allowable length of the numeric string
maxLength - maximum allowable length of the numeric string
minValue - represents the minimum allowable value
maxValue - represents the maximum allowable value