| 1 | package W3C::SOAP::XSD::Document::Type; | ||||||||||
| 2 | |||||||||||
| 3 | # Created on: 2012-06-06 14:00:31 | ||||||||||
| 4 | # Create by: dev | ||||||||||
| 5 | # $Id$ | ||||||||||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||||||||||
| 7 | # $Revision$, $Source$, $Date$ | ||||||||||
| 8 | |||||||||||
| 9 | 7 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 7 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 7 | ▶ | use Scalar::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 7 | ▶ | use List::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | #use List::MoreUtils; | ||||||||||
| 15 | 7 | ▶ | use Data::Dumper qw/Dumper/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 7 | ▶ | use English qw/ -no_match_vars /; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 7 | extends 'W3C::SOAP::XSD::Document::Node'; | |||||||||
| 19 | |||||||||||
| 20 | 7 | our $VERSION = 0.13; | |||||||||
| 21 | |||||||||||
| 22 | 7 | has documentation => ( | |||||||||
| 23 | is => 'rw', | ||||||||||
| 24 | isa => 'Str', | ||||||||||
| 25 | builder => '_documentation', | ||||||||||
| 26 | lazy => 1, | ||||||||||
| 27 | ); | ||||||||||
| 28 | |||||||||||
| 29 | sub _documentation { | ||||||||||
| 30 | 23 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
_documentation: called CC=2 SCAR=9.2
| |||||||||||
| 31 | 23 | my ($documentation) = $self->document->xpc->findnodes('xsd:annotation/xsd:documentation', $self->node); | |||||||||
| 32 | |||||||||||
| 33 | 23 | ▶ | return '' unless $documentation; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | |||||||||||
| 35 | 0 | $documentation = $documentation->textContent; | |||||||||
| 36 | 0 | $documentation =~ s/^\s+|\s+$//g; | |||||||||
| 37 | |||||||||||
| 38 | 0 | return $documentation; | |||||||||
| 39 | } | ||||||||||
| 40 | |||||||||||
| 41 | 7 | 1; | |||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||
| 44 | |||||||||||
| 45 | =head1 NAME | ||||||||||
| 46 | |||||||||||
| 47 | W3C::SOAP::XSD::Document::Type - Represents type elements of XSD documents | ||||||||||
| 48 | |||||||||||
| 49 | =head1 VERSION | ||||||||||
| 50 | |||||||||||
| 51 | This documentation refers to W3C::SOAP::XSD::Document::Type version 0.13. | ||||||||||
| 52 | |||||||||||
| 53 | |||||||||||
| 54 | =head1 SYNOPSIS | ||||||||||
| 55 | |||||||||||
| 56 | use W3C::SOAP::XSD::Document::Type; | ||||||||||
| 57 | |||||||||||
| 58 | # Brief but working code example(s) here showing the most common usage(s) | ||||||||||
| 59 | # This section will be as far as many users bother reading, so make it as | ||||||||||
| 60 | # educational and exemplary as possible. | ||||||||||
| 61 | |||||||||||
| 62 | |||||||||||
| 63 | =head1 DESCRIPTION | ||||||||||
| 64 | |||||||||||
| 65 | |||||||||||
| 66 | =head1 SUBROUTINES/METHODS | ||||||||||
| 67 | |||||||||||
| 68 | |||||||||||
| 69 | |||||||||||
| 70 | |||||||||||
| 71 | =head1 DIAGNOSTICS | ||||||||||
| 72 | |||||||||||
| 73 | =head1 CONFIGURATION AND ENVIRONMENT | ||||||||||
| 74 | |||||||||||
| 75 | =head1 DEPENDENCIES | ||||||||||
| 76 | |||||||||||
| 77 | =head1 INCOMPATIBILITIES | ||||||||||
| 78 | |||||||||||
| 79 | =head1 BUGS AND LIMITATIONS | ||||||||||
| 80 | |||||||||||
| 81 | There are no known bugs in this module. | ||||||||||
| 82 | |||||||||||
| 83 | Please report problems to Ivan Wills - (ivan.wills@gmail.com) | ||||||||||
| 84 | |||||||||||
| 85 | Patches are welcome. | ||||||||||
| 86 | |||||||||||
| 87 | =head1 AUTHOR | ||||||||||
| 88 | |||||||||||
| 89 | Ivan Wills - (ivan.wills@gmail.com) | ||||||||||
| 90 | |||||||||||
| 91 | =head1 LICENSE AND COPYRIGHT | ||||||||||
| 92 | |||||||||||
| 93 | Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). | ||||||||||
| 94 | All rights reserved. | ||||||||||
| 95 | |||||||||||
| 96 | This module is free software; you can redistribute it and/or modify it under | ||||||||||
| 97 | the same terms as Perl itself. See L<perlartistic>. This program is | ||||||||||
| 98 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||||||||||
| 99 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||||||||||
| 100 | PARTICULAR PURPOSE. | ||||||||||
| 101 | |||||||||||
| 102 | =cut | ||||||||||