InterMine::Model::Role::Field - Provides common behaviour for field descriptors
Please report any bugs or feature requests to
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2006,2007,2008,2009 FlyMine, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Usage : this is an abstract class, construct an Attribute, Collection or Reference instead Function: create a new Field object Args : args are passed in as: name => "value" name - the field name model - the Model type - for attributes, the type of the field (eg. String, Integer) referenced_type_name - for references and collections, the type of the referenced object(s) reverse_reference_name - for references and collections, the field name of the reverse reference
The name of the descriptor
Usage : my $class = $field->field_class(); Function: returns the ClassDescriptor of the (base) class that defines this field
The string representation of a field descriptor, ie. its name