Object - Base package to handle BioMoby objects. Contains all functionality
use Object; $obj = Object->new ($id, $ns)
All methods are inherited by other objects according to ontology HAS and HASA relationships are defined using methods named from articleNames
Creates new object instances
$obj = new ($id,$ns);
Creates new object instances from XML according to XML tags.
$obj = Object->load($xml)
Returns or sets (if $newId is defined) id attribute.
$id= Object->id($newId)
Returns or sets (if $newns is defined) namespace attribute.
$namespace = Object->namespace($newns)
Returns Object datatype.
$objectName = Object->class
Returns a text representation of object's XML tree.
$string = Object->toString
Returns object as XML document.
$xml = Object->toXML
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)