15
|
1 package IMPL::DOM::Document;
|
|
2 use strict;
|
|
3 use warnings;
|
|
4
|
|
5 use base qw(IMPL::DOM::Node);
|
|
6
|
|
7 __PACKAGE__->PassThroughArgs;
|
|
8
|
|
9 sub Create {
|
|
10 my ($this,$nodeName,$class,$refProps) = @_;
|
|
11
|
|
12 $refProps ||= {};
|
|
13
|
24
|
14 delete $refProps->{nodeName};
|
|
15
|
15
|
16 return $class->new(
|
|
17 nodeName => $nodeName,
|
|
18 %$refProps
|
|
19 );
|
|
20 }
|
|
21
|
36
|
22 {
|
|
23 my $empty;
|
|
24 sub Empty() {
|
|
25 return $empty ? $empty : $empty = __PACKAGE__->new(nodeName => 'Empty');
|
|
26 }
|
|
27 }
|
|
28
|
15
|
29 1;
|
|
30 __END__
|
|
31
|
|
32 =pod
|
|
33
|
|
34 =head1 DESCRIPTION
|
|
35
|
18
|
36 =head1 METHODS
|
|
37
|
|
38 =over
|
|
39
|
|
40 =item C<<$doc->Create>>
|
|
41
|
15
|
42 .
|
|
43
|
18
|
44 =back
|
|
45
|
15
|
46 =cut |