Poseidon for UML: User Guide
Prev | Appendix F. Poseidon Perl Code Generation Guide | Next

# Class Attributes

- Attributes are translated into variables

- Attributes with single multiplicity are translated into scalar type variables (my $AttributeName )

- Attributes with multi-multiplicity are translated into array type variables (my @AttributeName )

- An attribute with a tagged value 'local' that is set to 'true' is translated into 'local $AttributeName' instead of 'my $attribute'

- An attribute that has non-1 multiplicity with a tagged value 'Map' set to 'true' is translated into '%AttributeName' instead of '@AttributeName'

- When the visibility of an attribute is public, 'use vars qw ( $AttributeName )' is added to the code generation.

Prev | Home | Next
Classes | Up | Class Operations