1# -*- perl -*- 2# !!! DO NOT EDIT !!! 3# This file was automatically generated. 4package Net::Amazon::Validate::ItemSearch::de::Music; 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}}, 'Artist'; 18 push @{$self->{_options}}, 'Availability'; 19 push @{$self->{_options}}, 'BrowseNode'; 20 push @{$self->{_options}}, 'Condition'; 21 push @{$self->{_options}}, 'Count'; 22 push @{$self->{_options}}, 'Format'; 23 push @{$self->{_options}}, 'ItemPage'; 24 push @{$self->{_options}}, 'ItemPage'; 25 push @{$self->{_options}}, 'Keywords'; 26 push @{$self->{_options}}, 'Keywords'; 27 push @{$self->{_options}}, 'Magazines'; 28 push @{$self->{_options}}, 'MaximumPrice'; 29 push @{$self->{_options}}, 'MerchantId'; 30 push @{$self->{_options}}, 'MinimumPrice'; 31 push @{$self->{_options}}, 'MusicLabel'; 32 push @{$self->{_options}}, 'Performer'; 33 push @{$self->{_options}}, 'PostalCode'; 34 push @{$self->{_options}}, 'Sort'; 35 push @{$self->{_options}}, 'Sort'; 36 push @{$self->{_options}}, 'State'; 37 push @{$self->{_options}}, 'Title'; 38 39 bless $self, $class; 40} 41 42sub user_or_default { 43 my ($self, $user) = @_; 44 if (defined $user && length($user) > 0) { 45 return $self->find_match($user); 46 } 47 return $self->default(); 48} 49 50sub default { 51 my ($self) = @_; 52 return $self->{_default}; 53} 54 55sub find_match { 56 my ($self, $value) = @_; 57 for (@{$self->{_options}}) { 58 return $_ if lc($_) eq lc($value); 59 } 60 die "$value is not a valid value for de::Music!\n"; 61} 62 631; 64 65__END__ 66 67=head1 NAME 68 69Net::Amazon::Validate::ItemSearch::de::Music - valid search indicies 70for the de locale and the Music SearchIndex. 71 72=head1 DESCRIPTION 73 74The default value is Title, unless mode is specified. 75 76The list of available values are: 77 78 Artist 79 Availability 80 BrowseNode 81 Condition 82 Count 83 Format 84 ItemPage 85 ItemPage 86 Keywords 87 Keywords 88 Magazines 89 MaximumPrice 90 MerchantId 91 MinimumPrice 92 MusicLabel 93 Performer 94 PostalCode 95 Sort 96 Sort 97 State 98 Title 99 100=cut 101