NAME
XML::NewsML_G2::Scheme_Manager - hold all XML::NewsML_G2::Scheme instances
SYNOPSIS
my $sm = XML::NewsML_G2::Scheme_Manager->new(desk => $s1, hltype => $s2, svc => $s3);
ATTRIBUTES
- crel
-
Scheme for company relations
- desk
-
Scheme for editorial desk
- ean
-
Scheme for european/international article number
- geo
-
Scheme for location information
- hltype
-
Scheme for type of headline
- ind
-
Scheme for content indicators
- isbn
-
Scheme for international standard book number
- org
-
Scheme for organisations
- role
-
Scheme for editorial note roles
- svc
-
Scheme for editorial service
- topic
-
Scheme for topics
- isrol
-
Scheme for info source role
- nprov
-
Scheme for news provder
- ninat
-
Scheme for news item nature
- stat
-
Scheme for document state
- sig
-
Scheme for signals
- iso3166_1a2
-
Scheme for country codes
- genre
-
Scheme for genres
- isin
-
Scheme for ISIN codes
- medtop
-
Scheme for media topics
- rnd
-
Scheme for renditions
- colsp
-
Scheme for colorspaces
- adc
-
Scheme for audio channels
- group
-
Scheme for groups within a package
- pgrmod
-
Scheme for package group mode
- copyright_holder
-
Scheme for copyright holder
METHODS
- get_all_schemes
-
Returns a list of all registered XML::NewsML_G2::Scheme instances
- build_qcode
-
Build a qcode of the given scheme
$scheme_manager->build_qcode('ninat', 'text');
If the schema does not provide a catalog or URI, creating a qcode is not possible, and this method will return undef.
- add_qcode
-
Add a qcode attribute of the given scheme to the XML element:
$scheme_manager->add_qcode($element, 'ninat', 'text');
If the schema does not provide a catalog or URI, creating a qcode is not possible, and this method will die.
- add_qcode_or_literal
-
Same as
add_qcode
, but will create aliteral
attribute if creating a qcode is not possible. - add_role
-
If the scheme is defined, add a role attribute to the given XML element. Else, do nothing.
$scheme_manager->add_role($element, 'isrol', 'originfo');
AUTHOR
Philipp Gortan <philipp.gortan@apa.at>
LICENCE AND COPYRIGHT
Copyright (c) 2013-2014, APA-IT. All rights reserved.
See XML::NewsML_G2 for the license.