blib/lib/Lingua/BioYaTeA/TwigXML.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 14 / 16 SCAR 0.0
CC
1
Cov
83%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Lingua/BioYaTeA/PostProcessing.pm ↑ Summary blib/lib/Lingua/BioYaTeA/Corpus.pm »
1 package Lingua::BioYaTeA::TwigXML;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
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<XML::Twig>. The
23 C<Lingua::BioYaTeA::TwigXML> object inherits the C<XML::Twig>
24 object. A additional attribut (C<objectSelf>) is set to refer to the
25 calling object (C<Lingua::BioYaTeA::PostProcessing>).
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<XML::Twig> object.
34  
35 =head2 objectSelf()
36  
37 objectSelf($objectSelf);
38  
39 This method adds the calling object (C<$objectSelf>) to the attribute
40 C<objectSelf> and returns it. If C<$objectSelf> is not set, the method
41 only returns the value of the attrbut C<objectSelf>.
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 <wiktoria.golik@jouy.inra.fr>, Zorana Ratkovic <Zorana.Ratkovic@jouy.inra.fr>, Robert Bossy <Robert.Bossy@jouy.inra.fr>, Claire Nédellec <claire.nedellec@jouy.inra.fr>, Thierry Hamon <thierry.hamon@univ-paris13.fr>
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 ▶use XML::Twig;
Subroutine BEGIN: called CC=1 SCAR=2.6
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 }
« blib/lib/Lingua/BioYaTeA/PostProcessing.pm ↑ Summary blib/lib/Lingua/BioYaTeA/Corpus.pm »