NAME

DTA::TokWrap::Base - DTA tokenizer wrappers: base class

SYNOPSIS

 use DTA::TokWrap::Base;
 
 ##========================================================================
 ## Constructors etc.
 
 $obj = $CLASS_OR_OBJ->new(%args);        ##-- inheritable constructor
 %defaults = $CLASS_OR_OBJ->defaults();   ##-- set static defaults
 $obj = $obj->init();                     ##-- set dynamic defaults

DESCRIPTION

DTA::TokWrap::Base provides an abstract base class for all object classes in the DTA::TokWrap distribution

Constants

Variable: @ISA

DTA::TokWrap::Base inherits from DTA::TokWrap::Logger.

Constructors etc.

new
 $obj = $CLASS_OR_OBJ->new(%args);

Generic constructor. %args is a hash of subclass-dependent constructor options.

The default implementation calls $CLASS_OR_OBJ->defaults() before the new object is instiated, and and $obj->init() afterwords.

defaults
 %defaults = CLASS_OR_OBJ->defaults();

Subclasses may define a defaults() method to set static (class-dependent) object defaults. The return value %defaults should be an object option hash.

The default implementation just returns an empty hash.

init
 $obj = $obj->init();

Subclasses may define an init() method to compute dynamic (object-dependent) object defaults.

The default implementation does nothing.

SEE ALSO

DTA::TokWrap::Intro(3pm), dta-tokwrap.perl(1), ...

SEE ALSO

DTA::TokWrap::Intro(3pm), dta-tokwrap.perl(1), ...

AUTHOR

Bryan Jurish <jurish@bbaw.de>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2018 by Bryan Jurish

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.