TM::Materialized::AsTMa - Topic Maps, Parsing of AsTMa instances.


TM documentation Contained in the TM distribution.

Index


Code Index:

NAME

Top

TM::Materialized::AsTMa - Topic Maps, Parsing of AsTMa instances.

SYNOPSIS

Top

  use TM::Materialized::AsTMa;
  my $tm = new TM::Materialized::AsTMa (inline => '....astma code here...');
  $tm->sync_in;
  # ...

  # or
  my $tm = new TM::Materialized::AsTMa (file => 'test.atm');
  # ...
  $tm->sync_in;

DESCRIPTION

Top

This package provides parsing functionality for AsTMa= instances. AsTMa= is a textual shorthand notation for Topic Map authoring. Currently, AsTMa= 1.3 and the (experimental) AsTMa= 2.0 is supported. See TM::Serializable::AsTMa for details.

INTERFACE

Top

Constructor

The constructor expects a hash as described in TM::Materialized::Stream.

SEE ALSO

Top

TM, TM::Materialized::Stream

AUTHOR INFORMATION

Top

Copyright 200[1-6], 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::Materialized::AsTMa;

use TM::Materialized::Stream;
use base qw (TM::Materialized::Stream);

use Class::Trait qw(TM::Serializable::AsTMa);
use Data::Dumper;

sub new {
    my $class   = shift;
    my %options = @_;
    $options{psis} = $TM::PSI::topicmaps; # make sure we have what we need
    return bless $class->SUPER::new (%options), $class;
}

our $VERSION  = '0.18';
our $REVISION = '$Id: AsTMa.pm,v 1.19 2006/11/23 10:02:55 rho Exp $';

1;

__END__