|
Changes since the last release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebay.sdk.attributes.AttributesMaster
public class AttributesMaster
The core implementation of interface IAttributesMaster.
View UML diagram of the class.
Title: AttributesLib for Java
Description:
Copyright: Copyright (c) 2004-2008
Company: eBay Inc.
| Constructor Summary | |
|---|---|
AttributesMaster()
Constructor. |
|
| Method Summary | |
|---|---|
ICategoryCSProvider |
getCategoryCSProvider()
Sets the ICategoryCSProvider object. |
AttributeSet[] |
getItemSpecificAttributeSetsForCategories(int[] catIds)
Returns an array of item specific AttributeSet objects for an array category Ids. |
AttributeSet |
getReturnPolicyAttributeSet(AttributeSet[] siteWideAttrSets)
Extracts AttributeSet object for Return Policy from site wide attribute sets |
AttributeSet[] |
getSiteWideAttributeSetsForCategories(int[] catIds)
Returns an array of Site Wide AttributeSet objects for an array category Ids. |
IAttributesXmlProvider |
getXmlProvider()
Sets the IAttributesXmlProvider object. |
IAttributesXslProvider |
getXslProvider()
Sets the IAttributesXslProvider object. |
AttributeSet[] |
joinItemSpecificAndSiteWideAttributeSets(AttributeSet[] itemSpecAttrSets,
AttributeSet[] swAttrSets)
Creates an array of AttributeSet objects which contains item specific attribute sets and site wide attribute sets with the exception of the attribute set for return policy. |
AttributeSet[] |
nameValuesToAttributeSets(Map nameValues)
Parse name value pair list to extract AttributeSet objects. |
String |
renderHtml(AttributeSet[] attrSets,
Document xslDoc,
ErrorSet[] errorList)
Render HTML text by specifying list of AttributeSet and xsl Document |
String |
renderHtml(AttributeSet[] attrSets,
ErrorSet[] errorList)
Render HTML text by specifying list of AttributeSet. |
String |
renderHtmlForPostback(Map nameValues,
ErrorSet[] errorList)
Render HTML text by raw name-value pairs that you got during HTML submit. |
void |
setCategoryCSProvider(ICategoryCSProvider categoryCSProvider)
Gets the ICategoryCSProvider object. |
void |
setXmlProvider(IAttributesXmlProvider attrXmlProvider)
Gets the IAttributesXmlProvider object. |
void |
setXslProvider(IAttributesXslProvider attrXslProvider)
Gets the IAttributesXslProvider object. |
ErrorSet[] |
validate(AttributeSet[] attrSets)
Validate list of AttributeSet objects against eBay Attributes rules. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributesMaster()
| Method Detail |
|---|
public IAttributesXslProvider getXslProvider()
getXslProvider in interface IAttributesMaster
public void setXslProvider(IAttributesXslProvider attrXslProvider)
throws Exception
setXslProvider in interface IAttributesMasterattrXslProvider - IAttributesXslProvider
Exceptionpublic IAttributesXmlProvider getXmlProvider()
getXmlProvider in interface IAttributesMasterpublic void setXmlProvider(IAttributesXmlProvider attrXmlProvider)
setXmlProvider in interface IAttributesMasterxmlProvider - IAttributesXmlProviderpublic ICategoryCSProvider getCategoryCSProvider()
getCategoryCSProvider in interface IAttributesMasterpublic void setCategoryCSProvider(ICategoryCSProvider categoryCSProvider)
setCategoryCSProvider in interface IAttributesMastercategoryCSProvider - ICategoryCSProvider
public AttributeSet[] nameValuesToAttributeSets(Map nameValues)
throws SdkException,
Exception
nameValuesToAttributeSets in interface IAttributesMasternameValues - java.util.Map The parameters map got from query string or post.
SdkException
Exception
public AttributeSet[] getItemSpecificAttributeSetsForCategories(int[] catIds)
throws SdkException,
Exception
getItemSpecificAttributeSetsForCategories in interface IAttributesMastercatIds - int[]
SdkException
Exception
public AttributeSet[] joinItemSpecificAndSiteWideAttributeSets(AttributeSet[] itemSpecAttrSets,
AttributeSet[] swAttrSets)
throws Exception
joinItemSpecificAndSiteWideAttributeSets in interface IAttributesMasteritemSpecAttrSets - AttributeSet[]swAttrSets - AttributeSet[]
ExceptiongetItemSpecificAttributeSetsForCategories(),
getSiteWideAttributeSetsForCategories()
public AttributeSet[] getSiteWideAttributeSetsForCategories(int[] catIds)
throws SdkException,
Exception
getSiteWideAttributeSetsForCategories in interface IAttributesMastercatIds - int[]
SdkException
Exception
public String renderHtml(AttributeSet[] attrSets,
Document xslDoc,
ErrorSet[] errorList)
throws SdkException,
Exception
renderHtml in interface IAttributesMasterattrSets - AttributeSet[] List of AttributeSet objects.xslDoc - DocumenterrorList - ErrorSet[] The list of ErrorSet objects returned by validate method.
SdkException
Exception
public AttributeSet getReturnPolicyAttributeSet(AttributeSet[] siteWideAttrSets)
throws SdkException,
Exception
getReturnPolicyAttributeSet in interface IAttributesMastersiteWideAttrSets - AttributeSet[] array of site wide AttributeSet objects.
SdkException
ExceptiongetSiteWideAttributeSetsForCategories()
public String renderHtml(AttributeSet[] attrSets,
ErrorSet[] errorList)
throws SdkException,
Exception
renderHtml in interface IAttributesMasterattrSets - AttributeSet[] List of AttributeSet objects.errorList - ErrorSet[] The list of ErrorSet objects returned by validate method.
SdkException
Exception
public String renderHtmlForPostback(Map nameValues,
ErrorSet[] errorList)
throws SdkException,
Exception
renderHtmlForPostback in interface IAttributesMasternameValues - java.util.Map List of name-value pairs from submit of
attributes HTML form generated by all these RenderHtml methods.errorList - ErrorSet[] The list of ErrorSet objects returned by validate method.
SdkException
Exception
public ErrorSet[] validate(AttributeSet[] attrSets)
throws SdkException,
Exception
validate in interface IAttributesMasterattrSets - AttributeSet[] The list of AttributeSet object which you want to validate.
SdkException
Exception
|
Changes since the last release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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-2006 eBay Inc. All rights reserved.