Data::Validator::Item 0.75
Sponsored Links
Data::Validator::Item 0.75 Ranking & Summary
File size:
0.011 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
7884
Date added:
2007-02-28
Publisher:
Anthony Staines
Publisher URL:
http://search.cpan.org/~a
Data::Validator::Item 0.75 description
Data::Validator::Item is a Factory Class to validate data items.
This is an attempt to create an object which will permit semi-automatic verification of a data value.
SYNOPSIS
use Data::Validator::Item;
my $item = Data::Validator::Item->new(); #Create a new Data::Validator::Item, called $item.
#Set values
$item->name(fred);
$item->values([1,2,3]); or $item->values(@array);
$item->missing(*); or $item->missing(); #undef is unlikely to be sensible!
$item->min(0); $item->max(100);
$item->verify($reference_to_subroutine); #Used in the $item->validate() function
$item->transform($reference_to_subroutine); #Used in the $item->put() function
#Get values
my $name = $item->name();
my @values = $item->values();
my $missing = $item->missing();
etc...
#Use it.. $item->validate(); #Returns 1 for success, 0 for failure $item->error(); #Returns the correct error message $item->put();
USAGE
Many people work with data organised as records, each containing (potentially many) variables. It is often necessary to process files of such records, and to test every variable within every record to ensure that each one is valid. I do this before putting data from very large flat files into my databases. For each variable I had a need to define specific, sometimes complex rules for validity, then implement them, and check them. This is what Data::Validator::Item is for.
Note carefully that Data::Validator::Item handles only one scalar vlaue at a time. This value could come from a file, a database, an array, a hash or your grannys parrot. Data::Validator::Item doesnt care.
I use Data::Validator::Item as follows. I create one for every named variable in my data file. In many real applications most of this setup can be done by looping over a list of variable names, creating many Data::Validator::Items each named for the corresponding variable. Common features, like missing values, and names can be set in this loop.
Specifics, like values(), min(), max(), verify() and so on can be set individually. I then create a hash to hold all of the Data::Validator::Items for a particular data source, The keys of this hash are the names of the variables, and the values are the Data:Validators themselves. Y.M.M.V.
This is an attempt to create an object which will permit semi-automatic verification of a data value.
SYNOPSIS
use Data::Validator::Item;
my $item = Data::Validator::Item->new(); #Create a new Data::Validator::Item, called $item.
#Set values
$item->name(fred);
$item->values([1,2,3]); or $item->values(@array);
$item->missing(*); or $item->missing(); #undef is unlikely to be sensible!
$item->min(0); $item->max(100);
$item->verify($reference_to_subroutine); #Used in the $item->validate() function
$item->transform($reference_to_subroutine); #Used in the $item->put() function
#Get values
my $name = $item->name();
my @values = $item->values();
my $missing = $item->missing();
etc...
#Use it.. $item->validate(); #Returns 1 for success, 0 for failure $item->error(); #Returns the correct error message $item->put();
USAGE
Many people work with data organised as records, each containing (potentially many) variables. It is often necessary to process files of such records, and to test every variable within every record to ensure that each one is valid. I do this before putting data from very large flat files into my databases. For each variable I had a need to define specific, sometimes complex rules for validity, then implement them, and check them. This is what Data::Validator::Item is for.
Note carefully that Data::Validator::Item handles only one scalar vlaue at a time. This value could come from a file, a database, an array, a hash or your grannys parrot. Data::Validator::Item doesnt care.
I use Data::Validator::Item as follows. I create one for every named variable in my data file. In many real applications most of this setup can be done by looping over a list of variable names, creating many Data::Validator::Items each named for the corresponding variable. Common features, like missing values, and names can be set in this loop.
Specifics, like values(), min(), max(), verify() and so on can be set individually. I then create a hash to hold all of the Data::Validator::Items for a particular data source, The keys of this hash are the names of the variables, and the values are the Data:Validators themselves. Y.M.M.V.
Data::Validator::Item 0.75 Screenshot
Sponsored Links
Data::Validator::Item 0.75 Keywords
Item 0.75
DataValidatorItem
Factory class
data
values
validate
variable
missing
factory
Data::Validator::Item 0.75
Libraries
Programming
Bookmark Data::Validator::Item 0.75
Data::Validator::Item 0.75 Copyright
WareSeeker periodically updates pricing and software information of Data::Validator::Item 0.75 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Data::Validator::Item 0.75 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Data::Validator::Item 0.75 Related Software
W3C-PHP is a little php-cli script that can validate a list of URLs trough the W3C validator Web site.
Bundle::W3C::Validator is a Perl bundle of modules required by the W3C Markup Validator.
Dicop::Item::Template is an object defining Dicop::Item subclasses.
Data::Page::Viewport is a Perl module to scroll thru data a page, or just an item, at a time.
XML::Validator::Schema is a Perl module to validate XML against a subset of W3C XML Schema.
Generic JavaScript validator is a simple but powerful cross-browser JavaScript that combines DOM and regulars expressions.
Convert::Wiki::Node::Item is a Perl module that represents an item in a list (aka < li > or *).
Structured Document Validator project implements a generalized method for structured documents.
WoW Companion is a Java client/server used to centrally store character, item, and other data for World of Warcraft.
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD