blib/lib/W3C/SOAP/WADL/Document.pm

filter: Statementstmt 97.6% 42 / 43 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod n/a totaltotal 96.1% 50 / 52 CC 1 SCAR 1.1
CC
1
Cov
98%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/W3C/SOAP/WADL/Utils.pm ↑ Summary blib/lib/W3C/SOAP/WADL/Document/Doc.pm »
1 package W3C::SOAP::WADL::Document;
2  
3 # Created on: 2013-04-21 10:44:31
4 # Create by: Ivan Wills
5 # $Id$
6 # $Revision$, $HeadURL$, $Date$
7 # $Revision$, $Source$, $Date$
8  
9 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use XML::Rabbit::Root;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use version;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use Data::Dumper qw/Dumper/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶use English qw/ -no_match_vars /;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 ▶use W3C::SOAP::WADL::Document::Resources;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 3 our $VERSION = version->new('0.006');
19  
20 3 add_xpath_namespace wadl => 'http://wadl.dev.java.net/2009/02';
21 3 add_xpath_namespace json => 'http://rest.domain.gdl.optus.com.au/rest/3/common-json';
22  
23 3 has_xpath_value target_namespace => './@targetNamespace';
24 3 has_xpath_value_list doc => './doc';
25  
26 3 has_xpath_object grammars => (
27 '//wadl:grammars' => 'W3C::SOAP::WADL::Document::Grammars',
28 );
29 3 has_xpath_object_list resources => (
30 '//wadl:resources' => 'W3C::SOAP::WADL::Document::Resources',
31 );
32 3 has_xpath_object_list resource_type => (
33 '//wadl:resource_type' => 'W3C::SOAP::WADL::Document::ResourceType',
34 );
35 3 has_xpath_object_list method => (
36 '//wadl:method' => 'W3C::SOAP::WADL::Document::Method',
37 );
38 3 has_xpath_object_list representation => (
39 '//wadl:representation' => 'W3C::SOAP::WADL::Document::Representation',
40 );
41 3 has_xpath_object_list param => (
42 '//wadl:param' => 'W3C::SOAP::WADL::Document::Param',
43 );
44 3 has_xpath_object_list schemas => (
45 '//wadl:grammars/wadl:include' => 'W3C::SOAP::WADL::XSD',
46 );
47  
48 3 has module => (
49 is => 'rw',
50 isa => 'Str',
51 predicate => 'has_module',
52 );
53 3 has module_base => (
54 is => 'rw',
55 isa => 'Str',
56 predicate => 'has_module_base',
57 );
58 3 has file => (
59 is => 'rw',
60 isa => 'Str',
61 predicate => 'has_file',
62 );
63 has ns_module_map => (
64 is => 'rw',
65 isa => 'HashRef[Str]',
66 required => 1,
67 predicate => 'has_ns_module_map',
68 0 ▶ default => sub{{}},
Subroutine __ANON__: not called CC=1 SCAR=6.9
69 3 );
70  
71 3 finalize_class();
72  
73 3 1;
74  
75 __END__
76  
77 =head1 NAME
78  
79 W3C::SOAP::WADL::Document - The representation of the WADL document
80  
81 =head1 VERSION
82  
83 This documentation refers to W3C::SOAP::WADL::Document version 0.006.
84  
85 =head1 SYNOPSIS
86  
87 use W3C::SOAP::WADL::Document;
88  
89 # create a document
90 my $doc = W3C::SOAP::WADL::Document->new( file => 'file_or_url', );
91  
92 =head1 DESCRIPTION
93  
94 =head1 SUBROUTINES/METHODS
95  
96 =over 4
97  
98 =item target_namespace
99  
100 =item doc
101  
102 =item grammars
103  
104 =item resources
105  
106 =item resource_type
107  
108 =item method
109  
110 =item representation
111  
112 =item param
113  
114 =item module
115  
116 =item module_base
117  
118 =item file
119  
120 =back
121  
122 =head1 DIAGNOSTICS
123  
124 =head1 CONFIGURATION AND ENVIRONMENT
125  
126 =head1 DEPENDENCIES
127  
128 =head1 INCOMPATIBILITIES
129  
130 =head1 BUGS AND LIMITATIONS
131  
132 There are no known bugs in this module.
133  
134 Please report problems to Ivan Wills (ivan.wills@gmail.com).
135  
136 Patches are welcome.
137  
138 =head1 AUTHOR
139  
140 Ivan Wills - (ivan.wills@gmail.com)
141  
142 =head1 LICENSE AND COPYRIGHT
143  
144 Copyright (c) 2013 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
145 All rights reserved.
146  
147 This module is free software; you can redistribute it and/or modify it under
148 the same terms as Perl itself. See L<perlartistic>. This program is
149 distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
150 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
151 PARTICULAR PURPOSE.
152  
153 =cut
« blib/lib/W3C/SOAP/WADL/Utils.pm ↑ Summary blib/lib/W3C/SOAP/WADL/Document/Doc.pm »