Wikibase::Datatype::Value::String - Wikibase string value datatype.
use Wikibase::Datatype::Value::String; my $obj = Wikibase::Datatype::Value::String->new(%params); my $type = $obj->type; my $value = $obj->value;
This datatype is string class for representation of common string. There are upper datatypes as commonsMedia, external-id, geo-shape, math, musical-notation, string, tabular-data and url, which uses this data type.
new
my $obj = Wikibase::Datatype::Value::String->new(%params);
Constructor.
Returns instance of object.
value
Value of instance. Parameter is required.
type
my $type = $obj->type;
Get type. This is constant 'string'.
Returns string.
my $value = $obj->value;
Get value.
new(): From Wikibase::Datatype::Value::new(): Parameter 'value' is required.
use strict; use warnings; use Wikibase::Datatype::Value::String; # Object. my $obj = Wikibase::Datatype::Value::String->new( 'value' => 'foo', ); # Get type. my $type = $obj->type; # Get value. my $value = $obj->value; # Print out. print "Type: $type\n"; print "Value: $value\n"; # Output: # Type: string # Value: foo
Mo, Wikibase::Datatype::Value.
Wikibase datatypes.
https://github.com/michal-josef-spacek/Wikibase-Datatype
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2020-2023 Michal Josef Špaček
BSD 2-Clause License
0.31
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.