Mercurial > pub > Impl
annotate Lib/IMPL/DOM/Schema/SimpleNode.pm @ 28:6d33f75c6e1f
ORM in works
author | Sergey |
---|---|
date | Mon, 19 Oct 2009 04:13:54 +0400 |
parents | 267460284fb3 |
children | 16ada169ca75 |
rev | line source |
---|---|
7 | 1 package IMPL::DOM::Schema::SimpleNode; |
2 use strict; | |
3 use warnings; | |
4 | |
19
1ca530e5c9c5
DOM схема, требует переработки в части схемы для описания схем. Автоверификация не проходит
Sergey
parents:
8
diff
changeset
|
5 use base qw(IMPL::DOM::Schema::Node); |
7 | 6 |
20 | 7 our %CTOR = ( |
8 'IMPL::DOM::Schema::Node' => sub {my %args = @_; $args{nodeName} ||= 'SimpleNode'; %args} | |
9 ); | |
7 | 10 |
8 | 11 sub Validate { |
12 my ($this,$node) = @_; | |
13 | |
14 map $_->Validate($node), @{$this->childNodes}; | |
15 } | |
16 | |
7 | 17 1; |
18 | |
19 __END__ | |
20 | |
21 =pod | |
22 | |
23 =head1 DESCRIPTION | |
24 | |
25 . | |
26 . | |
27 | |
28 | |
29 =cut |