com.ibm.etill.framework.payapi
Class ByteArrayValidationItem
java.lang.Object
|
+--com.ibm.etill.framework.payapi.ParameterValidationItem
|
+--com.ibm.etill.framework.payapi.ByteArrayValidationItem
- All Implemented Interfaces:
- FrameworkReturnCodes, com.ibm.etill.framework.payapi.validation.IParameterValidator, PaymentAPIConstants
- public class ByteArrayValidationItem
- extends ParameterValidationItem
- implements PaymentAPIConstants
The ByteArrayValidationItem object is used to check that a parameter's value
is a valid byte array parameter and insert that parameter and it's value into a
given ParameterTable if the verification passed.
- See Also:
ParameterValidationItem
,
ParameterTable
Constructor Summary |
ByteArrayValidationItem(String parameterName,
short returnCode,
boolean nullValuesAllowed,
Integer maxLength)
Constructor
Initialize this ByteArrayValidationItem with the name of the parameter, the API
failure return code, whether to allow null values, and a maximum lenght parameter. |
ByteArrayValidationItem
public ByteArrayValidationItem(String parameterName,
short returnCode,
boolean nullValuesAllowed,
Integer maxLength)
- Constructor
Initialize this ByteArrayValidationItem with the name of the parameter, the API
failure return code, whether to allow null values, and a maximum lenght parameter.
- Parameters:
parameterName
- name given to identify this parameterreturnCode
- The return code to return in the API response
if parameter fails vaidation.nullValuesAllowed
- true to allow null values; false otherwisemaxLength
- Integer object that represents the maximum
allowable length of the parameter