line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::NewsML_G2::Role::HasQCode; |
2
|
|
|
|
|
|
|
|
3
|
18
|
|
|
18
|
|
9617
|
use Moose::Role; |
|
18
|
|
|
|
|
43
|
|
|
18
|
|
|
|
|
224
|
|
4
|
18
|
|
|
18
|
|
86415
|
use namespace::autoclean; |
|
18
|
|
|
|
|
45
|
|
|
18
|
|
|
|
|
108
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has 'name', isa => 'Str', is => 'ro', required => 1; |
7
|
|
|
|
|
|
|
has 'qcode', isa => 'Str', is => 'ro', required => 1; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
1; |
10
|
|
|
|
|
|
|
__END__ |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
XML::NewsML_G2::Role::HasQCode - Role for item types that have a QCode |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my $desk = XML::NewsML_G2::Desk->new |
19
|
|
|
|
|
|
|
(name => 'Sports', qcode => 'spo'); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 DESCRIPTION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
This module serves as a role for all NewsML-G2 item type classes which have |
24
|
|
|
|
|
|
|
a qcode (and a human readable name) |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over 4 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item name |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
A string containing the name of the item |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item qcode |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
The right part of an IPTC compliant QCode |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=back |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Philipp Gortan C<< <philipp.gortan@apa.at> >> |
43
|
|
|
|
|
|
|
Christian Eder C<< <christian.eder@apa.at> >> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 LICENCE AND COPYRIGHT |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Copyright (c) 2013-2019, APA-IT. All rights reserved. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
See L<XML::NewsML_G2> for the license. |