com.ibm.etill.framework.payapi
Class StringValidationItem

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

public class StringValidationItem
extends ParameterValidationItem
implements PaymentAPIConstants


 
Constructor Summary
StringValidationItem(String parameterName, short returnCode, boolean nullValuesAllowed, int minLength, int maxLength, String encoding)
          Constructor Initialize this StringValidationItem with the name of the parameter, the API failure return code, whether to allow null values, the minimum allowable length, the maximum allowable length and the character-encoding name.
 
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

StringValidationItem

public StringValidationItem(String parameterName,
                            short returnCode,
                            boolean nullValuesAllowed,
                            int minLength,
                            int maxLength,
                            String encoding)
Constructor Initialize this StringValidationItem with the name of the parameter, the API failure return code, whether to allow null values, the minimum allowable length, the maximum allowable length and the character-encoding name.
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 string
maxLength - maximum allowable length of the string
encoding - A character-encoding name