Data::Type::Collection - a group of datatypes somehow related
package Data::Type::Collection::My::Interface; our @ISA = qw(Data::Type::Object::Interface); our $VERSION = '0.01.25'; sub prefix : method {'My::'} sub pkg_prefix : method {'my_'}
All types are grouped and though belong to a collection. The collection is identified by a short id. All members are living in a namespace that is prefixed with it (uppercased).
This is a heterogenous collection of datatypes which is loaded by default. It contains various issues from CPAN modules (i.e. business, creditcard, email, markup, regexps and etc.) and some everyday things. See Data::Type::Collection::Std.
A nearly 1-to-1 use of XML::Schema datatypes. It is nearly complete and works off the shelf. Please visit the XMLSchema http://www.w3.org/TR/xmlschema-2/ homepage for sophisticated documentation. See Data::Type::Collection::W3C.
Common database table types (VARCHAR, TINYTEXT, TIMESTAMP, etc.). See Data::Type::Collection::DB.
Everything that is related to biological matters (DNA, RNA, etc.). See Data::Type::Collection::Bio.
Everything that is related to chemical matters (Atoms, etc.). See Data::Type::Collection::Chem.
Reserved and undecided. See Data::Type::Collection::Perl.
Placeholder for the Apocalypse and Synopsis 6 suggested datatypes for perl6. See Data::Type::Collection::Perl6.
[Note] ALL is a an alias for all available collections at once.
ALL
This is a service class for collections. When creating a new collection one would inherit from Data::Type::Object::Interface.
This is a listing of the shipped collections within the Data::Type module. It is helpfull in conjunction with Data::Type:::Query but also for other introspective uses.
our $_ids = { STD => 'Std.pm', BIO => 'Bio.pm', DB => 'DB.pm', W3C => 'W3C.pm', CHEM => 'Chem.pm', };
Contains the list of standard type collections which get always loaded per default when Data::Type is used.
our $_stds = [qw(STD)];
Sourceforge http://sf.net/projects/datatype is hosting a project dedicated to this module. And I enjoy receiving your comments/suggestion/reports also via http://rt.cpan.org or http://testers.cpan.org.
Murat Uenalan, <muenalan@cpan.org>
1 POD Error
The following errors were encountered while parsing the POD:
alternative text 'W3C/XML-Schema Collection ('W3C')' contains non-escaped | or /
To install Data::Type, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Type
CPAN shell
perl -MCPAN -e shell install Data::Type
For more information on module installation, please visit the detailed CPAN module installation guide.