NAME

XTM::association - trivial class definition

SYNOPSIS

# see XTM::generic

DESCRIPTION

Generic container for accessor functions.

Methods

xml

$association->xml ($xmlwriter)

returns an XML representation of the association.

Example:

$a->xml($xmlwriter)
add_defaults

$association->add_defaults

This methods add default values according to the XTM standard. Specifically, it assures that

The association has at exactly one instanceOf component and there is an entry. If not, one will be generated (XTM clause 3.8.1).
If a scope exists, then at least one reference must be there (XTM clause 3.8.1).
connected

returns a list reference of all topic references mentioned in this association. These references might be 'internal' or 'external' ones.

Example:

foreach (@{$t->connected}) {
  print "$t->id mentions $_\n";
}

SEE ALSO

XTM

AUTHOR INFORMATION

Copyright 2001, 2002, Robert Barta <rho@telecoma.net>, 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