---
name: "XTM::association"
section: "3pm"
platform: "linux"
package: "libxtm-perl"
version: "0.37-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/XTM::association"
---

# XTM::association(3pm)

XTM::association - trivial class definition

```
  # see XTM::generic
```

Generic container for accessor functions.\
 **Methods** Following accessor methods are available via XTM::generic (see that package how to set/add values): @{ *$a*-\>members}

returns list reference of XTM::member nodes. *$a*-\>instanceOf

returns an XTM::instanceOf node. *$a*-\>scope

returns a XTM::scope node Other methods: *$association*-\>xml (*$xmlwriter*)

returns an XML representation of the association.

Example:

```
   $a->xml($xmlwriter)
```

*$association*-\>add\_defaults

This methods add default values according to the XTM standard. Specifically, it assures that 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";
   }
```

XTM 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
