The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

ATTRIBUTES

type (Str)

reader: java_type

The java type of the attribute (Integer, java.lang.String, etc...)

attribute_type

The java_type of the attribute, stripped of any dotted bits (Date, String, int, etc)

METHODS

to_xml

The xml representation of the attribute descriptor

SEE ALSO

InterMine::Model::ClassDescriptor
InterMine::Model::Role::Field
InterMine::Model::Role::Descriptor

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,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.