| 1 | package Cikl::Smrt::ParserHelpers::XPathMapping; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Mouse; | ||
| 6 | use Mouse::Util::TypeConstraints; | ||
| 7 | |||
| 8 | |||
| 9 | has 'event_field' => ( | ||
| 10 | is => 'ro', | ||
| 11 | isa => 'Str', | ||
| 12 | required => 1 | ||
| 13 | ); | ||
| 14 | |||
| 15 | has 'xpath' => ( | ||
| 16 | is => 'ro', | ||
| 17 | isa => 'Str', | ||
| 18 | required => 1 | ||
| 19 | ); | ||
| 20 | |||
| 21 | __PACKAGE__->meta->make_immutable; | ||
| 22 | |||
| 23 | 1; | ||
| 24 |