NAME

InterMine::Model::Handler - The SAX handler for reading in a model

SYNOPSIS

use InterMine::Model;
use InterMine::Model::Handler;
use XML::Parser::PerlSAX;

my $handler = InterMine::Model::Handler->new( model   => $self );
my $parser  = XML::Parser::PerlSAX->new(      Handler => $handler );

my $source;

if ($source_is_string) {
    $source = { String => $source_arg };
}
else {
    $source = { SystemId => $source_arg };
}

$parser->parse( Source => $source );

DESCRIPTION

This in a class used internally for processing the xml representation of the model that is returned from webservices, and stored as a the model's serialised representation. You will not need to use this class directly.

SEE ALSO

CLASS METHODS

new(model => $model)

Standard constructor. Takes options as key value pairs, and expects just one option (model).

start_element

implementation of method required by XML::Parser::PerlSAX

end_element

implementation of method required by XML::Parser::PerlSAX

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

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.