Changes since
the last release

com.ebay.sdk.util
Class AttributeHelper

java.lang.Object
  extended by com.ebay.sdk.util.AttributeHelper

public abstract class AttributeHelper
extends Object

Title:

Description:

Copyright: Copyright (c) 2004

Company: eBay Inc.

Version:
1.0
Author:
Weijun Li

Constructor Summary
AttributeHelper()
           
 
Method Summary
static AttributeType findAttribute(AttributeSetType ast, int attributeID)
          Find an attribute by ID.
static int getValueID(AttributeSetType ast, int attributeID)
          Get the first ValueID of an attribute node.
static String getValueLiteral(AttributeSetType ast, int attributeID)
          Get the first ValueLiteral of an attribute node.
static void insertToAttributeSet(AttributeSetType ast, int attributeID, int valueID, String valStr)
          Insert an attribute node to AttributeSetType or update the existing attribute node.
static boolean removeAttribute(AttributeSetType ast, int attributeID)
          Remove an attribute from the AttributeSetType object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeHelper

public AttributeHelper()
Method Detail

findAttribute

public static AttributeType findAttribute(AttributeSetType ast,
                                          int attributeID)
Find an attribute by ID.

Parameters:
ast - AttributeSetType
attributeID - int
Returns:
AttributeType

insertToAttributeSet

public static void insertToAttributeSet(AttributeSetType ast,
                                        int attributeID,
                                        int valueID,
                                        String valStr)
Insert an attribute node to AttributeSetType or update the existing attribute node.

Parameters:
ast - AttributeSetType
attributeID - int
valueID - int
valStr - string

getValueLiteral

public static String getValueLiteral(AttributeSetType ast,
                                     int attributeID)
Get the first ValueLiteral of an attribute node.

Parameters:
ast - AttributeSetType
attributeID - int
Returns:
String

getValueID

public static int getValueID(AttributeSetType ast,
                             int attributeID)
Get the first ValueID of an attribute node.

Parameters:
ast - AttributeSetType
attributeID - int
Returns:
int

removeAttribute

public static boolean removeAttribute(AttributeSetType ast,
                                      int attributeID)
Remove an attribute from the AttributeSetType object.

Parameters:
ast - AttributeSetType
attributeID - int
Returns:
bool True means the attribute has been found and removed.

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.