annotate Lib/IMPL/DOM/Document.pm @ 24:7f00786f8210

Первая рабочая реазизация схемы и навигаторов
author Sergey
date Mon, 05 Oct 2009 00:48:49 +0400
parents 818c74b038ae
children 1828103371d0
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
24
7f00786f8210 Первая рабочая реазизация схемы и навигаторов
Sergey
parents: 18
diff changeset
14 delete $refProps->{nodeName};
7f00786f8210 Первая рабочая реазизация схемы и навигаторов
Sergey
parents: 18
diff changeset
15
15
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
16 return $class->new(
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
17 nodeName => $nodeName,
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
18 %$refProps
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
19 );
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
20 }
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
21
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
22 1;
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
23 __END__
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
24
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
25 =pod
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
26
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
27 =head1 DESCRIPTION
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
28
18
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
29 =head1 METHODS
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
30
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
31 =over
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
32
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
33 =item C<<$doc->Create>>
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
34
15
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
35 .
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
36
18
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
37 =back
818c74b038ae DOM Schema + tests
Sergey
parents: 15
diff changeset
38
15
16795016e70b Dom schema in progress
Sergey
parents:
diff changeset
39 =cut