line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
###################################################################### |
2
|
|
|
|
|
|
|
package Net::Amazon::Validate::Type; |
3
|
|
|
|
|
|
|
###################################################################### |
4
|
9
|
|
|
9
|
|
55
|
use warnings; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
580
|
|
5
|
9
|
|
|
9
|
|
50
|
use strict; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
291
|
|
6
|
|
|
|
|
|
|
|
7
|
9
|
|
|
9
|
|
24796
|
use Data::Dumper; |
|
9
|
|
|
|
|
150960
|
|
|
9
|
|
|
|
|
1065
|
|
8
|
9
|
|
|
9
|
|
85
|
use Log::Log4perl qw(:easy); |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
107
|
|
9
|
|
|
|
|
|
|
|
10
|
9
|
|
|
9
|
|
6580
|
use warnings; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
346
|
|
11
|
9
|
|
|
9
|
|
64
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
1262
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
################################################## |
14
|
|
|
|
|
|
|
sub factory { |
15
|
|
|
|
|
|
|
################################################## |
16
|
15
|
|
|
15
|
0
|
39
|
my(%options) = @_; |
17
|
|
|
|
|
|
|
|
18
|
15
|
50
|
|
|
|
40
|
die "'operation' is a mandatory parameter!\n" unless defined $options{operation}; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
#DEBUG(sub {"Validate::Type factory options=" . Data::Dumper::Dumper(\%options) . "\n"}); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# NOTE: if you want to validate different versions of the WSDL add this back in. |
23
|
|
|
|
|
|
|
# # Transform 2005-10-05 into V2005_10_05 to ensure its a valid module name. |
24
|
|
|
|
|
|
|
# my $ver = "V$options{version}"; |
25
|
|
|
|
|
|
|
# $ver =~ s|-|_|g; |
26
|
|
|
|
|
|
|
# |
27
|
|
|
|
|
|
|
# my $class = 'Net::Amazon::Validate::Type::'.$ver.'::'.$options{operation}; |
28
|
|
|
|
|
|
|
|
29
|
15
|
|
|
|
|
40
|
my $class = 'Net::Amazon::Validate::Type::'.$options{operation}; |
30
|
|
|
|
|
|
|
|
31
|
15
|
|
|
|
|
872
|
eval "require $class"; |
32
|
|
|
|
|
|
|
|
33
|
15
|
|
|
|
|
138
|
my $obj = $class->new(); |
34
|
|
|
|
|
|
|
|
35
|
15
|
|
|
|
|
52
|
return $obj; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |