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

com.ebay.sdk.helper.InternationalShippingServiceSelector Maven / Gradle / Ivy

There is a newer version: 939.0.0
Show newest version
/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the eBay SDK ../docs directory.
*/

package com.ebay.sdk.helper;

import java.util.ArrayList;
import java.util.Hashtable;

import com.ebay.sdk.helper.ui.ControlTagItem;
import com.ebay.soap.eBLBaseComponents.InternationalShippingServiceOptionsType;
import com.ebay.soap.eBLBaseComponents.ShippingTypeCodeType;

/**
 * A helper class for InternationalShippingService selection.
 */
public class InternationalShippingServiceSelector {
  boolean hasSelection;

  ShippingTypeCodeType shippingType;
  InternationalShippingServiceOptionsType shippingServiceOption;
  InternationalShippingServiceOptionsType selectedShippingServiceOption;
  ControlTagItem[] ctrlShippingServices;
  Hashtable shipToLocationOptions;
  ArrayList selectedShipToLocations = new ArrayList();

  /**
   * Constructor
   * @param shippingType ShippingTypeCodeType
   * @param shippingServiceOption InternationalShippingServiceOptionsType
   * @param shipToLocations Hashtable
   * @param ctrlShippingServices ControlTagItem[]
   */
  public InternationalShippingServiceSelector(ShippingTypeCodeType shippingType,
  InternationalShippingServiceOptionsType shippingServiceOption,
  Hashtable shipToLocations,
  ControlTagItem[] ctrlShippingServices)
  {
    this.shippingType = shippingType;
    this.shippingServiceOption = shippingServiceOption;
    this.shipToLocationOptions = shipToLocations;
    this.ctrlShippingServices = ctrlShippingServices;
  }

  /**
   * Return a list of ControlTagItems of available ShippingServiceOptions.
   * @return ControlTagItem[]
   */
  public ControlTagItem[] getCtrlShippingServices()
  {
    return this.ctrlShippingServices;
  }

  /**
   * Return the selected InternationalShippingServiceOption.
   * @return InternationalShippingServiceOptionsType
   */
  public InternationalShippingServiceOptionsType getSelectedShippingServiceOption()
  {
    return this.selectedShippingServiceOption;
  }

  /**
   * Return the available ShipToLocations.
   * @return ArrayList
   */
  public ArrayList getSelectedShipToLocations()
  {
    return this.selectedShipToLocations;
  }

  /**
   * Return the InternationalShippingServiceOptionsType
   * @return InternationalShippingServiceOptionsType
   */
  public InternationalShippingServiceOptionsType getShippingServiceOption()
  {
    return this.shippingServiceOption;
  }

  /**
   * Return the available ShipToLocations.
   * @return Hashtable
   */
  public Hashtable getShipToLocationOptions()
  {
    return this.shipToLocationOptions;
  }

  /**
   * Return the ShippingType.
   * @return ShippingTypeCodeType
   */
  public ShippingTypeCodeType getShippingType()
  {
    return this.shippingType;
  }

  /**
   * Set the ControlTagItems of available InternationalShippingServiceOptions.
   * @param ctrlShippingServices ControlTagItem[]
   */
  public void setCtrlShippingServices(ControlTagItem[]  ctrlShippingServices)
  {
    this.ctrlShippingServices = ctrlShippingServices;
  }

  /**
   * Set the selected InternationalShippingServiceOption.
   * @param option InternationalShippingServiceOptionsType
   */
  public void setSelectedShippingServiceOption(InternationalShippingServiceOptionsType option)
  {
    this.selectedShippingServiceOption = option;
  }

  /**
   * Set the selected ShipToLocations.
   * @param list ArrayList
   */
  public void setSelectedShipToLocations(ArrayList list)
  {
    this.selectedShipToLocations = list;
  }

  /**
   * Set the InternationalShippingServiceOptionsType
   * @param shippingServiceOption InternationalShippingServiceOptionsType
   */
  public void setShippingServiceOption(InternationalShippingServiceOptionsType  shippingServiceOption)
  {
    this.shippingServiceOption = shippingServiceOption;
  }

  /**
   * Set the available ShipToLocations.
   * @param map Hashtable
   */
  public void setShipToLocationOptions(Hashtable map)
  {
    this.shipToLocationOptions = map;
  }

  /**
   * Set the ShippingType.
   * @param shippingType ShippingTypeCodeType
   */
  public void setShippingType(ShippingTypeCodeType  shippingType)
  {
    this.shippingType = shippingType;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy