| 1 | package W3C::SOAP::WADL::XSD; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | # Created on: 2014-07-22 20:38:05 | ||||||||||||||
| 4 | # Create by: Ivan Wills | ||||||||||||||
| 5 | # $Id$ | ||||||||||||||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||||||||||||||
| 7 | # $Revision$, $Source$, $Date$ | ||||||||||||||
| 8 | |||||||||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 10 | 1 | ▶ | use namespace::autoclean; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 11 | 1 | ▶ | use version; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 12 | 1 | ▶ | use Carp; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 13 | 1 | ▶ | use Data::Dumper qw/Dumper/; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | 1 | ▶ | use English qw/ -no_match_vars /; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 15 | |||||||||||||||
| 16 | 1 | extends 'W3C::SOAP::XSD::Document'; | |||||||||||||
| 17 | |||||||||||||||
| 18 | 1 | our $VERSION = version->new('0.006'); | |||||||||||||
| 19 | |||||||||||||||
| 20 | around BUILDARGS => sub { | ||||||||||||||
| 21 | 0 | ▶ | my ($orig, $class, @args) = @_; | ||||||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||||||
| 22 | 0 | ▶ | my $args | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 23 | = !@args ? {} | ||||||||||||||
| 24 | : @args == 1 ? $args[0] | ||||||||||||||
| 25 | : {@args}; | ||||||||||||||
| 26 | |||||||||||||||
| 27 | 0 | ▶ | if ( $args->{node} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 28 | 0 | my $uri = $args->{node}->ownerDocument->URI; | |||||||||||||
| 29 | 0 | $uri =~ s{/([^/]+)$}{/}xms; | |||||||||||||
| 30 | 0 | $args->{location} = $uri . $args->{node}->getAttribute('href'); | |||||||||||||
| 31 | } | ||||||||||||||
| 32 | 0 | warn Dumper $args; | |||||||||||||
| 33 | |||||||||||||||
| 34 | 0 | return $class->$orig($args); | |||||||||||||
| 35 | 1 | }; | |||||||||||||
| 36 | |||||||||||||||
| 37 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||||||
| 38 | |||||||||||||||
| 39 | 1 | 1; | |||||||||||||
| 40 | |||||||||||||||
| 41 | __END__ | ||||||||||||||
| 42 | |||||||||||||||
| 43 | =head1 NAME | ||||||||||||||
| 44 | |||||||||||||||
| 45 | W3C::SOAP::WADL::XSD - Container for WADL XSD includes | ||||||||||||||
| 46 | |||||||||||||||
| 47 | =head1 VERSION | ||||||||||||||
| 48 | |||||||||||||||
| 49 | This documentation refers to W3C::SOAP::WADL::XSD version 0.006. | ||||||||||||||
| 50 | |||||||||||||||
| 51 | =head1 SYNOPSIS | ||||||||||||||
| 52 | |||||||||||||||
| 53 | use W3C::SOAP::WADL::XSD; | ||||||||||||||
| 54 | |||||||||||||||
| 55 | # Brief but working code example(s) here showing the most common usage(s) | ||||||||||||||
| 56 | # This section will be as far as many users bother reading, so make it as | ||||||||||||||
| 57 | # educational and exemplary as possible. | ||||||||||||||
| 58 | |||||||||||||||
| 59 | =head1 DESCRIPTION | ||||||||||||||
| 60 | |||||||||||||||
| 61 | =head1 SUBROUTINES/METHODS | ||||||||||||||
| 62 | |||||||||||||||
| 63 | =head1 DIAGNOSTICS | ||||||||||||||
| 64 | |||||||||||||||
| 65 | =head1 CONFIGURATION AND ENVIRONMENT | ||||||||||||||
| 66 | |||||||||||||||
| 67 | =head1 DEPENDENCIES | ||||||||||||||
| 68 | |||||||||||||||
| 69 | =head1 INCOMPATIBILITIES | ||||||||||||||
| 70 | |||||||||||||||
| 71 | =head1 BUGS AND LIMITATIONS | ||||||||||||||
| 72 | |||||||||||||||
| 73 | There are no known bugs in this module. | ||||||||||||||
| 74 | |||||||||||||||
| 75 | Please report problems to Ivan Wills (ivan.wills@gmail.com). | ||||||||||||||
| 76 | |||||||||||||||
| 77 | Patches are welcome. | ||||||||||||||
| 78 | |||||||||||||||
| 79 | =head1 AUTHOR | ||||||||||||||
| 80 | |||||||||||||||
| 81 | Ivan Wills - (ivan.wills@gmail.com) | ||||||||||||||
| 82 | |||||||||||||||
| 83 | =head1 LICENSE AND COPYRIGHT | ||||||||||||||
| 84 | |||||||||||||||
| 85 | Copyright (c) 2014 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). | ||||||||||||||
| 86 | All rights reserved. | ||||||||||||||
| 87 | |||||||||||||||
| 88 | This module is free software; you can redistribute it and/or modify it under | ||||||||||||||
| 89 | the same terms as Perl itself. See L<perlartistic>. This program is | ||||||||||||||
| 90 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||||||||||||||
| 91 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||||||||||||||
| 92 | PARTICULAR PURPOSE. | ||||||||||||||
| 93 | |||||||||||||||
| 94 | =cut | ||||||||||||||