| 1 | package XML::EPP::Host::Address; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use PRANG::Graph; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | with 'XML::EPP::Host::Node'; | ||
| 5 | has_element "value" => | ||
| 6 | is => "ro", | ||
| 7 | isa => "XML::EPP::Host::addrStringType", | ||
| 8 | xml_nodeName => "", | ||
| 9 | coerce => 1, | ||
| 10 | ; | ||
| 11 | |||
| 12 | has_attr "ip" => | ||
| 13 | is => "ro", | ||
| 14 | isa => "XML::EPP::Host::ipType", | ||
| 15 | default => "v4", | ||
| 16 | ; | ||
| 17 | |||
| 18 | 1 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | coerce __PACKAGE__ | ||
| 20 | => from "Str", | ||
| 21 | => via { __PACKAGE__->new(value => $_) }, | ||
| 22 | ; | ||
| 23 | coerce __PACKAGE__ | ||
| 24 | => from "HashRef", | ||
| 25 | => via { __PACKAGE__->new($_) }, | ||
| 26 | ; | ||
| 27 | subtype "XML::EPP::Host::addrType" => as __PACKAGE__; | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | XML::EPP::Host::Address - implement addrType | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | TODO | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | ... | ||
| 42 | |||
| 43 | =head2 XML Schema Definition | ||
| 44 | |||
| 45 | <complexType name="addrType"> | ||
| 46 | <simpleContent> | ||
| 47 | <extension base="host:addrStringType"> | ||
| 48 | <attribute name="ip" type="host:ipType" | ||
| 49 | default="v4"/> | ||
| 50 | </extension> | ||
| 51 | </simpleContent> | ||
| 52 | </complexType> | ||
| 53 | |||
| 54 | =cut | ||