NAME

XML::NewsML_G2::Media_Topic - a subject covered in the news item, taken from a standardized controlled vocabulary

SYNOPSIS

my $mm = XML::NewsML_G2::Media_Topic->new
    (name => 'mass media', qcode => 20000045);
my $tv = XML::NewsML_G2::Media_Topic->new
    (name => 'television', qcode => 20000051, parent => $mm);
$tv->add_translation(de => 'Fernsehen')

ATTRIBUTES

translations

hash mapping IANA language codes to the translation of the name in that language

parent

points to the broader media topic

direct

whether the media topic has been manually specified by the editor

METHODS

add_translation

AUTHOR

Philipp Gortan <philipp.gortan@apa.at>

LICENCE AND COPYRIGHT

Copyright (c) 2013-2019, APA-IT. All rights reserved.

See XML::NewsML_G2 for the license.