« blib/lib/XML/Pastor/Schema/NamespaceInfo.pm
↑ Summary
blib/lib/XML/Pastor/Builtin/base64Binary.pm »
| 1 | 10 | ▶ | use utf8; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 10 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 10 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 10 | ▶ | no warnings qw(uninitialized); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | #================================================= | ||||||||||||||||||||
| 7 | package XML::Pastor::Schema::SimpleType; | ||||||||||||||||||||
| 8 | 10 | ▶ | use XML::Pastor::Schema::Type; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | 10 | our @ISA = qw(XML::Pastor::Schema::Type); | |||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 10 | XML::Pastor::Schema::SimpleType->mk_accessors( | |||||||||||||||||||
| 12 | qw( enumeration | ||||||||||||||||||||
| 13 | itemType itemClass | ||||||||||||||||||||
| 14 | length | ||||||||||||||||||||
| 15 | memberTypes memberClasses | ||||||||||||||||||||
| 16 | minLength maxLength | ||||||||||||||||||||
| 17 | minInclusive maxInclusive | ||||||||||||||||||||
| 18 | minExclusive maxExclusive | ||||||||||||||||||||
| 19 | pattern regex | ||||||||||||||||||||
| 20 | totalDigits fractionDigits | ||||||||||||||||||||
| 21 | whiteSpace | ||||||||||||||||||||
| 22 | )); | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | 50 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.6
Pod
documented
| |||||||||||||||||||||
| 26 | 50 | my $proto = shift; | |||||||||||||||||||
| 27 | 50 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 28 | 50 | my $self = {@_}; | |||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 50 | ▶ | unless ($self->{contentType}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 31 | 50 | $self->{contentType} = "simple"; | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 50 | return bless $self, $class; | |||||||||||||||||||
| 35 | } | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | 10 | 1; | |||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | __END__ | ||||||||||||||||||||