NAME

Bio::MAGETAB::Types - custom data types for Bio::MAGETAB


SYNOPSIS

 use Bio::MAGETAB::Types qw( Date Email Uri );

DESCRIPTION

This class provides definitions and coercion methods for Bio::MAGETAB data types not included as part of Moose. It is not intended to be used directly, but is instead called by many of the individual MAGE-TAB classes.


TYPES

Date

Dates are stored and retrieved as DateTime objects. Constructors and mutators can be passed either a DateTime object, a hashref suitable for passing to DateTime->new(), or a string date representation. In the latter case this class attempts to parse the string into a DateTime object using the Date::Manip module.

Email

Email addresses are stored as strings, but are validated using the Email::Valid module.

Uri

All URI strings are stored and retrieved as instances of the standard perl URI class.


SEE ALSO

DateTime, Date::Manip, Email::Valid, URI


AUTHOR

Tim F. Rayner <tfrayner@gmail.com>


LICENSE

This library is released under version 2 of the GNU General Public License (GPL).