| TM documentation | Contained in the TM distribution. |
TM::Serializable::CTM - Topic Maps, trait for parsing of CTM instances.
# this is not an end-user package # see the source of TM::Materialized::CTM
This package provides parsing functionality for CTM instances with the exceptions listed below.
http://www.isotopicmaps.org/ctm/ctm.html
This method tries to parse the passed in text stream as CTM instance. It will raise an exception on the first parse error. On success, it will return the map object.
This is not implemented.
Copyright 200[8], Robert Barta <drrho@cpan.org>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html
| TM documentation | Contained in the TM distribution. |
package TM::Serializable::CTM; use Class::Trait 'base'; use Class::Trait 'TM::Serializable'; use Data::Dumper;
sub deserialize { my $self = shift; my $content = shift; use TM::CTM::Parser; my $ap = new TM::CTM::Parser (store => $self); $ap->parse ($content); # we parse content into the ap object component 'store' return $self; }
sub serialize { $TM::log->logdie ( scalar __PACKAGE__ .": not implemented" ); }
our $VERSION = '0.2'; our $REVISION = '$Id$'; 1; __END__