File Coverage

blib/lib/Lingua/BioYaTeA/TwigXML.pm
Criterion Covered Total %
statement 10 12 83.3
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 16 87.5


line stmt bran cond sub pod time code
1             package Lingua::BioYaTeA::TwigXML;
2              
3 1     1   5 use strict;
  1         2  
  1         37  
4 1     1   6 use warnings;
  1         2  
  1         23  
5 1     1   5 use utf8;
  1         3  
  1         5  
6              
7             =encoding utf8
8              
9             =head1 NAME
10              
11             Lingua::BioYaTeA::TwigXML - Perl extension of Twig::XML for BioYaTeA.
12              
13             =head1 SYNOPSIS
14              
15             use Lingua::BioYaTeA;
16              
17             my $twig_parser = Lingua::BioYaTeA::TwigXML->new(%xmltwig_options);
18             $twi_parser->$twig_parser->objectSelf($PostProcself);
19              
20             =head1 DESCRIPTION
21              
22             This module is a extention of implements C. The
23             C object inherits the C
24             object. A additional attribut (C) is set to refer to the
25             calling object (C).
26              
27             =head1 METHODS
28              
29             =head2 new()
30              
31             new(@twig_options);
32              
33             This method creates a object which inherits of the C object.
34              
35             =head2 objectSelf()
36              
37             objectSelf($objectSelf);
38              
39             This method adds the calling object (C<$objectSelf>) to the attribute
40             C and returns it. If C<$objectSelf> is not set, the method
41             only returns the value of the attrbut C.
42              
43             =head1 SEE ALSO
44              
45             Documentation of Lingua::YaTeA
46              
47             Documentation of Lingua::YaTeA
48              
49             =head1 AUTHORS
50              
51             Wiktoria Golik , Zorana Ratkovic , Robert Bossy , Claire Nédellec , Thierry Hamon
52              
53             =head1 LICENSE
54              
55             Copyright (C) 2012 Wiktoria Golik, Zorana Ratkovic, Robert Bossy, Claire Nédellec and Thierry Hamon
56              
57             This library is free software; you can redistribute it and/or modify
58             it under the same terms as Perl itself, either Perl version 5.8.6 or,
59             at your option, any later version of Perl 5 you may have available.
60              
61              
62             =cut
63              
64 1     1   558 use XML::Twig;
  0            
  0            
65              
66             our @ISA = qw(XML::Twig);
67              
68              
69              
70             sub new {
71             my $class = shift;
72              
73             my $this = $class->SUPER::new(@_);
74             bless ($this,$class);
75              
76             return $this;
77             }
78              
79              
80             sub objectSelf {
81             my ($twigself, $objectSelf) = @_;
82            
83             if (defined $objectSelf) {
84             $twigself->{'objectSelf'} = $objectSelf;
85             }
86             return($twigself->{'objectSelf'});
87             }