Wikibase::Datatype::Value - Wikibase value datatype.
use Wikibase::Datatype::Value; my $obj = Wikibase::Datatype::Value->new(%params); my $type = $obj->type; my $value = $obj->value;
This datatype is base class for all Value datatypes.
new
my $obj = Wikibase::Datatype::Value->new(%params);
Constructor.
Returns instance of object.
type
Type of instance. Default value is undef.
value
Value of instance. Parameter is required.
my $type = $obj->type;
Get type.
Returns string.
my $value = $obj->value;
Get value.
new(): From Mo::utils::check_required(): Parameter 'value' is required. Parameter 'type' is required.
use strict; use warnings; use Wikibase::Datatype::Value; # Object. my $obj = Wikibase::Datatype::Value->new( 'value' => 'foo', 'type' => 'string', ); # Get value. my $value = $obj->value; # Get type. my $type = $obj->type; # Print out. print "Value: $value\n"; print "Type: $type\n"; # Output: # Value: foo # Type: string
Mo, Mo::utils.
Wikibase item value datatype.
Wikibase monolingual value datatype.
Wikibase string value datatype.
Wikibase time value datatype.
https://github.com/michal-josef-spacek/Wikibase-Datatype
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© Michal Josef Špaček 2020
BSD 2-Clause License
0.01
To install Wikibase::Datatype, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wikibase::Datatype
CPAN shell
perl -MCPAN -e shell install Wikibase::Datatype
For more information on module installation, please visit the detailed CPAN module installation guide.