TBX::Min::TermEntry - Store information from one TBX-Min termEntry element
termEntry
version 0.08
use TBX::Min::TermEntry; use TBX::Min::LangSet; my $concept = TBX::Min::TermEntry->new( {id => 'B001'}); print $concept->id(); # 'B001' my $lang_grp = TBX::Min::LangSet->new({code => 'en'}); $concept->add_lang_group($lang_grp); my $lang_grps = $concept->lang_groups; print $#$lang_grps; # '1'
This class represents a single concept termEntry contained in a TBX-Min file. A concept termEntry contains several language groups, each containing terms that represent this concept in a given languages.
new
Creates a new TBX::Min::TermEntry instance. Optionally you may pass in a hash reference which is used to initialize the object. The allowed hash fields are id, subject_field and lang_groups, where id and subject_field correspond to methods of the same name, and langSets is an array reference containing TBX::Min::LangSet objects.
TBX::Min::TermEntry
id
subject_field
lang_groups
langSets
TBX::Min::LangSet
Get or set the concept termEntry id value.
Get or set the concept subject field string.
Returns an array ref containing all of the TBX::Min::LangSet objects in this concept termEntry. The array ref is the same one used to store the objects internally, so additions or removals from the array will be reflected in future calls to this method.
add_lang_group
Adds the input TBX::Min::LangSet object to the list of language groups contained by this object.
TBX::Min
Nathan Glenn <garfieldnate@gmail.com>, James Hayes <james.s.hayes@gmail.com>
This software is copyright (c) 2016 by Alan Melby.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install TBX::Min, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TBX::Min
CPAN shell
perl -MCPAN -e shell install TBX::Min
For more information on module installation, please visit the detailed CPAN module installation guide.