| 1 | package MARC::Validator::Filter::Abstract; | ||
| 2 | |||
| 3 | 11 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 11 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 0 | ▶ | use Class::Utils qw(set_params); |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 7 | use Error::Pure qw(err); | ||
| 8 | |||
| 9 | our $VERSION = 0.01; | ||
| 10 | |||
| 11 | # Constructor. | ||
| 12 | sub new { | ||
| 13 | my ($class, @params) = @_; | ||
| 14 | |||
| 15 | # Create object. | ||
| 16 | my $self = bless {}, $class; | ||
| 17 | |||
| 18 | # Process parameters. | ||
| 19 | set_params($self, @params); | ||
| 20 | |||
| 21 | return $self; | ||
| 22 | } | ||
| 23 | |||
| 24 | # Name of plugin. | ||
| 25 | sub name { | ||
| 26 | my $self = shift; | ||
| 27 | |||
| 28 | err __PACKAGE__.' is abstract class,'; | ||
| 29 | } | ||
| 30 | |||
| 31 | # Process statistics. | ||
| 32 | sub process { | ||
| 33 | my ($self, $marc_record) = @_; | ||
| 34 | |||
| 35 | err __PACKAGE__.' is abstract class.'; | ||
| 36 | } | ||
| 37 | |||
| 38 | 1; | ||
| 39 | |||
| 40 | __END__ | ||