NAME

InterMine::Model::Attribute - represents an attribute of an InterMine class

SYNOPSIS

use InterMine::Model::Attribute;

...
my $field = InterMine::Model::Attribute->new(name => 'age', model => $model,
                                             type => 'Integer');

...

DESCRIPTION

Objects of this class describe the attributes of class in an InterMine model. Attribute objects are generally part of ClassDescriptor objects.

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::Attribute

You can also look for information at:

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

attribute_type

Usage   : my $type = $field->attribute_type();
Function: return the (Java) type of this attribute, eg. "String", "Integer",
          "Date", "Boolean"

to_xml

The xml representation of the attribute descriptor