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

ebay.apis.shopping.eblbasecomponents.VariationsType Maven / Gradle / Ivy

Go to download

This Java client enables you to use Java to make API calls in the eBay Shopping API, which is an XML API. This maven build is simply the Apache CXF generated client code for the Shopping API WSDL.

The newest version!

package ebay.apis.shopping.eblbasecomponents;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;


/**
 * 
 * 					Variations are multiple similar (but not identical) items in a 
 * 					single fixed-price (or Store Inventory Format) listing. 
 * 					For example, a single listing could contain multiple items of the 
 * 					same brand and model that vary by color and size (like "Blue, Large" and "Black, Medium"). Each variation can have its own quantity and 
 * 					price. For example, a listing could include 10 "Blue, Large" 
 * 					variations and 20 "Black, Medium" variations. 
 * 			
 * 
 * 

Java class for VariationsType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="VariationsType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Variation" type="{urn:ebay:apis:eBLBaseComponents}VariationType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="Pictures" type="{urn:ebay:apis:eBLBaseComponents}PicturesType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="VariationSpecificsSet" type="{urn:ebay:apis:eBLBaseComponents}NameValueListArrayType" minOccurs="0"/>
 *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "VariationsType", propOrder = { "variation", "pictures", "variationSpecificsSet", "any" }) public class VariationsType { @XmlElement(name = "Variation") protected List variation; @XmlElement(name = "Pictures") protected List pictures; @XmlElement(name = "VariationSpecificsSet") protected NameValueListArrayType variationSpecificsSet; @XmlAnyElement(lax = true) protected List any; /** * Gets the value of the variation property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the variation property. * *

* For example, to add a new item, do as follows: *

     *    getVariation().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link VariationType } * * */ public List getVariation() { if (variation == null) { variation = new ArrayList(); } return this.variation; } /** * Gets the value of the pictures property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the pictures property. * *

* For example, to add a new item, do as follows: *

     *    getPictures().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PicturesType } * * */ public List getPictures() { if (pictures == null) { pictures = new ArrayList(); } return this.pictures; } /** * Gets the value of the variationSpecificsSet property. * * @return * possible object is * {@link NameValueListArrayType } * */ public NameValueListArrayType getVariationSpecificsSet() { return variationSpecificsSet; } /** * Sets the value of the variationSpecificsSet property. * * @param value * allowed object is * {@link NameValueListArrayType } * */ public void setVariationSpecificsSet(NameValueListArrayType value) { this.variationSpecificsSet = value; } /** * Gets the value of the any property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the any property. * *

* For example, to add a new item, do as follows: *

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * {@link Element } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } }