line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::Attribute::DownloadSite; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
15184
|
use strict; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
146
|
|
4
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
102
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
20
|
use Carp; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
266
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
2651
|
use parent qw/Enbld::Target::AttributeExtension::URL/; |
|
4
|
|
|
|
|
1179
|
|
|
4
|
|
|
|
|
29
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub initialize { |
11
|
57
|
|
|
57
|
0
|
143
|
my ( $self, $param ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
57
|
100
|
|
|
|
163
|
if ( $param ) { |
14
|
55
|
|
|
|
|
372
|
$self->SUPER::initialize( $param ); |
15
|
55
|
|
|
|
|
152
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
9
|
require Enbld::Exception; |
19
|
2
|
|
|
|
|
7
|
croak( Enbld::Exception->new( "Attribute 'DownloadSite' isn't defined" )); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub validate { |
23
|
71
|
|
|
71
|
0
|
115
|
my ( $self, $string ) = @_; |
24
|
|
|
|
|
|
|
|
25
|
71
|
|
|
|
|
367
|
$self->SUPER::validate( $string ); |
26
|
|
|
|
|
|
|
|
27
|
67
|
100
|
|
|
|
364
|
return $string if ( $string =~ /\/$/ ); |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
3
|
my $err = "Attribute 'DownloadSite' does not end with slash character"; |
30
|
1
|
|
|
|
|
6
|
require Enbld::Exception; |
31
|
1
|
|
|
|
|
5
|
croak( Enbld::Exception->new( $err, $string )); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |