File Coverage

blib/lib/W3C/SOAP/WSDL/Document/Service.pm
Criterion Covered Total %
statement 27 33 81.8
branch n/a
condition n/a
subroutine 9 10 90.0
pod n/a
total 36 43 83.7


line stmt bran cond sub pod time code
1             package W3C::SOAP::WSDL::Document::Service;
2              
3             # Created on: 2012-05-27 19:25:41
4             # Create by: Ivan Wills
5             # $Id$
6             # $Revision$, $HeadURL$, $Date$
7             # $Revision$, $Source$, $Date$
8              
9 1     1   1353 use Moose;
  1         2  
  1         7  
10 1     1   5196 use warnings;
  1         3  
  1         25  
11 1     1   4 use version;
  1         2  
  1         7  
12 1     1   56 use Carp;
  1         1  
  1         72  
13 1     1   5 use Scalar::Util;
  1         2  
  1         27  
14 1     1   5 use List::Util;
  1         1  
  1         52  
15             #use List::MoreUtils;
16 1     1   5 use Data::Dumper qw/Dumper/;
  1         1  
  1         85  
17 1     1   7 use English qw/ -no_match_vars /;
  1         1  
  1         7  
18 1     1   909 use W3C::SOAP::WSDL::Document::Port;
  1         3  
  1         197  
19              
20             extends 'W3C::SOAP::Document::Node';
21              
22             our $VERSION = version->new('0.11');
23              
24             has ports => (
25             is => 'rw',
26             isa => 'ArrayRef[W3C::SOAP::WSDL::Document::Port]',
27             builder => '_ports',
28             lazy => 1,
29             );
30              
31             sub _ports {
32 0     0     my ($self) = @_;
33 0           my @complex_types;
34 0           my @nodes = $self->document->xpc->findnodes('wsdl:port', $self->node);
35              
36 0           for my $node (@nodes) {
37 0           push @complex_types, W3C::SOAP::WSDL::Document::Port->new(
38             parent_node => $self,
39             node => $node,
40             );
41             }
42              
43 0           return \@complex_types;
44             }
45              
46             1;
47              
48             __END__
49              
50             =head1 NAME
51              
52             W3C::SOAP::WSDL::Document::Service - Represents the services in a WSDL document
53              
54             =head1 VERSION
55              
56             This documentation refers to W3C::SOAP::WSDL::Document::Service version 0.11.
57              
58              
59             =head1 SYNOPSIS
60              
61             use W3C::SOAP::WSDL::Document::Service;
62              
63             # Brief but working code example(s) here showing the most common usage(s)
64             # This section will be as far as many users bother reading, so make it as
65             # educational and exemplary as possible.
66              
67              
68             =head1 DESCRIPTION
69              
70             A C<W3C::SOAP::WSDL::Document::Service> object represents the service tags
71             in a WSDL document.
72              
73             =head1 SUBROUTINES/METHODS
74              
75             =over 4
76              
77             =back
78              
79             =head1 DIAGNOSTICS
80              
81             =head1 CONFIGURATION AND ENVIRONMENT
82              
83             =head1 DEPENDENCIES
84              
85             =head1 INCOMPATIBILITIES
86              
87             =head1 BUGS AND LIMITATIONS
88              
89             There are no known bugs in this module.
90              
91             Please report problems to Ivan Wills (ivan.wills@gmail.com).
92              
93             Patches are welcome.
94              
95             =head1 AUTHOR
96              
97             Ivan Wills - (ivan.wills@gmail.com)
98              
99             =head1 LICENSE AND COPYRIGHT
100              
101             Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
102             All rights reserved.
103              
104             This module is free software; you can redistribute it and/or modify it under
105             the same terms as Perl itself. See L<perlartistic>. This program is
106             distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
107             without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
108             PARTICULAR PURPOSE.
109              
110             =cut