name

Usage    - print $dbxref->name() or $dbxref->name($name)
Returns  - the dbxref name (string)
Args     - the dbxref name (string) that follows this convention DB:ACC (ACC may be an empty string like some dbxrefs from the ChEBI ontology)
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(OBO::Core::Dbxref) to compare with
Function - tells whether this dbxref is equal to the parameter

NAME

OBO::Core::Dbxref - A database reference structure.

SYNOPSIS

use OBO::Core::Dbxref;

use strict;

# three new dbxref's

my $ref1 = OBO::Core::Dbxref->new;

my $ref2 = OBO::Core::Dbxref->new;

my $ref3 = OBO::Core::Dbxref->new;

$ref1->name("APO:vm");

$ref1->description("this is a description");

$ref1->modifier("{opt=123}");

$ref2->name("APO:ls");

$ref3->name("APO:ea");

my $ref4 = $ref3;

my $ref5 = OBO::Core::Dbxref->new;

$ref5->name("APO:vm");

$ref5->description("this is a description");

$ref5->modifier("{opt=123}");

DESCRIPTION

A dbxref object encapsules a reference for a universal.

AUTHOR

Erick Antezana, <erick.antezana -@- gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2006-2015 by Erick Antezana. All rights reserved.

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.