test/out/lib/XML/Pastor/Test/Pastor/Meta.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« test/out/lib/XML/Pastor/Test.pm ↑ Summary test/out/lib/XML/Pastor/Test/Type/Code.pm »
1  
2 #PASTOR: Code generated by XML::Pastor/1.0.4 at 'Fri Oct 30 23:33:56 2026'
3  
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶no warnings qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use XML::Pastor;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12  
13 package XML::Pastor::Test::Pastor::Meta;
14  
15  
16 1 our @ISA=qw(XML::Pastor::Meta);
17  
18 1 XML::Pastor::Test::Pastor::Meta->Model( bless( {
19 'attribute' => {},
20 'attributeGroup' => {},
21 'defaultNamespace' => bless( {
22 'classPrefix' => undef,
23 'id' => 0,
24 'nsPrefix' => undef,
25 'uri' => 'http://www.example.com/country',
26 'usageCount' => 1
27 }, 'XML::Pastor::Schema::NamespaceInfo' ),
28 'element' => {
29 'city|http://www.example.com/country' => bless( {
30 'baseClasses' => [
31 'XML::Pastor::Test::Type::City',
32 'XML::Pastor::Element'
33 ],
34 'class' => 'XML::Pastor::Test::city',
35 'isRedefinable' => 1,
36 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
37 'name' => 'city',
38 'scope' => 'global',
39 'targetNamespace' => 'http://www.example.com/country',
40 'type' => 'City|http://www.example.com/country'
41 }, 'XML::Pastor::Schema::Element' ),
42 'country|http://www.example.com/country' => bless( {
43 'baseClasses' => [
44 'XML::Pastor::Test::Type::Country',
45 'XML::Pastor::Element'
46 ],
47 'class' => 'XML::Pastor::Test::country',
48 'isRedefinable' => 1,
49 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
50 'name' => 'country',
51 'scope' => 'global',
52 'targetNamespace' => 'http://www.example.com/country',
53 'type' => 'Country|http://www.example.com/country'
54 }, 'XML::Pastor::Schema::Element' ),
55 'population|http://www.example.com/country' => bless( {
56 'baseClasses' => [
57 'XML::Pastor::Test::Type::Population',
58 'XML::Pastor::Element'
59 ],
60 'class' => 'XML::Pastor::Test::population',
61 'isRedefinable' => 1,
62 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
63 'name' => 'population',
64 'scope' => 'global',
65 'targetNamespace' => 'http://www.example.com/country',
66 'type' => 'Population|http://www.example.com/country'
67 }, 'XML::Pastor::Schema::Element' )
68 },
69 'group' => {},
70 'namespaceCounter' => 1,
71 'namespaces' => {
72 'http://www.example.com/country' => bless( {
73 'classPrefix' => undef,
74 'id' => 0,
75 'nsPrefix' => undef,
76 'uri' => 'http://www.example.com/country',
77 'usageCount' => 1
78 }, 'XML::Pastor::Schema::NamespaceInfo' )
79 },
80 'type' => {
81 'City|http://www.example.com/country' => bless( {
82 'attributeInfo' => {
83 'code' => bless( {
84 'class' => 'XML::Pastor::Test::Type::Code',
85 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
86 'name' => 'code',
87 'scope' => 'local',
88 'targetNamespace' => 'http://www.example.com/country',
89 'type' => 'Code|http://www.example.com/country',
90 'use' => 'required'
91 }, 'XML::Pastor::Schema::Attribute' )
92 },
93 'attributePrefix' => '_',
94 'attributes' => [
95 'code'
96 ],
97 'baseClasses' => [
98 'XML::Pastor::ComplexType'
99 ],
100 'class' => 'XML::Pastor::Test::Type::City',
101 'contentType' => 'complex',
102 'elementInfo' => {
103 'name' => bless( {
104 'class' => 'XML::Pastor::Builtin::string',
105 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
106 'minOccurs' => '0',
107 'name' => 'name',
108 'scope' => 'local',
109 'targetNamespace' => 'http://www.example.com/country',
110 'type' => 'string|http://www.w3.org/2001/XMLSchema'
111 }, 'XML::Pastor::Schema::Element' ),
112 'population' => bless( {
113 'class' => 'XML::Pastor::Test::Type::Population',
114 'definition' => bless( {
115 'baseClasses' => [
116 'XML::Pastor::Test::Type::Population',
117 'XML::Pastor::Element'
118 ],
119 'class' => 'XML::Pastor::Test::population',
120 'isRedefinable' => 1,
121 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
122 'name' => 'population',
123 'scope' => 'global',
124 'targetNamespace' => 'http://www.example.com/country',
125 'type' => 'Population|http://www.example.com/country'
126 }, 'XML::Pastor::Schema::Element' ),
127 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
128 'minOccurs' => '0',
129 'name' => 'population',
130 'nameIsAutoGenerated' => 1,
131 'ref' => 'population|http://www.example.com/country',
132 'scope' => 'local',
133 'targetNamespace' => 'http://www.example.com/country'
134 }, 'XML::Pastor::Schema::Element' )
135 },
136 'elements' => [
137 'name',
138 'population'
139 ],
140 'isRedefinable' => 1,
141 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
142 'name' => 'City',
143 'scope' => 'global',
144 'targetNamespace' => 'http://www.example.com/country'
145 }, 'XML::Pastor::Schema::ComplexType' ),
146 'CodeIATA|http://www.example.com/country' => bless( {
147 'base' => 'string|http://www.w3.org/2001/XMLSchema',
148 'baseClasses' => [
149 'XML::Pastor::Builtin::string'
150 ],
151 'class' => 'XML::Pastor::Test::Type::CodeIATA',
152 'contentType' => 'simple',
153 'derivedBy' => 'restriction',
154 'documentation' => bless( [
155 bless( {
156 'text' => '
157 The IATA code.
158 ',
159 'xml:lang' => 'en'
160 }, 'XML::Pastor::Schema::Documentation' )
161 ], 'Data::HashArray' ),
162 'isRedefinable' => 1,
163 'length' => '3',
164 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
165 'name' => 'CodeIATA',
166 'scope' => 'global',
167 'targetNamespace' => 'http://www.example.com/country',
168 'whiteSpace' => 'collapse'
169 }, 'XML::Pastor::Schema::SimpleType' ),
170 'CodeList|http://www.example.com/country' => bless( {
171 'base' => 'List|http://www.w3.org/2001/XMLSchema',
172 'baseClasses' => [
173 'XML::Pastor::Builtin::List'
174 ],
175 'class' => 'XML::Pastor::Test::Type::CodeList',
176 'contentType' => 'simple',
177 'derivedBy' => 'list',
178 'isRedefinable' => 1,
179 'itemClass' => 'XML::Pastor::Test::Type::Code',
180 'itemType' => 'Code',
181 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
182 'name' => 'CodeList',
183 'scope' => 'global',
184 'targetNamespace' => 'http://www.example.com/country'
185 }, 'XML::Pastor::Schema::SimpleType' ),
186 'CodeUNLocode|http://www.example.com/country' => bless( {
187 'base' => 'string|http://www.w3.org/2001/XMLSchema',
188 'baseClasses' => [
189 'XML::Pastor::Builtin::string'
190 ],
191 'class' => 'XML::Pastor::Test::Type::CodeUNLocode',
192 'contentType' => 'simple',
193 'derivedBy' => 'restriction',
194 'isRedefinable' => 1,
195 'maxLength' => '6',
196 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
197 'minLength' => '2',
198 'name' => 'CodeUNLocode',
199 'pattern' => [
200 'qsd',
201 'hello'
202 ],
203 'scope' => 'global',
204 'targetNamespace' => 'http://www.example.com/country'
205 }, 'XML::Pastor::Schema::SimpleType' ),
206 'Code_item_0001|http://www.example.com/country' => bless( {
207 'base' => 'Union|http://www.w3.org/2001/XMLSchema',
208 'baseClasses' => [
209 'XML::Pastor::Builtin::Union'
210 ],
211 'class' => 'XML::Pastor::Test::Type::Code_item_0001',
212 'contentType' => 'simple',
213 'derivedBy' => 'union',
214 'isRedefinable' => 1,
215 'memberClasses' => [
216 'XML::Pastor::Test::Type::Code_item_0002',
217 'XML::Pastor::Test::Type::Code_item_0003'
218 ],
219 'memberTypes' => 'Code_item_0002 Code_item_0003',
220 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
221 'name' => 'Code_item_0001',
222 'nameIsAutoGenerated' => 1,
223 'scope' => 'local',
224 'targetNamespace' => 'http://www.example.com/country'
225 }, 'XML::Pastor::Schema::SimpleType' ),
226 'Code_item_0002|http://www.example.com/country' => bless( {
227 'base' => 'string|http://www.w3.org/2001/XMLSchema',
228 'baseClasses' => [
229 'XML::Pastor::Builtin::string'
230 ],
231 'class' => 'XML::Pastor::Test::Type::Code_item_0002',
232 'contentType' => 'simple',
233 'derivedBy' => 'restriction',
234 'isRedefinable' => 1,
235 'maxLength' => '6',
236 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
237 'minLength' => '1',
238 'name' => 'Code_item_0002',
239 'nameIsAutoGenerated' => 1,
240 'scope' => 'local',
241 'targetNamespace' => 'http://www.example.com/country'
242 }, 'XML::Pastor::Schema::SimpleType' ),
243 'Code_item_0003|http://www.example.com/country' => bless( {
244 'base' => 'date|http://www.w3.org/2001/XMLSchema',
245 'baseClasses' => [
246 'XML::Pastor::Builtin::date'
247 ],
248 'class' => 'XML::Pastor::Test::Type::Code_item_0003',
249 'contentType' => 'simple',
250 'derivedBy' => 'restriction',
251 'isRedefinable' => 1,
252 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
253 'name' => 'Code_item_0003',
254 'nameIsAutoGenerated' => 1,
255 'scope' => 'local',
256 'targetNamespace' => 'http://www.example.com/country'
257 }, 'XML::Pastor::Schema::SimpleType' ),
258 'Code|http://www.example.com/country' => bless( {
259 'base' => 'Union|http://www.w3.org/2001/XMLSchema',
260 'baseClasses' => [
261 'XML::Pastor::Builtin::Union'
262 ],
263 'class' => 'XML::Pastor::Test::Type::Code',
264 'contentType' => 'simple',
265 'derivedBy' => 'union',
266 'isRedefinable' => 1,
267 'memberClasses' => [
268 'XML::Pastor::Test::Type::CodeIATA',
269 'XML::Pastor::Test::Type::CodeUNLocode',
270 'XML::Pastor::Test::Type::Code_item_0001'
271 ],
272 'memberTypes' => 'CodeIATA|http://www.example.com/country CodeUNLocode|http://www.example.com/country Code_item_0001',
273 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
274 'name' => 'Code',
275 'scope' => 'global',
276 'targetNamespace' => 'http://www.example.com/country'
277 }, 'XML::Pastor::Schema::SimpleType' ),
278 'Country_currency|http://www.example.com/country' => bless( {
279 'attributeInfo' => {
280 'code' => bless( {
281 'class' => 'XML::Pastor::Builtin::string',
282 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
283 'name' => 'code',
284 'scope' => 'local',
285 'targetNamespace' => 'http://www.example.com/country',
286 'type' => 'string|http://www.w3.org/2001/XMLSchema'
287 }, 'XML::Pastor::Schema::Attribute' ),
288 'name' => bless( {
289 'class' => 'XML::Pastor::Builtin::string',
290 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
291 'name' => 'name',
292 'scope' => 'local',
293 'targetNamespace' => 'http://www.example.com/country',
294 'type' => 'string|http://www.w3.org/2001/XMLSchema'
295 }, 'XML::Pastor::Schema::Attribute' )
296 },
297 'attributePrefix' => '_',
298 'attributes' => [
299 'code',
300 'name'
301 ],
302 'baseClasses' => [
303 'XML::Pastor::ComplexType'
304 ],
305 'class' => 'XML::Pastor::Test::Type::Country_currency',
306 'contentType' => 'complex',
307 'elementInfo' => {},
308 'elements' => [],
309 'isRedefinable' => 1,
310 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
311 'name' => 'Country_currency',
312 'nameIsAutoGenerated' => 1,
313 'scope' => 'local',
314 'targetNamespace' => 'http://www.example.com/country'
315 }, 'XML::Pastor::Schema::ComplexType' ),
316 'Country_name|http://www.example.com/country' => bless( {
317 'attributeInfo' => {
318 'lang' => bless( {
319 'class' => 'XML::Pastor::Builtin::string',
320 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
321 'name' => 'lang',
322 'scope' => 'local',
323 'targetNamespace' => 'http://www.example.com/country',
324 'type' => 'string|http://www.w3.org/2001/XMLSchema'
325 }, 'XML::Pastor::Schema::Attribute' )
326 },
327 'attributePrefix' => '_',
328 'attributes' => [
329 'lang'
330 ],
331 'base' => 'string|http://www.w3.org/2001/XMLSchema',
332 'baseClasses' => [
333 'XML::Pastor::Builtin::string'
334 ],
335 'class' => 'XML::Pastor::Test::Type::Country_name',
336 'contentType' => 'complex',
337 'derivedBy' => 'extension',
338 'elementInfo' => {},
339 'elements' => [],
340 'isRedefinable' => 1,
341 'isSimpleContent' => 1,
342 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
343 'name' => 'Country_name',
344 'nameIsAutoGenerated' => 1,
345 'scope' => 'local',
346 'targetNamespace' => 'http://www.example.com/country'
347 }, 'XML::Pastor::Schema::ComplexType' ),
348 'Country|http://www.example.com/country' => bless( {
349 'attributeInfo' => {
350 'code' => bless( {
351 'class' => 'XML::Pastor::Builtin::string',
352 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
353 'name' => 'code',
354 'scope' => 'local',
355 'targetNamespace' => 'http://www.example.com/country',
356 'type' => 'string|http://www.w3.org/2001/XMLSchema'
357 }, 'XML::Pastor::Schema::Attribute' )
358 },
359 'attributePrefix' => '_',
360 'attributes' => [
361 'code'
362 ],
363 'baseClasses' => [
364 'XML::Pastor::ComplexType'
365 ],
366 'class' => 'XML::Pastor::Test::Type::Country',
367 'contentType' => 'complex',
368 'elementInfo' => {
369 'city' => bless( {
370 'class' => 'XML::Pastor::Test::Type::City',
371 'definition' => bless( {
372 'baseClasses' => [
373 'XML::Pastor::Test::Type::City',
374 'XML::Pastor::Element'
375 ],
376 'class' => 'XML::Pastor::Test::city',
377 'isRedefinable' => 1,
378 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
379 'name' => 'city',
380 'scope' => 'global',
381 'targetNamespace' => 'http://www.example.com/country',
382 'type' => 'City|http://www.example.com/country'
383 }, 'XML::Pastor::Schema::Element' ),
384 'maxOccurs' => 'unbounded',
385 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
386 'minOccurs' => '0',
387 'name' => 'city',
388 'nameIsAutoGenerated' => 1,
389 'ref' => 'city|http://www.example.com/country',
390 'scope' => 'local',
391 'targetNamespace' => 'http://www.example.com/country'
392 }, 'XML::Pastor::Schema::Element' ),
393 'currency' => bless( {
394 'class' => 'XML::Pastor::Test::Type::Country_currency',
395 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
396 'minOccurs' => '0',
397 'name' => 'currency',
398 'scope' => 'local',
399 'targetNamespace' => 'http://www.example.com/country',
400 'type' => 'Country_currency|http://www.example.com/country'
401 }, 'XML::Pastor::Schema::Element' ),
402 'name' => bless( {
403 'class' => 'XML::Pastor::Test::Type::Country_name',
404 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
405 'minOccurs' => '0',
406 'name' => 'name',
407 'scope' => 'local',
408 'targetNamespace' => 'http://www.example.com/country',
409 'type' => 'Country_name|http://www.example.com/country'
410 }, 'XML::Pastor::Schema::Element' ),
411 'population' => bless( {
412 'class' => 'XML::Pastor::Test::Type::Population',
413 'definition' => bless( {
414 'baseClasses' => [
415 'XML::Pastor::Test::Type::Population',
416 'XML::Pastor::Element'
417 ],
418 'class' => 'XML::Pastor::Test::population',
419 'isRedefinable' => 1,
420 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
421 'name' => 'population',
422 'scope' => 'global',
423 'targetNamespace' => 'http://www.example.com/country',
424 'type' => 'Population|http://www.example.com/country'
425 }, 'XML::Pastor::Schema::Element' ),
426 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
427 'minOccurs' => '0',
428 'name' => 'population',
429 'nameIsAutoGenerated' => 1,
430 'ref' => 'population|http://www.example.com/country',
431 'scope' => 'local',
432 'targetNamespace' => 'http://www.example.com/country'
433 }, 'XML::Pastor::Schema::Element' )
434 },
435 'elements' => [
436 'name',
437 'population',
438 'currency',
439 'city'
440 ],
441 'isRedefinable' => 1,
442 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
443 'name' => 'Country',
444 'scope' => 'global',
445 'targetNamespace' => 'http://www.example.com/country'
446 }, 'XML::Pastor::Schema::ComplexType' ),
447 'Population|http://www.example.com/country' => bless( {
448 'attributeInfo' => {
449 'date' => bless( {
450 'class' => 'XML::Pastor::Builtin::date',
451 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
452 'name' => 'date',
453 'scope' => 'local',
454 'targetNamespace' => 'http://www.example.com/country',
455 'type' => 'date|http://www.w3.org/2001/XMLSchema'
456 }, 'XML::Pastor::Schema::Attribute' ),
457 'figure' => bless( {
458 'class' => 'XML::Pastor::Builtin::nonNegativeInteger',
459 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
460 'name' => 'figure',
461 'scope' => 'local',
462 'targetNamespace' => 'http://www.example.com/country',
463 'type' => 'nonNegativeInteger|http://www.w3.org/2001/XMLSchema'
464 }, 'XML::Pastor::Schema::Attribute' )
465 },
466 'attributePrefix' => '_',
467 'attributes' => [
468 'date',
469 'figure'
470 ],
471 'baseClasses' => [
472 'XML::Pastor::ComplexType'
473 ],
474 'class' => 'XML::Pastor::Test::Type::Population',
475 'contentType' => 'complex',
476 'elementInfo' => {},
477 'elements' => [],
478 'isRedefinable' => 1,
479 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
480 'name' => 'Population',
481 'scope' => 'global',
482 'targetNamespace' => 'http://www.example.com/country'
483 }, 'XML::Pastor::Schema::ComplexType' )
484 }
485 }, 'XML::Pastor::Schema::Model' ) );
486  
487 1 1;
« test/out/lib/XML/Pastor/Test.pm ↑ Summary test/out/lib/XML/Pastor/Test/Type/Code.pm »