name
Usage - print $dbxref->name() or $dbxref->name($name)
Returns - the dbxref name (string)
Args - the dbxref name (string)
Function - gets/sets the dbxref name
db
Usage - print $dbxref->db() or $dbxref->db($db)
Returns - the dbxref db (string)
Args - the dbxref db (string)
Function - gets/sets the dbxref db
acc
Usage - print $dbxref->acc() or $dbxref->acc($acc)
Returns - the dbxref acc (string)
Args - the dbxref acc (string)
Function - gets/sets the dbxref acc
description
Usage - print $dbxref->description() or $dbxref->description($description)
Returns - the dbxref description (string)
Args - the dbxref description (string)
Function - gets/sets the dbxref description
modifier
Usage - print $dbxref->modifier() or $dbxref->modifier($modifier)
Returns - the optional trailing modifier (string)
Args - the optional trailing modifier (string)
Function - gets/sets the optional trailing modifier
as_string
Usage - print $dbxref->as_string()
Returns - returns this dbxref ([name "description" {modifier}]) as string
Args - none
Function - returns this dbxref as string
equals
Usage - print $dbxref->equals($another_dbxref)
Returns - either 1(true) or 0 (false)
Args - the dbxref to compare with
Function - tells whether this dbxref is equal to the parameter
NAME CCO::Core::Dbxref - Reference structure. =head1 SYNOPSIS
use CCO::Core::Dbxref; use strict;
# three new dbxref's my $ref1 = CCO::Core::Dbxref->new; my $ref2 = CCO::Core::Dbxref->new; my $ref3 = CCO::Core::Dbxref->new;
$ref1->name("CCO:vm"); $ref1->description("this is a description"); $ref1->modifier("{opt=123}"); $ref2->name("CCO:ls"); $ref3->name("CCO:ea");
my $ref4 = $ref3;
my $ref5 = CCO::Core::Dbxref->new; $ref5->name("CCO:vm"); $ref5->description("this is a description"); $ref5->modifier("{opt=123}");
DESCRIPTION A dbxref object encapsules a reference for a universal.
AUTHOR
Erick Antezana, <erant@psb.ugent.be>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by erant
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.