line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ExpressHistogramDomainDetailsType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1390
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ExpressHistogramDomainDetailsType.pm |
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
13
|
|
|
|
|
|
|
# Last Generated: ....... 08/24/2008 16:44 |
14
|
|
|
|
|
|
|
# API Release Number: ... 579 |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
########################################################################## |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::DataType::ExpressHistogramDomainDetailsType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Identifies a domain and provides statistics for items and |
25
|
|
|
|
|
|
|
catalog products found in that domain. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::DataType::ExpressHistogramDomainDetailsType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
71
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my @gaProperties = ( [ 'BreadCrumb', 'xs:string', '', '', '' ] |
46
|
|
|
|
|
|
|
, [ 'ImageURL', 'xs:anyURI', '', '', '' ] |
47
|
|
|
|
|
|
|
, [ 'ItemCount', 'xs:int', '', '', '' ] |
48
|
|
|
|
|
|
|
, [ 'Name', 'xs:string', '', '', '' ] |
49
|
|
|
|
|
|
|
, [ 'ProductCount', 'xs:int', '', '', '' ] |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my @gaAttributes = ( |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 Subroutines: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub new { |
62
|
|
|
|
|
|
|
my $classname = shift; |
63
|
|
|
|
|
|
|
my %args = @_; |
64
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
65
|
|
|
|
|
|
|
return $self; |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub isScalar { |
69
|
|
|
|
|
|
|
return 0; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 setBreadCrumb() |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
The fully qualified display name of the domain, as it would appear in the |
77
|
|
|
|
|
|
|
Express Web site user interface. |
78
|
|
|
|
|
|
|
For example, a fully qualified aisle breadcrumb would include the |
79
|
|
|
|
|
|
|
department's display name and the aisle's display name. |
80
|
|
|
|
|
|
|
The names can contain spaces, and a greater-than character (">") is used |
81
|
|
|
|
|
|
|
as the delimiter; for example: |
82
|
|
|
|
|
|
|
Consumer Electronics > Cell Phones & PDAs > PDA Accessories. |
83
|
|
|
|
|
|
|
As with all string data types, reserved characters like ">" are escaped |
84
|
|
|
|
|
|
|
in the raw response. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Note: The potential max length will be documented in a future release. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
# Argument: 'xs:string' |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
sub setBreadCrumb { |
93
|
|
|
|
|
|
|
my $self = shift; |
94
|
|
|
|
|
|
|
$self->{'BreadCrumb'} = shift |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 getBreadCrumb() |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
# Returns: 'xs:string' |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
sub getBreadCrumb { |
104
|
|
|
|
|
|
|
my $self = shift; |
105
|
|
|
|
|
|
|
return $self->{'BreadCrumb'}; |
106
|
|
|
|
|
|
|
} |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head2 setImageURL() |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
The image associated with the department, aisle, or product, if any. |
112
|
|
|
|
|
|
|
All domains should be associated with an image. However, there may be |
113
|
|
|
|
|
|
|
rare cases when an image is not available. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
# Argument: 'xs:anyURI' |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=cut |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
sub setImageURL { |
120
|
|
|
|
|
|
|
my $self = shift; |
121
|
|
|
|
|
|
|
$self->{'ImageURL'} = shift |
122
|
|
|
|
|
|
|
} |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head2 getImageURL() |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# Returns: 'xs:anyURI' |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
sub getImageURL { |
131
|
|
|
|
|
|
|
my $self = shift; |
132
|
|
|
|
|
|
|
return $self->{'ImageURL'}; |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 setItemCount() |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
The number of matching items that were found in the specified department, |
139
|
|
|
|
|
|
|
aisle, or product type at the moment when your request was processed. An item |
140
|
|
|
|
|
|
|
can belong to multiple departments, aisles, or product types at any given |
141
|
|
|
|
|
|
|
time. (So you should not expect the sum of the item counts in aisles and |
142
|
|
|
|
|
|
|
product types to equal the item count in a parent department.) Also, this |
143
|
|
|
|
|
|
|
value will not necessarily match the number of items returned in the response |
144
|
|
|
|
|
|
|
(even if you retrieve all pages), because ItemArray returns deduped |
145
|
|
|
|
|
|
|
items. |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
If HistogramDetails==Coarse and you don't specify DepartmentName, AisleName, |
148
|
|
|
|
|
|
|
or ProductTypeName in the request, Express only counts items found in matching |
149
|
|
|
|
|
|
|
departments. In this particular case, ItemCount could be 0 in all domain |
150
|
|
|
|
|
|
|
histogram results when the only matching items are in stand-alone product |
151
|
|
|
|
|
|
|
types or aisles (because they aren't grouped into departments). |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
# Argument: 'xs:int' |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
sub setItemCount { |
158
|
|
|
|
|
|
|
my $self = shift; |
159
|
|
|
|
|
|
|
$self->{'ItemCount'} = shift |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=head2 getItemCount() |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# Returns: 'xs:int' |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getItemCount { |
169
|
|
|
|
|
|
|
my $self = shift; |
170
|
|
|
|
|
|
|
return $self->{'ItemCount'}; |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 setName() |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
The domain name, with no spaces. Use this to determine DepartmentName, |
177
|
|
|
|
|
|
|
AisleName, and/or ProductTypeName values to pass in the request. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
# Argument: 'xs:string' |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=cut |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub setName { |
184
|
|
|
|
|
|
|
my $self = shift; |
185
|
|
|
|
|
|
|
$self->{'Name'} = shift |
186
|
|
|
|
|
|
|
} |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=head2 getName() |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
# Returns: 'xs:string' |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=cut |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
sub getName { |
195
|
|
|
|
|
|
|
my $self = shift; |
196
|
|
|
|
|
|
|
return $self->{'Name'}; |
197
|
|
|
|
|
|
|
} |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=head2 setProductCount() |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
The number of matching eBay catalog products that were found in the specified |
203
|
|
|
|
|
|
|
department, aisle, or product type at the moment when your request was |
204
|
|
|
|
|
|
|
processed. |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
If HistogramDetails==Coarse and you don't specify DepartmentName, AisleName, |
207
|
|
|
|
|
|
|
or ProductTypeName in the request, Express only counts catalog products found |
208
|
|
|
|
|
|
|
in matching departments. In this particular case, ProductCount could be 0 in |
209
|
|
|
|
|
|
|
all domain histogram results when the only matching catalog products are in |
210
|
|
|
|
|
|
|
stand-alone product types or aisles (because they aren't grouped into |
211
|
|
|
|
|
|
|
departments). |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
# Argument: 'xs:int' |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
=cut |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
sub setProductCount { |
218
|
|
|
|
|
|
|
my $self = shift; |
219
|
|
|
|
|
|
|
$self->{'ProductCount'} = shift |
220
|
|
|
|
|
|
|
} |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
=head2 getProductCount() |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
# Returns: 'xs:int' |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=cut |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
sub getProductCount { |
229
|
|
|
|
|
|
|
my $self = shift; |
230
|
|
|
|
|
|
|
return $self->{'ProductCount'}; |
231
|
|
|
|
|
|
|
} |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
## Attribute and Property lists |
238
|
|
|
|
|
|
|
sub getPropertiesList { |
239
|
|
|
|
|
|
|
my $self = shift; |
240
|
|
|
|
|
|
|
return \@gaProperties; |
241
|
|
|
|
|
|
|
} |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
sub getAttributesList { |
244
|
|
|
|
|
|
|
my $self = shift; |
245
|
|
|
|
|
|
|
return \@gaAttributes; |
246
|
|
|
|
|
|
|
} |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
1; |