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

com.ebay.sdk.attributes.model.SearchAttribute 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.attributes.model;

import com.ebay.soap.eBLBaseComponents.SearchAttributesType;
import com.ebay.soap.eBLBaseComponents.ValType;

/**
 *
 * 

Title: AttributesLib for Java

*

Description:

*

Copyright: Copyright (c) 2004

*

Company: eBay Inc.

* @author Weijun Li * @version 1.0 */ public class SearchAttribute extends SearchAttributesType { /** * */ public SearchAttribute() { } /** * Adds to value list of the attribute. * @param val Value */ public void addValue(Value val) { ValType[] vals = this.getValueList(); ValType[] newVals = new ValType[((vals == null) ? 0 : vals.length) + 1]; int i = 0; if( vals != null ) { for (i = 0; i < vals.length; i++) { newVals[i] = vals[i]; } } newVals[i] = val; this.setValueList(newVals); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy