NAME
SADI::Data::Object
SYNOPSIS
use SADI::Data::Object;
# create a sadi object with a namespace of NCBI_gi and id 545454
my $data = SADI::Data::Object->new (namespace=>"NCBI_gi", id=>"545454");
# set/get an article name for this data object
$data->name ('myObject');
print $data->name;
# set/get an id for this data object
$data->id ('myID');
print $data->id;
# check if this data object is a primitive type
print "a primitive" if $data->primitive;
print "not a primitive" if not $data->primitive;
# get a formatted string representation of this data object
print $data->toString;
DESCRIPTION
An object representing a SADI object (usually consisting of a namespace and id)
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
Martin Senger (martin.senger [at] gmail [dot] com)
ACCESSIBLE ATTRIBUTES
Details are in SADI::Base. Here just a list of them:
- namespace
- id
- name
-
An article name for this datatype. Note that the article name depends on the context where this object is used.
- primitive
-
A boolean property indicating if this data type is a primitive SADI type or not.