blib/lib/SOAP/WSDL/XSD/Schema/Builtin.pm

filter: Statementstmt 100% 26 / 26 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 97.2% 35 / 36 CC 2 SCAR 2.2
CC
2
Cov
100%
START
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/SOAP/WSDL/PortType.pm ↑ Summary blib/lib/SOAP/WSDL/Transport/Loopback.pm »
1 package SOAP::WSDL::XSD::Schema::Builtin;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Class::Std::Fast::Storable;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use SOAP::WSDL::XSD::Schema;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use SOAP::WSDL::XSD::Builtin;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use base qw(SOAP::WSDL::XSD::Schema);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $VERSION = 3.004;
10  
11 # all builtin types - add validation (e.g. content restrictions) later...
12 1 my %BUILTINS = (
13 'anyType' => {},
14 'anySimpleType' => {},
15 'anyURI' => {},
16 'boolean' => {},
17 'base64Binary' => {},
18 'byte' => {},
19 'date' => {},
20 'dateTime' => {},
21 'decimal' => {},
22 'double' => {},
23 'duration' => {},
24 'ENTITY' => {},
25 'float' => {},
26 'gDay' => {},
27 'gMonth' => {},
28 'gMonthDay' => {},
29 'gYearMonth' => {},
30 'gYear' => {},
31 'hexBinary' => {},
32 'ID' => {},
33 'IDREF' => {},
34 'IDREFS' => {},
35 'int' => {},
36 'integer' => {},
37 'language' => {},
38 'long' => {},
39 'negativeInteger' => {},
40 'nonPositiveInteger' => {},
41 'nonNegativeInteger' => {},
42 'normalizedString' => {},
43 'Name' => {},
44 'NCName' => {},
45 'NMTOKEN' => {},
46 'NOTATION' => {},
47 'positiveInteger' => {},
48 'QName' => {},
49 'short' => {},
50 'string' => {},
51 'time' => {},
52 'token' => {},
53 'unsignedByte' => {},
54 'unsignedInt' => {},
55 'unsignedLong' => {},
56 'unsignedShort' => {},
57 );
58  
59 1 ▶sub START {
Subroutine START: called CC=2 SCAR=6.9
Pod undocumented
60 1 my $self = shift;
61 1 my @args = @_;
62  
63 1 ▶ while (my ($name, $value) = each %BUILTINS )
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %BUILTINS) 44 1 45
64 {
65 44 $self->push_type( SOAP::WSDL::XSD::Builtin->new({
66 name => $name,
67 targetNamespace => 'http://www.w3.org/2001/XMLSchema',
68 xmlns => {
69 '#default' => 'http://www.w3.org/2001/XMLSchema',
70 }
71 } )
72 );
73 }
74 1 return $self;
75 }
76  
77 1 1;
78  
79  
80 =pod
81  
82 =head1 NAME
83  
84 SOAP:WSDL::XSD::Schema::Builtin - Provides builtin XML Schema datatypes for parsing WSDL
85  
86 =head1 DESCRIPTION
87  
88 Used internally by SOAP::WSDL's WSDL parser.
89  
90 See <SOAP::WSDL::XSD::Typelib::Builtin|SOAP::WSDL::XSD::Typelib::Builtin> for
91 SOAP::WSDL::XSD's builtin XML Schema datatypes.
92  
93 =head1 LICENSE AND COPYRIGHT
94  
95 Copyright (c) 2007 Martin Kutter. All rights reserved.
96  
97 This file is part of SOAP-WSDL. You may distribute/modify it under
98 the same terms as perl itself
99  
100 =head1 AUTHOR
101  
102 Martin Kutter E<lt>martin.kutter fen-net.deE<gt>
103  
104 =head1 REPOSITORY INFORMATION
105  
106 $Rev: 851 $
107 $LastChangedBy: kutterma $
108 $Id: Builtin.pm 851 2009-05-15 22:45:18Z kutterma $
109 $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/XSD/Schema/Builtin.pm $
110  
111 =cut
112  
« blib/lib/SOAP/WSDL/PortType.pm ↑ Summary blib/lib/SOAP/WSDL/Transport/Loopback.pm »