File: Characters.pm

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (50 lines) | stat: -rw-r--r-- 962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package XML::Elemental::Characters;
use strict;
use base qw( XML::Elemental::Node );

__PACKAGE__->mk_accessors(qw( data parent ));

1;

__END__

=begin

=head1 NAME

XML::Elemental::Characters - a generic characters object.

=head1 DESCRIPTION

XML::Elemental::Characters is a subclass of L<XML::Elemental::Node>
that is used by the Elemental parser to represent character
data.

=head1 METHODS

=item XML::Elemental::Characters->new

Parameterless constructor. Returns an instance of the object.

=item $chars->parent([$object])

Returns a reference to the parent object. If a parameter is passed
the parent is set.

=item $chars->data([$string])

A method that returns the character data as a string. If a
parameter is passed the value is set.

=item $chars->root

A method that returns a reference to the Elemental Document object.

=head1 AUTHOR & COPYRIGHT

Please see the XML::Elemental manpage for author, copyright, and
license information.

=cut

=end