annotate Lib/IMPL/DOM/Document.pm @ 22:da5bc24b3d3c

wmi tests
author Sergey
date Wed, 30 Sep 2009 17:41:32 +0400
parents 818c74b038ae
children 7f00786f8210
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
1 package IMPL::DOM::Document;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
2 use strict;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
3 use warnings;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
4
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
5 use base qw(IMPL::DOM::Node);
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
6
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
7 __PACKAGE__->PassThroughArgs;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
8
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
9 sub Create {
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
10 my ($this,$nodeName,$class,$refProps) = @_;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
11
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
12 $refProps ||= {};
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
13
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
14 return $class->new(
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
15 nodeName => $nodeName,
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
16 %$refProps
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
17 );
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
18 }
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
19
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
20 1;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
21 __END__
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
22
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
23 =pod
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
24
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
25 =head1 DESCRIPTION
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
26
18
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
27 =head1 METHODS
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
28
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
29 =over
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
30
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
31 =item C<<$doc->Create>>
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
32
15
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
33 Создает узел определеннго типа с определенным именем и свойствами.
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
34
18
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
35 =back
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
36
15
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
37 =cut