NAME

Object - Base package to handle BioMoby objects. Contains all functionality

SYNOPSIS

 use Object;
 $obj = Object->new ($id, $ns)

METHODS

All methods are inherited by other objects according to ontology HAS and HASA relationships are defined using methods named from articleNames

new

Creates new object instances

 $obj = new ($id,$ns);

load

Creates new object instances from XML according to XML tags.

 $obj = Object->load($xml)

id

Returns or sets (if $newId is defined) id attribute.

 $id= Object->id($newId)

namespace

Returns or sets (if $newns is defined) namespace attribute.

 $namespace = Object->namespace($newns)

class

Returns Object datatype.

 $objectName = Object->class

toString

Returns a text representation of object's XML tree.

 $string = Object->toString

toXML

Returns object as XML document.

 $xml = Object->toXML

article

Set inner article according to articlename, class and value. For HAS articles the values are stored in an array.

Returns article value (HASA) or array of values (HAS)

 $value = Object->article($articleName, $class, $value)