/**
 * ArrayOfItemVariableData.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.7.4  Built on : Oct 21, 2016 (10:48:01 BST)
 */
package com.smartgwt.sample.server;

import java.util.Arrays;

public class ArrayOfItemVariableData {
	
    protected ItemVariableData[] localItemVariableData;

   
    protected boolean localItemVariableDataTracker = false;

    public boolean isItemVariableDataSpecified() {
        return localItemVariableDataTracker;
    }

    public ItemVariableData[] getItemVariableData() {
        return localItemVariableData;
    }

   
    protected void validateItemVariableData(
       ItemVariableData[] param) {
    }

   
    public void setItemVariableData(
       ItemVariableData[] param) {
        validateItemVariableData(param);

        localItemVariableDataTracker = true;

        this.localItemVariableData = param;
    }

   
    public void addItemVariableData(
       ItemVariableData param) {
        if (localItemVariableData == null) {
            localItemVariableData = new ItemVariableData[] {
                    
                };
        }

        //update the setting tracker
        localItemVariableDataTracker = true;

        java.util.List list = Arrays.asList(localItemVariableData);
        list.add(param);
        this.localItemVariableData = (ItemVariableData[]) list.toArray(new ItemVariableData[list.size()]);
    }
}
