| eBay SDK for Java | |
| Attributes & Catalogs > Attribute and Product Finder Content Models > The Product Finder Meta-Data Model | |
| < Back |
The Product Finder Meta-Data Model
Before reading this section, you should be familiar with the basic definitions of attributes, characteristics, and products as described in Working with Attribute-Based Features.
When you use GetProductFinderCall, the product finder meta-data is returned as an XML string in the ProductFinderData field. This enables you to use the Product Finder XSL stylesheet to render the meta-data.
If you are using the Product Finder XSL stylesheet as part of your solution, it may be helpful to focus on these topics of this section:
AttributeList.Attribute Elements
If you are not using the Product Finder XSL stylesheet, it may be useful to examine the PresentationInstruction Elements for hints on how to render the attributes.
Important: eBay strongly recommends that you avoid directly modifying the XML returned from GetProductFinderCall, except where described in Working with the Product Finder XSL Stylesheet. Any other direct changes to the XML document returned from this call are not supported.
ProductFinder Elements
The ProductFinderData XML string contains an
eBay.ProductFindersnode that in turn contains zero or moreProductFindernodes. Table 23-10 describes the nodes that are returned in aProductFindernode.Elements in the Product Finder model can specify XML attributes (not to be confused with item attributes). In the table below, the XML attributes (e.g.,
id) are described in bulleted lists within the "Meaning/Notes" column.
Table 23-10 ProductFinder Content Element Data Type Meaning/Notes Container Contains a list of search criteria and other identifying information associated with a product finder. MultipleProductFinderelements can be returned.
- id (integer): Numeric identifier for the product finder ID. Unique across all sites.
- Mode (string): Indicates the mode in which you can search. Possible values:
Advance = You can input values to perform the searchSimple = Selecting a link performs the search- BuySide (boolean): Possible values:
1 (true) = The product finder can be used as input toGetSearchResultsto search for listings with Item Specifics on the eBay site.0 (false) or not present = The product finder can be used as input toGetProductSearchResultsto search for catalog data (Pre-filled Item Information) that a seller might want to include in a listing. Container Contains the list of attributes that define the choice of search criteria within a characteristic set. At least one attribute is always returned in the list. The order in whichAttributenodes are returned within this node is not significant and may vary for different requests. See AttributeList.Attribute Elements for details about the format of these attributes. Container Contains hints about how to display a product finder in a graphical user interface. The instructions are identified in child elements (see PresentationInstruction Elements).Future versions of the presentation instructions may not be backward compatible. They are included in the API primarily for use with eBay's Product Finder XSL stylesheet to render a product finder. If you are not using the Product Finder XSL and you choose to use the presentation instructions, avoid hard-coding the values in your application because the rules can be subject to change. Check for updates to the meta-data on a daily basis to assure you are in sync with eBay's current version. It is also a good idea to keep a backup of the last version of the meta-data that you downloaded, so that you can revert to the last version if necessary.Note: Different product finders can return different combinations of presentation instructions, including XML attributes. Some presentation instruction elements may include additional XML attributes that are not documented. These are usually specific to one particular product finder and are used internally at eBay. Applications can ignore this internal information. Container Contains a list of attributes that can be used as keys for sorting catalog search results. See SortAttributes Elements for details about the format of these attributes. String The canonical name of the product finder (e.g., "Digital Cameras").
AttributeList.Attribute Elements
The
AttributeListelement contains the list of attributes that define the choice of search criteria within a characteristic set. At least one attribute is always returned in the list.Table 23-11 describes the elements contained in the
AttributeList.Attributenode in the Product Finder XML.
Table 23-11 AttributeList.Attribute Content Element Data Type Meaning/Notes Container Contains the meta-data and values associated with a single searchable attribute. A searchable attribute is a product aspect or feature that can be used as a criterion in a search for catalog content or Item Specifics. For example, "Manufacturer"" might be a criterion for searching a catalog for Pre-filled Item Information related to cell phones. Multiple Attribute nodes can appear within an AttributeList node.
id(integer): Unique identifier for the attribute within the characteristics set associated with this product finder.parentAttrId(integer): Unique identifier for this attribute's parent attribute. Applicable for child attributes in Type 1 (VVC) and Type 2 (VVP) dependencies only. See Characteristic Parent-Child Relationships (Dependencies). Container A container for input fields that are used to render a given attribute. The XSL uses InputFields in combination with PresentationInstruction to draw the input form variables. Container Used by the Product Finder XSL. Indicates the nature of the data being rendered. For example, allows for separate fields to be rendered for a single attribute (while the presentation instructions control how the widgets appear.) Also contains the value to use as the default value (if any).
dataType(string): Specifies the subcomponent of a date. This only applies to date attributes. Allows for separate text fields or drop-down lists to be rendered for each date subcomponent. Possible values:M = MonthD = DayY = Yearid(integer): Unique identifier for the default attribute within the characteristics set associated with this product finder.name(string): In most cases, you should not directly access this data from your application. For text-entry fields, the name XML attribute has a "t" prefix. For all other attributes, the name XML attribute has an "a" prefix. See Parsing the POST Data for additional information.rangeType(string): Indicates that the input field represents the high or low end in a range (e.g., a price range). Allows for separate text fields to be rendered for each subcomponent of the range. Possible values:L = Low end of the rangeH = High end of the range Container Contains the default value to show in the form. (SeeValueListfor all possible values).IfInput.Valueis not specified and the Input.name XML attribute (and/or presentation instruction) indicates that this is a text-entry field, you should assume the value ID is -3 when this attribute is used as input toGetProductSearchResultsorGetSearchResults. For all other values, the value ID is indicated inValue.id. String The human-readable name to display in the input field. String The human-readable label to display when presenting the attribute to a user. Not necessarily the same as the attribute's label as defined in the characteristic set (i.e., the label could be overridden by the catalog). Container Contains a list of one or more valid values that the user can select for the searchable attribute. Container A value that the user can search against.IfValueList.Valueis not specified and the Input.name XML attribute (and/or presentation instruction) indicates that this is a text-entry field, you should assume the value ID is -3 when this attribute is used as input toGetProductSearchResultsorGetSearchResults. For all other values, the value ID is indicated inValue.id. String The human-readable name for the value (e.g., the name of the cell phone model). Max length varies per attribute. Max column size in database is 60.For buy-side product finders, do not use this predefined name as input to GetSearchResultsCall. Instead, pass the numeric value fromValueList.Value.idas input to GetSearchResultsCall (in the ValueID field). Container The value list (if any) to be presented for the specified child attribute (childAttrId) if the specified parent value (parentValueId) is selected. This list is defined within the meta-data of the parent characteristic (see Characteristic Parent-Child Relationships (Dependencies)).
count(integer): The quantity of Value nodes within the list.childAttrId(integer): The ID of the child attribute (e.g., 37 for Event Type 2) whose values this dependency list can affect.parentValueId(integer): The value ID in the parent attribute's ValueList (e.g., 1001 for "Concerts", in the Event Type attribute's value list) which will cause this dependency list to be used.type(integer): The impact on the specified child attribute (childAttrId) if the specified parentValueId is selected. These dependency types have the same meaning as the dependencies defined in the Attributes model. Possible values:1 = Value-to-Value Client (VVC): The child's value list changes via client.2 = Value-to-Value Post (VVP): The child's value list changes via server post.3 = Value-to-Value Selective Post (VVSP): The child's value list changes via client or post.4 = Value-to-Attribute (VA): The child's visibility and listing validity changes.5 = Value-to-Meta (VM): The child's required status changes. Container A value that the user can search against. Container node for theNameelement. String The human-readable name for the dependent attribute's value. Max length varies per attribute. Max column size in database is 60.
PresentationInstruction Elements
The
PresentationInstructionnode provides hints about how to display a product finder in a graphical user interface.Future versions of the presentation instructions may not be backward compatible. They are included in the API primarily for use with the Product Finder XSL stylesheet to render a product finder. If you are not using the Product Finder XSL and you choose to use the presentation instructions, avoid hard-coding the values in your application because the rules can be subject to change. Check for updates to the meta-data on a daily basis to assure you are in sync with eBay's current version. It is also a good idea to keep a backup of the last version of the meta-data that you downloaded, so that you can revert to the last version if necessary.
Please note that different product finders can return different combinations of presentation instructions, including XML attributes. Some presentation instruction elements may include additional XML attributes that are not documented. These are usually specific to one particular product finder and are used internally at eBay. Applications can ignore this internal information.
Table 23-12 describes the elements contained in the
PresentationInstructionnode in the Product Finder XML.
SortAttributes Elements
A sort attribute is a product aspect or feature that can be used as a sort key when you search for catalog products (i.e., when you execute GetProductSearchResultsCall). This does not necessarily match a searchable attribute. For example, you might be able to search on a product's title but sort the results by the release date or the manufacturer's suggested retail price (MSRP).
Table 23-13 describes the elements contained in the
SortAttributesnode in the Product Finder XML.
| < Back |
| Attributes & Catalogs > Attribute and Product Finder Content Models > The Product Finder Meta-Data Model | |
| © 2005–2007 eBay Inc. All rights reserved. | |