File Coverage

blib/lib/XML/EPP/Contact/Addr.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package XML::EPP::Contact::Addr;
2              
3 1     1   2594 use Moose;
  0            
  0            
4             use PRANG::Graph;
5             use Moose::Util::TypeConstraints;
6              
7             with 'XML::EPP::Contact::Node';
8              
9             my $PKG = __PACKAGE__;
10              
11             has_element 'street' =>
12             is => 'ro',
13             isa => 'ArrayRef[XML::EPP::Contact::optPostalLineType]',
14             xml_min => 0,
15             xml_max => 3,
16             ;
17              
18             has_element 'city' =>
19             is => 'ro',
20             isa => 'XML::EPP::Contact::postalLineType',
21             ;
22              
23             has_element 'sp' =>
24             is => 'ro',
25             isa => 'XML::EPP::Contact::optPostalLineType',
26             required => 0,
27             ;
28              
29             has_element 'pc' =>
30             is => 'ro',
31             isa => 'XML::EPP::Contact::optPostalLineType',
32             required => 0,
33             ;
34              
35             has_element 'cc' =>
36             is => 'ro',
37             isa => 'XML::EPP::Contact::ccType',
38             ;
39              
40             1;
41              
42             =head1 NAME
43              
44             XML::EPP::Contact::Addr - implement host:chgType
45              
46             =head1 SYNOPSIS
47              
48             TODO
49              
50             =head1 DESCRIPTION
51              
52             ...
53              
54             =head2 XML Schema Definition
55              
56             <complexType name="addrType">
57             <sequence>
58             <element name="street" type="contact:optPostalLineType"
59             minOccurs="0" maxOccurs="3"/>
60             <element name="city" type="contact:postalLineType"/>
61             <element name="sp" type="contact:optPostalLineType"
62             minOccurs="0"/>
63             <element name="pc" type="contact:pcType"
64             minOccurs="0"/>
65             <element name="cc" type="contact:ccType"/>
66             </sequence>
67             </complexType>
68              
69             =cut