« blib/lib/XML/NewsML_G2/Writer/News_Message.pm
↑ Summary
blib/lib/XML/NewsML_G2/Role/Writer_2_9.pm »
| 1 | package XML::NewsML_G2::Role::Writer; | ||||||||||
| 2 | |||||||||||
| 3 | 22 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 22 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | sub _create_remote_content { | ||||||||||
| 7 | 0 | ▶ | my ( $self, $root, $remote ) = @_; | ||||||||
|
Subroutine
_create_remote_content: not called CC=3 SCAR=24.8
| |||||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | $root->setAttribute( 'contenttype', $remote->mimetype ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | if ( $remote->mimetype ); | ||||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | $root->setAttribute( 'size', $remote->size ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | if ( defined $remote->size ); | ||||||||||
| 14 | |||||||||||
| 15 | 0 | return; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 22 | 1; | |||||||||
| 19 | __END__ | ||||||||||
| 20 | |||||||||||
| 21 | =head1 NAME | ||||||||||
| 22 | |||||||||||
| 23 | XML::NewsML_G2::Role::Writer - Base role for NewsML-G2 writer classes | ||||||||||
| 24 | |||||||||||
| 25 | =head1 DESCRIPTION | ||||||||||
| 26 | |||||||||||
| 27 | This module serves as a base role for all NewsML-G2 writer classes it | ||||||||||
| 28 | defined the required functions that need to be provided by the | ||||||||||
| 29 | specific writer roles for each news item type | ||||||||||
| 30 | |||||||||||
| 31 | =head1 AUTHOR | ||||||||||
| 32 | |||||||||||
| 33 | Christian Eder C<< <christian.eder@apa.at> >> | ||||||||||
| 34 | |||||||||||
| 35 | =head1 LICENCE AND COPYRIGHT | ||||||||||
| 36 | |||||||||||
| 37 | Copyright (c) 2014, APA-IT. All rights reserved. | ||||||||||
| 38 | |||||||||||
| 39 | See L<XML::NewsML_G2> for the license. | ||||||||||