line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::NewsML_G2::Destination; |
2
|
|
|
|
|
|
|
|
3
|
18
|
|
|
18
|
|
127
|
use Moose; |
|
18
|
|
|
|
|
46
|
|
|
18
|
|
|
|
|
135
|
|
4
|
18
|
|
|
18
|
|
79214
|
use namespace::autoclean; |
|
18
|
|
|
|
|
44
|
|
|
18
|
|
|
|
|
144
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# header elements |
7
|
|
|
|
|
|
|
has 'name', |
8
|
|
|
|
|
|
|
isa => 'Str', |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
required => 1; |
11
|
|
|
|
|
|
|
has 'role', |
12
|
|
|
|
|
|
|
isa => 'Str', |
13
|
|
|
|
|
|
|
is => 'ro'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
__END__ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
XML::NewsML_G2::Destination - a container that can hold Destination Attributes |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
my $destination1 = XML::NewsML_G2::Destination->new(name => 'DEST1', role => 'dest:mailing'); |
27
|
|
|
|
|
|
|
my $destination2 = 'DEST2'; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my $nm = XML::NewsML_G2::News_Message->new; |
30
|
|
|
|
|
|
|
$nm->add_destination($destination1); |
31
|
|
|
|
|
|
|
$nm->add_destination($destination2); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=over 4 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item name |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Destination name |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item role |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Optional role |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=back |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Mario Paumann C<< <mario.paumann@apa.at> >> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 LICENCE AND COPYRIGHT |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Copyright (c) 2017, APA-IT. All rights reserved. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
See L<XML::NewsML_G2> for the license. |