line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::Attribute::DownloadSite; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
10522
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
157
|
|
4
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
117
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
22
|
use Carp; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
430
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
1528
|
use parent qw/Enbld::Target::AttributeExtension::URL/; |
|
4
|
|
|
|
|
956
|
|
|
4
|
|
|
|
|
23
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub initialize { |
11
|
57
|
|
|
57
|
0
|
101
|
my ( $self, $param ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
57
|
100
|
|
|
|
156
|
if ( $param ) { |
14
|
55
|
|
|
|
|
304
|
$self->SUPER::initialize( $param ); |
15
|
55
|
|
|
|
|
91
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
7
|
require Enbld::Exception; |
19
|
2
|
|
|
|
|
9
|
croak( Enbld::Exception->new( "Attribute 'DownloadSite' isn't defined" )); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub validate { |
23
|
71
|
|
|
71
|
0
|
108
|
my ( $self, $string ) = @_; |
24
|
|
|
|
|
|
|
|
25
|
71
|
|
|
|
|
260
|
$self->SUPER::validate( $string ); |
26
|
|
|
|
|
|
|
|
27
|
67
|
100
|
|
|
|
326
|
return $string if ( $string =~ /\/$/ ); |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
2
|
my $err = "Attribute 'DownloadSite' does not end with slash character"; |
30
|
1
|
|
|
|
|
4
|
require Enbld::Exception; |
31
|
1
|
|
|
|
|
3
|
croak( Enbld::Exception->new( $err, $string )); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |