com.ibm.as400.access
Class ValidationListAttributeData

java.lang.Object
  extended by com.ibm.as400.access.ValidationListTranslatedData
      extended by 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 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 Summary
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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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