1# -*- perl -*- 2# !!! DO NOT EDIT !!! 3# This file was automatically generated. 4package Net::Amazon::Validate::ItemSearch::jp::Video; 5 6use 5.006; 7use strict; 8use warnings; 9 10sub new { 11 my ($class , %options) = @_; 12 my $self = { 13 '_default' => 'Title', 14 %options, 15 }; 16 17 push @{$self->{_options}}, 'Actor'; 18 push @{$self->{_options}}, 'AudienceRating'; 19 push @{$self->{_options}}, 'Availability'; 20 push @{$self->{_options}}, 'Brand'; 21 push @{$self->{_options}}, 'BrowseNode'; 22 push @{$self->{_options}}, 'BrowseNode'; 23 push @{$self->{_options}}, 'Condition'; 24 push @{$self->{_options}}, 'Count'; 25 push @{$self->{_options}}, 'Director'; 26 push @{$self->{_options}}, 'Format'; 27 push @{$self->{_options}}, 'ItemPage'; 28 push @{$self->{_options}}, 'ItemPage'; 29 push @{$self->{_options}}, 'Keywords'; 30 push @{$self->{_options}}, 'Keywords'; 31 push @{$self->{_options}}, 'Magazines'; 32 push @{$self->{_options}}, 'Manufacturer'; 33 push @{$self->{_options}}, 'MaximumPrice'; 34 push @{$self->{_options}}, 'MinimumPrice'; 35 push @{$self->{_options}}, 'Performer'; 36 push @{$self->{_options}}, 'Publisher'; 37 push @{$self->{_options}}, 'Sort'; 38 push @{$self->{_options}}, 'Sort'; 39 push @{$self->{_options}}, 'Title'; 40 push @{$self->{_options}}, 'Title'; 41 42 bless $self, $class; 43} 44 45sub user_or_default { 46 my ($self, $user) = @_; 47 if (defined $user && length($user) > 0) { 48 return $self->find_match($user); 49 } 50 return $self->default(); 51} 52 53sub default { 54 my ($self) = @_; 55 return $self->{_default}; 56} 57 58sub find_match { 59 my ($self, $value) = @_; 60 for (@{$self->{_options}}) { 61 return $_ if lc($_) eq lc($value); 62 } 63 die "$value is not a valid value for jp::Video!\n"; 64} 65 661; 67 68__END__ 69 70=head1 NAME 71 72Net::Amazon::Validate::ItemSearch::jp::Video - valid search indicies 73for the jp locale and the Video SearchIndex. 74 75=head1 DESCRIPTION 76 77The default value is Title, unless mode is specified. 78 79The list of available values are: 80 81 Actor 82 AudienceRating 83 Availability 84 Brand 85 BrowseNode 86 BrowseNode 87 Condition 88 Count 89 Director 90 Format 91 ItemPage 92 ItemPage 93 Keywords 94 Keywords 95 Magazines 96 Manufacturer 97 MaximumPrice 98 MinimumPrice 99 Performer 100 Publisher 101 Sort 102 Sort 103 Title 104 Title 105 106=cut 107