NAME
InterMine::Model::Role::Field - Provides common behaviour for field descriptors
SYNOPSIS
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::Role::Field
You can also look for information at:
FlyMine
COPYRIGHT & LICENSE
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.
FUNCTIONS
new
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
name (Str, ro, required)
The name of the descriptor
field_class
Usage : my $class = $field->field_class();
Function: returns the ClassDescriptor of the (base) class that defines this
field
METHODS
to_string
The string representation of a field descriptor, ie. its name