Changes since
the last release

com.ebay.sdk.model
Class Category

java.lang.Object
  extended by com.ebay.soap.eBLBaseComponents.CategoryType
      extended by com.ebay.sdk.model.Category
All Implemented Interfaces:
java.io.Serializable

public class Category
extends CategoryType

Objects that combines CategoryType and CharacteristicSetType.

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ebay.soap.eBLBaseComponents.CategoryType
any, autoPayEnabled, b2BVATEnabled, bestOfferEnabled, catalogEnabled, categoryID, categoryLevel, categoryName, categoryParentID, categoryParentName, characteristicsSets, expired, intlAutosFixedCat, keywords, leafCategory, lsd, numOfItems, orpa, orra, productFinderIDs, productSearchPageAvailable, sellerGuaranteeEligible, virtual
 
Constructor Summary
Category()
          Constructor.
Category(CategoryType fromCat)
          Construct from an existing CategoryType object.
 
Method Summary
 void addCharacteristicsSet(CharacteristicsSetType cs)
          Adds a CharacteristicsSetType for the category.
 CharacteristicsSetType addNewCharacteristicsSet()
          Adds a new CharacteristicsSetType node.
 int addSubCategory(Category subCategory)
          Append a sub category.
 int getID()
          Sets integer category ID.
 Category[] getSubCategories()
          Sets sub categories of the category.
 void setID(int categoryID)
          Sets integer category ID.
 void setSubCategories(Category[] subCategories)
          Gets sub categories of the category.
 
Methods inherited from class com.ebay.soap.eBLBaseComponents.CategoryType
_getAny, _getCategoryParentID, _getCategoryParentName, _getCharacteristicsSets, _getProductFinderIDs, getAny, getAny, getAnyLength, getCategoryID, getCategoryLevel, getCategoryName, getCategoryParentID, getCategoryParentID, getCategoryParentIDLength, getCategoryParentName, getCategoryParentName, getCategoryParentNameLength, getCharacteristicsSets, getCharacteristicsSets, getCharacteristicsSetsLength, getKeywords, getNumOfItems, getProductFinderIDs, getProductFinderIDs, getProductFinderIDsLength, isAutoPayEnabled, isB2BVATEnabled, isBestOfferEnabled, isCatalogEnabled, isExpired, isIntlAutosFixedCat, isLeafCategory, isLSD, isORPA, isORRA, isProductSearchPageAvailable, isSellerGuaranteeEligible, isVirtual, setAny, setAny, setAutoPayEnabled, setB2BVATEnabled, setBestOfferEnabled, setCatalogEnabled, setCategoryID, setCategoryLevel, setCategoryName, setCategoryParentID, setCategoryParentID, setCategoryParentName, setCategoryParentName, setCharacteristicsSets, setCharacteristicsSets, setExpired, setIntlAutosFixedCat, setKeywords, setLeafCategory, setLSD, setNumOfItems, setORPA, setORRA, setProductFinderIDs, setProductFinderIDs, setProductSearchPageAvailable, setSellerGuaranteeEligible, setVirtual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Category

public Category()
Constructor.


Category

public Category(CategoryType fromCat)
Construct from an existing CategoryType object. It will make shallow copy of the existing object.

Parameters:
fromCat - CategoryType
Method Detail

setSubCategories

public void setSubCategories(Category[] subCategories)
Gets sub categories of the category. This field is not always filled in all cases.

Parameters:
subCategories - Category[]

getSubCategories

public Category[] getSubCategories()
Sets sub categories of the category.

Returns:
Category[]

addSubCategory

public int addSubCategory(Category subCategory)
Append a sub category. It automatically creates or expands the sub category array.

Parameters:
subCategory - Category
Returns:
int

addCharacteristicsSet

public void addCharacteristicsSet(CharacteristicsSetType cs)
Adds a CharacteristicsSetType for the category.

Parameters:
cs - CharacteristicsSetType

addNewCharacteristicsSet

public CharacteristicsSetType addNewCharacteristicsSet()
Adds a new CharacteristicsSetType node.

Returns:
CharacteristicsSetType

setID

public void setID(int categoryID)
Sets integer category ID. It actually calls CategoryType.setCategoryID().

Parameters:
categoryID - int

getID

public int getID()
Sets integer category ID. It actually calls CategoryType.getCategoryID().

Returns:
int

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.