com.ibm.as400.access
Class ValidationListAttributeData
- java.lang.Object
-
- com.ibm.as400.access.ValidationListTranslatedData
-
- com.ibm.as400.access.ValidationListAttributeData
-
public class ValidationListAttributeData extends ValidationListTranslatedData
Represents the value of a validation list attribute. Each validation list entry may contain one or more attributes. For each attribute, there is an associated value. This class models the value. The same information is present as in the superclassValidationListTranslatedData
, but the order and location of the information in the corresponding API structures differ.- Author:
- Thomas Johnson (tom.johnson@kingland.com), Kingland Systems Corporation
-
-
Constructor Summary
Constructors Constructor and Description ValidationListAttributeData()
Constructs a ValidationListTranslatedData.ValidationListAttributeData(byte[] buffer, int offset)
Constructs a ValidationListTranslatedData from a structure stored as IBM i bytes.
-
Method Summary
Methods Modifier and Type Method and Description protected int
getWriteOffsetCcsid()
Returns the offset of CCSID information in the structure when the receiver is written to IBM i bytes.protected int
getWriteOffsetTByteLength()
Returns the offset of the length of the translated bytes when the receiver is written to an IBM i byte structure.protected int
getWriteOffsetTBytes()
Returns the offset of the translated bytes when the receiver is written to an IBM i byte structure.-
Methods inherited from class com.ibm.as400.access.ValidationListTranslatedData
getByteLength, getBytes, getCcsid, getReadOffsetCcsid, getReadOffsetTByteLength, getReadOffsetTBytes, getString, getWriteNullDataLength, isValidCcsid, setBytes, setBytes, setCcsid, toBytes, toBytes
-
-
-
-
Constructor Detail
-
ValidationListAttributeData
public ValidationListAttributeData()
Constructs a ValidationListTranslatedData.
-
ValidationListAttributeData
public ValidationListAttributeData(byte[] buffer, int offset)
Constructs a ValidationListTranslatedData from a structure stored as IBM i bytes.The offset indicates the starting position of the structure in the given buffer.
- Parameters:
buffer
- byte[]offset
- int
-
-
Method Detail
-
getWriteOffsetCcsid
protected int getWriteOffsetCcsid()
Returns the offset of CCSID information in the structure when the receiver is written to IBM i bytes.- Overrides:
getWriteOffsetCcsid
in classValidationListTranslatedData
- Returns:
- int
-
getWriteOffsetTByteLength
protected int getWriteOffsetTByteLength()
Returns the offset of the length of the translated bytes when the receiver is written to an IBM i byte structure.- Overrides:
getWriteOffsetTByteLength
in classValidationListTranslatedData
- Returns:
- int
-
getWriteOffsetTBytes
protected int getWriteOffsetTBytes()
Returns the offset of the translated bytes when the receiver is written to an IBM i byte structure.- Overrides:
getWriteOffsetTBytes
in classValidationListTranslatedData
- Returns:
- int
-
-