All Downloads are FREE. Search and download functionalities are using the official Maven repository.

contrib.com.ibm.as400.access.ValidationListAttributeData Maven / Gradle / Ivy

There is a newer version: 20.0.7
Show newest version
///////////////////////////////////////////////////////////////////////////////
//                                                                             
// JTOpen (IBM Toolbox for Java - OSS version)                              
//                                                                             
// Filename: ValidationListAttributeData.java
//                                                                             
// The source code contained herein is licensed under the IBM Public License   
// Version 1.0, which has been approved by the Open Source Initiative.         
// Copyright (C) 2001-2010 International Business Machines Corporation and     
// others. All rights reserved.                                                
//                                                                             
///////////////////////////////////////////////////////////////////////////////

package com.ibm.as400.access;

/**
 * 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 ([email protected]), Kingland Systems Corporation
 */
public class ValidationListAttributeData extends ValidationListTranslatedData {

/**
 * Constructs a ValidationListTranslatedData.
 */
public ValidationListAttributeData() {
	super();
}
/**
 * Constructs a ValidationListTranslatedData from a structure stored as IBM i bytes.
 * 

* The offset indicates the starting position of the structure in the * given buffer. * * @param buffer byte[] * @param offset int */ public ValidationListAttributeData(byte[] buffer, int offset) { super(buffer, offset); } /** * Returns the offset of CCSID information in the structure when the receiver * is written to IBM i bytes. * @return int */ protected int getWriteOffsetCcsid() { return 0; } /** * Returns the offset of the length of the translated bytes when the receiver * is written to an IBM i byte structure. * @return int */ protected int getWriteOffsetTByteLength() { return 4; } /** * Returns the offset of the translated bytes when the receiver is written to an * IBM i byte structure. * @return int */ protected int getWriteOffsetTBytes() { return 16; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy