annotate Lib/IMPL/DOM/Schema.pm @ 389:5aff94ba842f

DOM Schema refactoring complete
author cin
date Wed, 12 Feb 2014 13:36:24 +0400
parents 2f16f13b000c
children f23fcb19d3c1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
1 package IMPL::DOM::Schema;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
2 use strict;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
3 use warnings;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
4
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
5 use File::Spec;
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
6 use IMPL::Const qw(:prop);
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
7 use IMPL::declare {
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
8 require => {
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
9 ComplexNode => 'IMPL::DOM::Schema::ComplexNode',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
10 ComplexType => 'IMPL::DOM::Schema::ComplexType',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
11 SimpleNode => 'IMPL::DOM::Schema::SimpleNode',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
12 SimpleType => 'IMPL::DOM::Schema::SimpleType',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
13 Node => 'IMPL::DOM::Schema::Node',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
14 AnyNode => 'IMPL::DOM::Schema::AnyNode',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
15 NodeList => 'IMPL::DOM::Schema::NodeList',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
16 NodeSet => 'IMPL::DOM::Schema::NodeSet',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
17 Property => 'IMPL::DOM::Schema::Property',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
18 SwitchNode => 'IMPL::DOM::Schema::SwitchNode',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
19 Validator => 'IMPL::DOM::Schema::Validator',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
20 Builder => 'IMPL::DOM::Navigator::Builder',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
21 XMLReader => 'IMPL::DOM::XMLReader', # XMLReader references Schema
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
22 Loader => 'IMPL::Code::Loader',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
23 StringMap => 'IMPL::Resources::StringLocaleMap'
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
24 },
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
25 base => [
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
26 'IMPL::DOM::Document' => sub {
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
27 nodeName => 'schema'
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
28 }
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
29 ],
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
30 props => [
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
31 _typesMap => PROP_RW | PROP_DIRECT,
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
32 baseDir => PROP_RW | PROP_DIRECT,
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
33 schemaName => PROP_RW | PROP_DIRECT,
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
34 baseSchemas => PROP_RO | PROP_LIST | PROP_DIRECT,
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
35 stringMap => {
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
36 get => '_getStringMap',
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
37 direct => 1
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
38 }
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
39 ]
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
40 };
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
41
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
42 my $validatorLoader = Loader->new(prefix => Validator, verifyNames => 1);
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
43
250
129e48bb5afb DOM refactoring
sergey
parents: 246
diff changeset
44 #TODO rename and remove
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
45 sub resolveType {
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
46 goto &ResolveType;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
47 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
48
102
cf3b6ef2be22 Schema beta version
wizard
parents: 101
diff changeset
49 sub CTOR {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
50 my ($this,%args) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
51
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
52 $this->{$baseDir} = ($args{baseDir} || '.');
102
cf3b6ef2be22 Schema beta version
wizard
parents: 101
diff changeset
53 }
cf3b6ef2be22 Schema beta version
wizard
parents: 101
diff changeset
54
250
129e48bb5afb DOM refactoring
sergey
parents: 246
diff changeset
55 # compat
129e48bb5afb DOM refactoring
sergey
parents: 246
diff changeset
56 sub ResolveType {
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
57 my ($this,$typeName) = @_;
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
58
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
59 my $type = $this->{$_typesMap}{$typeName};
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
60 return $type if $type;
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
61
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
62 foreach my $base ($this->baseSchemas) {
389
5aff94ba842f DOM Schema refactoring complete
cin
parents: 383
diff changeset
63 last if $type = $base->ResolveType($typeName);
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
64 }
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
65
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
66 die IMPL::KeyNotFoundException->new($typeName)
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
67 unless $type;
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
68 return $this->{$_typesMap}{$typeName} = $type;
250
129e48bb5afb DOM refactoring
sergey
parents: 246
diff changeset
69 }
129e48bb5afb DOM refactoring
sergey
parents: 246
diff changeset
70
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
71 sub Create {
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
72 my ($this,$nodeName,$class,$refArgs) = @_;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
73
100
df6b4f054957 Schema in progress
wizard
parents: 98
diff changeset
74 die new IMPL::Exception('Invalid node class') unless $class->isa('IMPL::DOM::Node');
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
75
101
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
76 if ($class->isa('IMPL::DOM::Schema::Validator')) {
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
77 $class = $validatorLoader->GetFullName($nodeName);
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
78 unless (eval {$class->can('new')}) {
232
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 230
diff changeset
79 eval {
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 230
diff changeset
80 $validatorLoader->Require($nodeName);
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 230
diff changeset
81 };
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 230
diff changeset
82 my $e = $@;
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
83 die new IMPL::Exception("Invalid validator",$class,$e) if $e;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
84 }
101
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
85 }
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
86
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
87 return $this->SUPER::Create($nodeName,$class,$refArgs);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
88 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
89
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
90 sub _getStringMap {
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
91 my ($this) = @_;
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
92
382
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
93 return $this->{$stringMap}
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
94 if $this->{$stringMap};
382
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
95
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
96 my $map = StringMap->new();
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
97 if ($this->baseDir and $this->schemaName) {
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
98
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
99 $map->paths( File::Spec->catdir($this->baseDir,'locale') );
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
100 $map->name( $this->schemaName );
382
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
101 }
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
102
382
99ac2e19c0cc Implemented a strings map for a DOM schema
sergey
parents: 381
diff changeset
103 return $this->{$stringMap} = $map;
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
104 }
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
105
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
106 sub Process {
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
107 my ($this) = @_;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
108
101
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
109 # process instructions
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
110 $this->Include($_) foreach map $_->nodeProperty('source'), $this->selectNodes('Include');
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
111
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
112 # build types map
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
113 $this->{$_typesMap} = { map { $_->type, $_ } $this->selectNodes(sub { $_[0]->nodeName eq 'ComplexType' || $_[0]->nodeName eq 'SimpleType' } ) };
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
114 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
115
101
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
116 sub Include {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
117 my ($this,$file) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
118
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
119 my $schema = $this->LoadSchema(File::Spec->catfile($this->baseDir, $file));
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
120
383
2f16f13b000c DOM localization
cin
parents: 382
diff changeset
121 $this->baseSchemas->Append( $schema );
101
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
122 }
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
123
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
124 sub LoadSchema {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
125 my ($this,$file) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
126
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
127 $file = File::Spec->rel2abs($file);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
128
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
129 my $class = ref $this || $this;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
130
232
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 230
diff changeset
131 my $reader = XMLReader->new(
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
132 Navigator => Builder->new(
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
133 $class,
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
134 $class->MetaSchema
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
135 ),
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
136 SkipWhitespace => 1
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
137 );
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
138
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
139 $reader->ParseFile($file);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
140
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
141 my $schema = $reader->Navigator->Document;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
142
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
143 my ($vol,$dir,$name) = File::Spec->splitpath($file);
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
144
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
145 $name =~ s/\.xml$//;
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
146
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
147 $schema->baseDir($dir);
381
ced5937ff21a Custom getters/setters support method names in theirs definitions
cin
parents: 278
diff changeset
148 $schema->schemaName($name);
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
149
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
150 my @errors = $class->MetaSchema->Validate($schema);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
151
245
7c517134c42f Added Unsupported media type Web exception
sergey
parents: 232
diff changeset
152 die new IMPL::Exception("Schema is invalid",$file,map( $_->message, @errors ) ) if @errors;
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
153
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
154 $schema->Process;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
155
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
156 return $schema;
101
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
157 }
d8dc6cad3f55 Schema in progress
wizard
parents: 100
diff changeset
158
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
159 sub Validate {
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
160 my ($this,$node) = @_;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
161
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
162 if ( my ($schemaNode) = $this->selectNodes(sub { $_->isa(Node) and $_[0]->name eq $node->nodeName })) {
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
163 $schemaNode->Validate($node);
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
164 } else {
266
89179bb8c388 *corrected TTView to handle plain (and undefined) values
cin
parents: 263
diff changeset
165 return new IMPL::DOM::Schema::ValidationError(node => $node, message=> "A specified document (%Node.nodeName%) doesn't match the schema");
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
166 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
167 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
168
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
169 my $schema;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
170
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
171 sub MetaSchema {
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
172
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
173 return $schema if $schema;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
174
232
5c82eec23bb6 Fixed degradations due refactoring
sergey
parents: 230
diff changeset
175 $schema = __PACKAGE__->new();
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
176
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
177 $schema->appendRange(
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
178 ComplexNode->new(name => 'schema')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
179 NodeSet->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
180 Node->new(name => 'ComplexNode', type => 'ComplexNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
181 Node->new(name => 'ComplexType', type => 'ComplexType', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
182 Node->new(name => 'SimpleNode', type => 'SimpleNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
183 Node->new(name => 'SimpleType', type => 'SimpleType', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
184 Node->new(name => 'Node', type => 'Node', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
185 SimpleNode->new(name => 'Include', minOccur => 0, maxOccur=>'unbounded')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
186 Property->new(name => 'source')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
187 )
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
188 ),
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
189 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
190 ComplexType->new(type => 'NodeSet', nativeType => 'IMPL::DOM::Schema::NodeSet')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
191 NodeSet->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
192 Node->new(name => 'ComplexNode', type => 'ComplexNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
193 Node->new(name => 'SimpleNode', type => 'SimpleNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
194 Node->new(name => 'Node', type=>'Node', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
195 SwitchNode->new(minOccur => 0, maxOccur => 1)->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
196 Node->new(name => 'AnyNode', type => 'AnyNode'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
197 Node->new(name => 'SwitchNode',type => 'SwitchNode')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
198 )
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
199 )
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
200 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
201 ComplexType->new(type => 'SwitchNode', nativeType => 'IMPL::DOM::Schema::SwitchNode')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
202 NodeSet->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
203 Node->new(name => 'ComplexNode', type=>'ComplexNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
204 Node->new(name => 'SimpleNode', type=>'SimpleNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
205 Node->new(name => 'Node', type=>'Node', minOccur => 0, maxOccur=>'unbounded'),
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
206 )
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
207 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
208 ComplexType->new(type => 'NodeList', nativeType => 'IMPL::DOM::Schema::NodeList')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
209 NodeSet->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
210 Node->new(name => 'ComplexNode', type => 'ComplexNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
211 Node->new(name => 'SimpleNode', type => 'SimpleNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
212 Node->new(name => 'SwitchNode',type => 'SwitchNode', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
213 Node->new(name => 'Node', type => 'Node', minOccur => 0, maxOccur=>'unbounded'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
214 Node->new(name => 'AnyNode', type => 'AnyNode', minOccur => 0, maxOccur=>'unbounded'),
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
215 )
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
216 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
217 ComplexType->new(type => 'ComplexType', nativeType => 'IMPL::DOM::Schema::ComplexType')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
218 NodeList->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
219 SwitchNode->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
220 Node->new(name => 'NodeSet', type => 'NodeSet'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
221 Node->new(name => 'NodeList',type => 'NodeList'),
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
222 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
223 Node->new(name => 'Property', type=>'Property', maxOccur=>'unbounded', minOccur=>0),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
224 AnyNode->new(maxOccur => 'unbounded', minOccur => 0, type=>'Validator')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
225 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
226 Property->new(name => 'type')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
227 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
228 ComplexType->new(type => 'ComplexNode', nativeType => 'IMPL::DOM::Schema::ComplexNode')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
229 NodeList->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
230 SwitchNode->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
231 Node->new(name => 'NodeSet', type => 'NodeSet'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
232 Node->new(name => 'NodeList',type => 'NodeList'),
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
233 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
234 Node->new(name => 'Property', type=>'Property', maxOccur=>'unbounded', minOccur=>0),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
235 AnyNode->new(maxOccur => 'unbounded', minOccur => 0, type=>'Validator')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
236 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
237 Property->new(name => 'name')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
238 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
239 ComplexType->new(type => 'SimpleType', nativeType => 'IMPL::DOM::Schema::SimpleType')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
240 NodeList->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
241 Node->new(name => 'Property', type=>'Property', maxOccur=>'unbounded', minOccur=>0),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
242 AnyNode->new(maxOccur => 'unbounded', minOccur => 0, type=>'Validator')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
243 ),
389
5aff94ba842f DOM Schema refactoring complete
cin
parents: 383
diff changeset
244 Property->new(name => 'type')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
245 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
246 ComplexType->new(type => 'SimpleNode', nativeType => 'IMPL::DOM::Schema::SimpleNode')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
247 NodeList->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
248 Node->new(name => 'Property', type=>'Property', maxOccur=>'unbounded', minOccur=>0),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
249 AnyNode->new(maxOccur => 'unbounded', minOccur => 0, type=>'Validator')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
250 ),
389
5aff94ba842f DOM Schema refactoring complete
cin
parents: 383
diff changeset
251 Property->new(name => 'name')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
252 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
253 ComplexType->new(type => 'Validator', nativeType => 'IMPL::DOM::Schema::Validator')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
254 NodeList->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
255 AnyNode->new(maxOccur => 'unbounded', minOccur => 0)
100
df6b4f054957 Schema in progress
wizard
parents: 98
diff changeset
256 )
102
cf3b6ef2be22 Schema beta version
wizard
parents: 101
diff changeset
257 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
258 ComplexType->new(type => 'Property', nativeType => 'IMPL::DOM::Schema::Property' )->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
259 NodeList->new()->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
260 AnyNode->new(maxOccur => 'unbounded', minOccur => 0)
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
261 ),
389
5aff94ba842f DOM Schema refactoring complete
cin
parents: 383
diff changeset
262 Property->new(name => 'name')
104
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents: 103
diff changeset
263 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
264 SimpleType->new(type => 'Node', nativeType => 'IMPL::DOM::Schema::Node')->appendRange(
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
265 Property->new(name => 'name'),
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
266 Property->new(name => 'type')
104
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents: 103
diff changeset
267 ),
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 194
diff changeset
268 SimpleType->new(type => 'AnyNode', nativeType => 'IMPL::DOM::Schema::AnyNode')
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
269 );
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
270
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
271 $schema->Process;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
272
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
273 return $schema;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
274 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
275
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
276 1;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
277
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
278 __END__
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
279
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
280 =pod
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
281
98
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
282 =head1 NAME
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
283
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
284 C<IMPL::DOM::Schema> - Схема документа.
98
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
285
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
286 =head1 DESCRIPTION
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
287
166
4267a2ac3d46 Added Class::Template,
wizard
parents: 152
diff changeset
288 C<use parent qw(IMPL::DOM::Document)>
98
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
289
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
290 DOM схема - это документ, состоящий из определенных узлов, описывающая структуру
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
291 других документов.
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
292
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
293 =head1 METHODS
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
294
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
295 =over
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
296
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
297 =item C<< $obj->Process() >>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
298
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
299 Обновляет таблицу типов из содержимого.
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
300
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
301 =item C<< $obj->ResolveType($typeName) >>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
302
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
303 Возвращает схему типа c именем C<$typeName>.
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
304
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
305 =back
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
306
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
307 =head1 META SCHEMA
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
308
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
309 Схема для описания схемы, эта схема используется для постороения других схем, выглядит приблизительно так
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
310
98
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
311 =begin code xml
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
312
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
313 <schema>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
314 <ComplexNode name="schema">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
315 <NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
316 <Node minOcuur="0" maxOccur="unbounded" name="ComplexNode" type="ComplexNode"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
317 <Node minOcuur="0" maxOccur="unbounded" name="SimpleNode" type="SimpleNode"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
318 <Node minOcuur="0" maxOccur="unbounded" name="ComplexType" type="ComplexType"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
319 <Node minOcuur="0" maxOccur="unbounded" name="SimpleType" type="SimpleType"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
320 <SimpleNode minOcuur="0" maxOccur="unbounded" name="Node"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
321 <SimpleNode minOcuur="0" maxOccur="unbounded" name="Include"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
322 </NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
323 </ComplexNode>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
324
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
325 <ComplexType type="NodeContainer">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
326 <NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
327 <Node minOcuur="0" maxOccur="unbounded" name="ComplexNode" type="ComplexNode"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
328 <Node minOcuur="0" maxOccur="unbounded" name="SimpleNode" type="SimpleNode"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
329 <SimpleNode minOcuur="0" maxOccur="unbounded" name="Node"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
330 </NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
331 </ComplexType>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
332
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
333 <ComplexType type="ComplexType">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
334 <NodeList>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
335 <Node name="NodeSet" type="NodeContainer" minOcuur=0/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
336 <Node name="NodeList" type="NodeContainer" minOccur=0/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
337 <AnyNode minOccur="0" maxOccur="unbounded" type="Validator"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
338 </NodeList>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
339 </ComplexType>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
340
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
341 <ComplexType type="ComplexNode">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
342 <NodeList>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
343 <Node name="NodeSet" type="NodeContainer" minOcuur=0/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
344 <Node name="NodeList" type="NodeContainer" minOccur=0/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
345 <AnyNode minOccur="0" maxOccur="unbounded" type="Validator"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
346 </NodeList>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
347 </ComplexType>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
348
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
349 <ComplexType type="SimpleNode">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
350 <NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
351 <AnyNode minOccur=0 maxOccur="unbounded" type="Validator"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
352 </NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
353 </ComplexType>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
354
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
355 <ComplexType type="SimpleType">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
356 <NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
357 <AnyNode minOccur=0 maxOccur="unbounded" type="Validator"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
358 </NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
359 </ComplexType>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
360
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
361 <ComplexType type="Validator">
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
362 <NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
363 <AnyNode minOccur=0 maxOccur="unbounded"/>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
364 </NodeSet>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
365 </ComplexType>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
366
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
367 </schema>
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
368
98
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
369 =end code xml
00d88c5e8203 minor changes
wizard
parents: 49
diff changeset
370
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 37
diff changeset
371 =cut