line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package XML::EPP::SvcMenu; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
2560
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use MooseX::Method::Signatures; |
6
|
|
|
|
|
|
|
use Moose::Util::TypeConstraints; |
7
|
|
|
|
|
|
|
use PRANG::Graph; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $SCHEMA_PKG = "XML::EPP"; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has_element 'version' => |
12
|
|
|
|
|
|
|
is => "rw", |
13
|
|
|
|
|
|
|
isa => "ArrayRef[${SCHEMA_PKG}::versionType]", |
14
|
|
|
|
|
|
|
required => 1, |
15
|
|
|
|
|
|
|
; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has_element 'lang' => |
18
|
|
|
|
|
|
|
is => "rw", |
19
|
|
|
|
|
|
|
isa => "ArrayRef[PRANG::XMLSchema::language]", |
20
|
|
|
|
|
|
|
required => 1, |
21
|
|
|
|
|
|
|
; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has_element 'objURI' => |
24
|
|
|
|
|
|
|
is => "rw", |
25
|
|
|
|
|
|
|
isa => "ArrayRef[PRANG::XMLSchema::anyURI]", |
26
|
|
|
|
|
|
|
required => 1, |
27
|
|
|
|
|
|
|
; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has_element 'svcExtension' => |
30
|
|
|
|
|
|
|
is => "rw", |
31
|
|
|
|
|
|
|
isa => "${SCHEMA_PKG}::ExtURI", |
32
|
|
|
|
|
|
|
predicate => "has_svcExtension", |
33
|
|
|
|
|
|
|
; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
with 'XML::EPP::Node'; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
subtype "${SCHEMA_PKG}::svcMenuType" |
38
|
|
|
|
|
|
|
=> as __PACKAGE__; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
subtype "${SCHEMA_PKG}::svcMenuType::auto" |
41
|
|
|
|
|
|
|
=> as "Str" |
42
|
|
|
|
|
|
|
=> where { $_ eq "auto" }; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
coerce "${SCHEMA_PKG}::svcMenuType" |
45
|
|
|
|
|
|
|
=> from "${SCHEMA_PKG}::svcMenuType::auto" |
46
|
|
|
|
|
|
|
=> via { |
47
|
|
|
|
|
|
|
__PACKAGE__->new( |
48
|
|
|
|
|
|
|
version => \@XML::EPP::epp_versions, |
49
|
|
|
|
|
|
|
lang => \@XML::EPP::epp_lang, |
50
|
|
|
|
|
|
|
objURI => [ keys %XML::EPP::obj_uris ], |
51
|
|
|
|
|
|
|
( keys %XML::EPP::ext_uris ? |
52
|
|
|
|
|
|
|
(svcExtension => [ keys %XML::EPP::ext_uris ]) |
53
|
|
|
|
|
|
|
: () ), |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |