| 1 | package DBGp::Client::Response::Typemap; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use parent qw(DBGp::Client::Response::Simple); | ||
| 6 | |||
| 7 | use DBGp::Client::Response::Property; | ||
| 8 | |||
| 9 | __PACKAGE__->make_attrib_accessors(qw( | ||
| 10 | transaction_id command | ||
| 11 | )); | ||
| 12 | |||
| 13 | sub types { | ||
| 14 | return [ | ||
| 15 | map bless($_->{attrib}, 'DBGp::Client::Response::Typemap::Type'), | ||
| 16 | DBGp::Client::Parser::_nodes($_[0], 'map') | ||
| 17 | ]; | ||
| 18 | } | ||
| 19 | |||
| 20 | package DBGp::Client::Response::Typemap::Type; | ||
| 21 | |||
| 22 | use parent qw(DBGp::Client::Response::Simple); | ||
| 23 | |||
| 24 | __PACKAGE__->make_accessors(qw( | ||
| 25 | type name | ||
| 26 | )); | ||
| 27 | |||
| 28 | sub xsi_type { $_[0]->{'xsi:type'} } | ||
| 29 | |||
| 30 | 1; |