| 1 | |||
| 2 | package XML::SRS::Contact::Filter; | ||
| 3 | |||
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use PRANG::Graph; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use XML::SRS::Contact::Address; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 7 | use XML::SRS::Contact::PSTN; | ||
| 8 | |||
| 9 | # attributes | ||
| 10 | has_attr 'name' => | ||
| 11 | is => 'ro', | ||
| 12 | isa => 'Str', | ||
| 13 | xml_name => 'Name', | ||
| 14 | xml_required => 0, | ||
| 15 | ; | ||
| 16 | |||
| 17 | has_attr 'email' => | ||
| 18 | is => 'ro', | ||
| 19 | isa => 'Str', | ||
| 20 | xml_name => 'Email', | ||
| 21 | xml_required => 0, | ||
| 22 | ; | ||
| 23 | |||
| 24 | # elements | ||
| 25 | has_element 'postal_address_filter' => | ||
| 26 | is => 'ro', | ||
| 27 | isa => 'XML::SRS::Contact::Address', | ||
| 28 | xml_nodeName => 'PostalAddressFilter', | ||
| 29 | xml_required => 0, | ||
| 30 | ; | ||
| 31 | |||
| 32 | has_element 'phone' => | ||
| 33 | is => 'ro', | ||
| 34 | isa => 'XML::SRS::Contact::PSTN', | ||
| 35 | xml_nodeName => 'Phone', | ||
| 36 | xml_required => 0, | ||
| 37 | ; | ||
| 38 | |||
| 39 | has_element 'fax' => | ||
| 40 | is => 'ro', | ||
| 41 | isa => 'XML::SRS::Contact::PSTN', | ||
| 42 | xml_nodeName => 'Fax', | ||
| 43 | xml_required => 0, | ||
| 44 | ; | ||
| 45 | |||
| 46 | sub root_element { 'ContactFilter' } | ||
| 47 | |||
| 48 | with 'XML::SRS::Node'; | ||
| 49 | |||
| 50 | 1; | ||