annotate Lib/IMPL/DOM/Schema/Node.pm @ 18:818c74b038ae

DOM Schema + tests
author Sergey
date Thu, 10 Sep 2009 17:42:47 +0400
parents
children 1ca530e5c9c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
1 package IMPL::DOM::Schema::Node;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
2 use strict;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
3 use warnings;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
4
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
5 use base qw(IMPL::DOM::Node);
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
6 use IMPL::Class::Property;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
7 use IMPL::DOM::Property qw(_dom);
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
8 use IMPL::Class::Property::Direct;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
9
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
10 BEGIN {
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
11 public _dom property minOccur => prop_all;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
12 public _dom property maxOccur => prop_all;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
13 public _dom property type => prop_all
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
14 }
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
15
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
16 __PACKAGE__->PassThroughArgs;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
17
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
18 sub CTOR {
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
19 my ($this,%args) = @_;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
20
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
21 $this->minOccur($args{minOcuur});
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
22 $this->maxOccur($args{maxOccur});
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
23 $this->type($args{type});
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
24 }
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
25
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
26 1;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
27
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
28 __END__
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
29 =pod
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
30
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
31 =head1 SYNOPSIS
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
32
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
33 package Restriction;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
34 use base qw(IMPL::DOM::Schema::Item);
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
35
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
36 sub Validate {
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
37 my ($this,$node) = @_;
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
38 }
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
39
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
40 =head1 DESCRIPTION
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
41
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
42 Базовый класс для элементов схемы. Содержит в себе базовые методы
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
43
818c74b038ae DOM Schema + tests
Sergey
parents:
diff changeset
44 =cut