line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
27
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
1036
|
|
2
|
|
|
|
|
|
|
package XML::XBEL::thingy; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
XML::XBEL::thingy - private methods for XBEL thingies. |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 SYNOPSIS |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
None. |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 DESCRIPTION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Private methods for XBEL thingies. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# $Id: thingy.pm,v 1.2 2004/06/23 06:23:57 asc Exp $ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub delete { |
21
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my $parent = $self->{'__root'}->parentNode(); |
24
|
0
|
|
|
|
|
|
$parent->removeChild($self->{'__root'}); |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
undef $self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub build_node { |
30
|
0
|
|
|
0
|
0
|
|
my $pkg = shift; |
31
|
0
|
|
|
|
|
|
my $node = shift; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return bless {'__root' => $node}, $pkg; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$Revision: 1.2 $ |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DATE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
$Date: 2004/06/23 06:23:57 $ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Aaron Straup Cope Eascope@cpan.orgE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SEE ALSO |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Copyright (c) 2004 Aaron Straup Cope. All Rights Reserved. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This is free software, you may use it and distribute it under the |
57
|
|
|
|
|
|
|
same terms as Perl itself. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
return 1; |