line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- perl -*- |
2
|
|
|
|
|
|
|
# !!! DO NOT EDIT !!! |
3
|
|
|
|
|
|
|
# This file was automatically generated. |
4
|
|
|
|
|
|
|
package Net::Amazon::Validate::Type::SimilarityLookup; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
24
|
use 5.006; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
47
|
|
7
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
8
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
99
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
|
|
359
|
use constant RESPONSEGROUP_VALID_VALUES => { |
11
|
|
|
|
|
|
|
'Accessories' => 1, |
12
|
|
|
|
|
|
|
'BrowseNodes' => 1, |
13
|
|
|
|
|
|
|
'EditorialReview' => 1, |
14
|
|
|
|
|
|
|
'Images' => 1, |
15
|
|
|
|
|
|
|
'ItemAttributes' => 1, |
16
|
|
|
|
|
|
|
'ItemIds' => 1, |
17
|
|
|
|
|
|
|
'Large' => 1, |
18
|
|
|
|
|
|
|
'ListmaniaLists' => 1, |
19
|
|
|
|
|
|
|
'Medium' => 1, |
20
|
|
|
|
|
|
|
'OfferFull' => 1, |
21
|
|
|
|
|
|
|
'OfferListings' => 1, |
22
|
|
|
|
|
|
|
'OfferSummary' => 1, |
23
|
|
|
|
|
|
|
'Offers' => 1, |
24
|
|
|
|
|
|
|
'PromotionDetails' => 1, |
25
|
|
|
|
|
|
|
'PromotionSummary' => 1, |
26
|
|
|
|
|
|
|
'Reviews' => 1, |
27
|
|
|
|
|
|
|
'SalesRank' => 1, |
28
|
|
|
|
|
|
|
'Similarities' => 1, |
29
|
|
|
|
|
|
|
'Small' => 1, |
30
|
|
|
|
|
|
|
'Subjects' => 1, |
31
|
|
|
|
|
|
|
'Tracks' => 1, |
32
|
|
|
|
|
|
|
'VariationMinimum' => 1, |
33
|
|
|
|
|
|
|
'VariationSummary' => 1, |
34
|
|
|
|
|
|
|
'Variations' => 1, |
35
|
1
|
|
|
1
|
|
6
|
}; |
|
1
|
|
|
|
|
7
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub new { |
38
|
1
|
|
|
1
|
0
|
4
|
my ($class , %options) = @_; |
39
|
1
|
|
|
|
|
3
|
my $self = { |
40
|
|
|
|
|
|
|
%options, |
41
|
|
|
|
|
|
|
}; |
42
|
1
|
|
|
|
|
6
|
bless $self, $class; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub assert { |
46
|
1
|
|
|
1
|
0
|
2
|
my ($self, $value, $name, $href) = @_; |
47
|
1
|
50
|
|
|
|
8
|
die "Unknown type in Net::Amazon::Request constructor: $value" unless defined $href->{$value}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub validate { |
51
|
1
|
|
|
1
|
0
|
2
|
my ($self, $value, $name, $href) = @_; |
52
|
1
|
50
|
|
|
|
4
|
if ( ref ($value) eq 'ARRAY' ) { |
53
|
0
|
|
|
|
|
0
|
$self->assert($_, $name, $href) for (@$value); |
54
|
|
|
|
|
|
|
} else { |
55
|
1
|
|
|
|
|
4
|
$self->assert($value, $name, $href); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub ResponseGroup { |
60
|
1
|
|
|
1
|
0
|
2
|
my ($self, $value) = @_; |
61
|
1
|
|
|
|
|
4
|
$self->validate($value, "ResponseGroup", (RESPONSEGROUP_VALID_VALUES)); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
1; |