| 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.007'); | |
| 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__ | ||