com.ibm.as400.access

Class 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 superclass ValidationListTranslatedData, 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 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 class ValidationListTranslatedData
        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 class ValidationListTranslatedData
        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 class ValidationListTranslatedData
        Returns:
        int