Name : perl-Class-Composite
| |
Version : 0.2
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.8.1
| Date : 2024-07-03 17:50:17
|
Group : Development/Libraries/Perl
| Source RPM : perl-Class-Composite-0.2-lp156.8.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Implements Composite patterns
|
Description :
\'Class::Composite\' is used to provide mechanisms used by \'Class::Composite::Container\' and \'Class::Composite::Element\'. Class::Composite::* implements a Composite pattern (see OO Patterns books and http://www.uni-paderborn.de/cs/ag-schaefer/Lehre/Lehrveranstaltungen/Vorles ungen/Entwurfsmuster/WS0102/DPSA-IVb.pdf for example). A composite pattern is a collection implementation which provides same methods to the container and elements. The reason for using a Composite pattern is to have the same interface to deal with different objects and their containers (collections).
If you only need a collection implementation, then you can inherite from Class::Composite::Container and Class::Composite::Element directly. If you need specific method that should be applied to both your container and your elements (which is what the Class::Composite is made for), then you isolate the methods you want to apply on both elements and containers in a specific package. Then, you inherite from both your package and Class::Composite::Element for elements, and Class::Composite::Container for containers.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.6/noarch |