com.ebay.sdk.attributes.model.SearchAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebaysdkcore939 Show documentation
Show all versions of ebaysdkcore939 Show documentation
Repack of the eBay SDK version 939 for repository use
/*
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);
}
}