line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::SRS::Handle::Create; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
1638
|
$XML::SRS::Handle::Create::VERSION = '0.09'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
19834
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use PRANG::Graph; |
8
|
|
|
|
|
|
|
use XML::SRS::Types; |
9
|
|
|
|
|
|
|
use XML::SRS::Server::List; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# attributes |
12
|
|
|
|
|
|
|
has_attr 'handle_id' => |
13
|
|
|
|
|
|
|
is => "ro", |
14
|
|
|
|
|
|
|
isa => "Str", |
15
|
|
|
|
|
|
|
xml_name => "HandleId", |
16
|
|
|
|
|
|
|
predicate => "has_handle_id", |
17
|
|
|
|
|
|
|
; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has_attr 'name' => |
20
|
|
|
|
|
|
|
is => "ro", |
21
|
|
|
|
|
|
|
isa => "Str", |
22
|
|
|
|
|
|
|
xml_name => "Name", |
23
|
|
|
|
|
|
|
predicate => "has_name", |
24
|
|
|
|
|
|
|
; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has_attr 'email' => |
27
|
|
|
|
|
|
|
is => "ro", |
28
|
|
|
|
|
|
|
isa => "Str", |
29
|
|
|
|
|
|
|
xml_name => "Email", |
30
|
|
|
|
|
|
|
predicate => "has_email", |
31
|
|
|
|
|
|
|
; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# elements |
34
|
|
|
|
|
|
|
has_element 'address' => |
35
|
|
|
|
|
|
|
is => "ro", |
36
|
|
|
|
|
|
|
isa => "XML::SRS::Contact::Address", |
37
|
|
|
|
|
|
|
xml_nodeName => "PostalAddress", |
38
|
|
|
|
|
|
|
predicate => "has_address", |
39
|
|
|
|
|
|
|
coerce => 1, |
40
|
|
|
|
|
|
|
; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
has_element 'phone' => |
43
|
|
|
|
|
|
|
is => "ro", |
44
|
|
|
|
|
|
|
isa => "XML::SRS::Contact::PSTN", |
45
|
|
|
|
|
|
|
predicate => "has_phone", |
46
|
|
|
|
|
|
|
xml_nodeName => "Phone", |
47
|
|
|
|
|
|
|
coerce => 1, |
48
|
|
|
|
|
|
|
; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
has_element 'fax' => |
51
|
|
|
|
|
|
|
is => "ro", |
52
|
|
|
|
|
|
|
isa => "XML::SRS::Contact::PSTN", |
53
|
|
|
|
|
|
|
predicate => "has_fax", |
54
|
|
|
|
|
|
|
xml_nodeName => "Fax", |
55
|
|
|
|
|
|
|
coerce => 1, |
56
|
|
|
|
|
|
|
; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
has_element 'audit' => |
59
|
|
|
|
|
|
|
is => "rw", |
60
|
|
|
|
|
|
|
isa => "XML::SRS::AuditDetails", |
61
|
|
|
|
|
|
|
xml_nodeName => "AuditDetails", |
62
|
|
|
|
|
|
|
predicate => "has_audit", |
63
|
|
|
|
|
|
|
; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
with 'XML::SRS::Audit'; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub root_element {'HandleCreate'} |
68
|
|
|
|
|
|
|
with 'XML::SRS::Action'; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
1; |