InterMine > InterMine-Model-0.9901 > InterMine::Model::Object

Download:
InterMine-Model-0.9901.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

InterMine::Model::Object - the class all instantiated objects inherit from

SYNOPSIS ^

 # Do not use this class directly.

 use Test::More;

 my $gene = $model->make_new("Gene");

 can_ok($gene, qw/getObjectId hasObjectId class equals merge/);

DESCRIPTION ^

A base class for instantiated objects.

ATTRIBUTES

objectId

The internal object id

reader: getObjectId

get the object id attribute.

predicate: hasObjectId

returns true if the object has an id.

id

Read-Only synonym for getObjectId

METHODS ^

equals($something)

returns true if the other object has the same objectId

merge($other)

merge the properties of other into self

class

make class a synonym for meta

isa

overrides isa to respond to unqualified names as well as full ones.

OVERLOADING ^

EQUALITY (==, eq)

return true if objectIds match

SEE ALSO ^

AUTHOR ^

FlyMine <support@flymine.org>

BUGS ^

Please report any bugs or feature requests to support@flymine.org.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc InterMine::Model::Object

You can also look for information at:

COPYRIGHT & LICENSE ^

Copyright 2006,2007,2008,2009, 2010, 2011 FlyMine, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: