.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.07)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.ie \nF \{\
.    de IX
.    tm Index:\\$1\t\\n%\t"\\$2"
..
.    nr % 0
.    rr F
.\}
.el \{\
.    de IX
..
.\}
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
.    \" fudge factors for nroff and troff
.if n \{\
.    ds #H 0
.    ds #V .8m
.    ds #F .3m
.    ds #[ \f1
.    ds #] \fP
.\}
.if t \{\
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
.    ds #V .6m
.    ds #F 0
.    ds #[ \&
.    ds #] \&
.\}
.    \" simple accents for nroff and troff
.if n \{\
.    ds ' \&
.    ds ` \&
.    ds ^ \&
.    ds , \&
.    ds ~ ~
.    ds /
.\}
.if t \{\
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
.    \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
.    \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
.    \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
.    ds : e
.    ds 8 ss
.    ds o a
.    ds d- d\h'-1'\(ga
.    ds D- D\h'-1'\(hy
.    ds th \o'bp'
.    ds Th \o'LP'
.    ds ae ae
.    ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "Class::Container 3"
.TH Class::Container 3 "2005-01-23" "perl v5.10.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
Class::Container \- Glues object frameworks together transparently
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 3
\& package Car;
\& use Class::Container;
\& @ISA = qw(Class::Container);
\& 
\& _\|_PACKAGE_\|_\->valid_params
\&   (
\&    paint  => {default => \*(Aqburgundy\*(Aq},
\&    style  => {default => \*(Aqcoupe\*(Aq},
\&    windshield => {isa => \*(AqGlass\*(Aq},
\&    radio  => {isa => \*(AqAudio::Device\*(Aq},
\&   );
\& 
\& _\|_PACKAGE_\|_\->contained_objects
\&   (
\&    windshield => \*(AqGlass::Shatterproof\*(Aq,
\&    wheel      => { class => \*(AqVehicle::Wheel\*(Aq,
\&                    delayed => 1 },
\&    radio      => \*(AqAudio::MP3\*(Aq,
\&   );
\& 
\& sub new {
\&   my $package = shift;
\&   
\&   # \*(Aqwindshield\*(Aq and \*(Aqradio\*(Aq objects are created automatically by
\&   # SUPER::new()
\&   my $self = $package\->SUPER::new(@_);
\&   
\&   $self\->{right_wheel} = $self\->create_delayed_object(\*(Aqwheel\*(Aq);
\&   ... do any more initialization here ...
\&   return $self;
\& }
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
This class facilitates building frameworks of several classes that
inter-operate.  It was first designed and built for \f(CW\*(C`HTML::Mason\*(C'\fR, in
which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer,
and several other objects must create each other transparently,
passing the appropriate parameters to the right class, possibly
substituting other subclasses for any of these objects.
.PP
The main features of \f(CW\*(C`Class::Container\*(C'\fR are:
.IP "\(bu" 4
Explicit declaration of containment relationships (aggregation,
factory creation, etc.)
.IP "\(bu" 4
Declaration of constructor parameters accepted by each member in a
class framework
.IP "\(bu" 4
Transparent passing of constructor parameters to the class
that needs them
.IP "\(bu" 4
Ability to create one (automatic) or many (manual) contained
objects automatically and transparently
.Sh "Scenario"
.IX Subsection "Scenario"
Suppose you've got a class called \f(CW\*(C`Parent\*(C'\fR, which contains an object of
the class \f(CW\*(C`Child\*(C'\fR, which in turn contains an object of the class
\&\f(CW\*(C`GrandChild\*(C'\fR.  Each class creates the object that it contains.
Each class also accepts a set of named parameters in its
\&\f(CW\*(C`new()\*(C'\fR method.  Without using \f(CW\*(C`Class::Container\*(C'\fR, \f(CW\*(C`Parent\*(C'\fR will
have to know all the parameters that \f(CW\*(C`Child\*(C'\fR takes, and \f(CW\*(C`Child\*(C'\fR will
have to know all the parameters that \f(CW\*(C`GrandChild\*(C'\fR takes.  And some of
the parameters accepted by \f(CW\*(C`Parent\*(C'\fR will really control aspects of
\&\f(CW\*(C`Child\*(C'\fR or \f(CW\*(C`GrandChild\*(C'\fR.  Likewise, some of the parameters accepted
by \f(CW\*(C`Child\*(C'\fR will really control aspects of \f(CW\*(C`GrandChild\*(C'\fR.  So, what
happens when you decide you want to use a \f(CW\*(C`GrandDaughter\*(C'\fR class
instead of the generic \f(CW\*(C`GrandChild\*(C'\fR?  \f(CW\*(C`Parent\*(C'\fR and \f(CW\*(C`Child\*(C'\fR must be
modified accordingly, so that any additional parameters taken by
\&\f(CW\*(C`GrandDaughter\*(C'\fR can be accommodated.  This is a pain \- the kind of
pain that object-oriented programming was supposed to shield us from.
.PP
Now, how can \f(CW\*(C`Class::Container\*(C'\fR help?  Using \f(CW\*(C`Class::Container\*(C'\fR,
each class (\f(CW\*(C`Parent\*(C'\fR, \f(CW\*(C`Child\*(C'\fR, and \f(CW\*(C`GrandChild\*(C'\fR) will declare what
arguments they take, and declare their relationships to the other
classes (\f(CW\*(C`Parent\*(C'\fR creates/contains a \f(CW\*(C`Child\*(C'\fR, and \f(CW\*(C`Child\*(C'\fR
creates/contains a \f(CW\*(C`GrandChild\*(C'\fR).  Then, when you create a \f(CW\*(C`Parent\*(C'\fR
object, you can pass \f(CW\*(C`Parent\->new()\*(C'\fR all the parameters for all
three classes, and they will trickle down to the right places.
Furthermore, \f(CW\*(C`Parent\*(C'\fR and \f(CW\*(C`Child\*(C'\fR won't have to know anything about
the parameters of its contained objects.  And finally, if you replace
\&\f(CW\*(C`GrandChild\*(C'\fR with \f(CW\*(C`GrandDaughter\*(C'\fR, no changes to \f(CW\*(C`Parent\*(C'\fR or
\&\f(CW\*(C`Child\*(C'\fR will likely be necessary.
.SH "METHODS"
.IX Header "METHODS"
.Sh "\fInew()\fP"
.IX Subsection "new()"
Any class that inherits from \f(CW\*(C`Class::Container\*(C'\fR should also inherit
its \f(CW\*(C`new()\*(C'\fR method.  You can do this simply by omitting it in your
class, or by calling \f(CW\*(C`SUPER::new(@_)\*(C'\fR as indicated in the \s-1SYNOPSIS\s0.
The \f(CW\*(C`new()\*(C'\fR method ensures that the proper parameters and objects are
passed to the proper constructor methods.
.PP
At the moment, the only possible constructor method is \f(CW\*(C`new()\*(C'\fR.  If
you need to create other constructor methods, they should call
\&\f(CW\*(C`new()\*(C'\fR internally.
.Sh "_\|_PACKAGE_\|_\->\fIcontained_objects()\fP"
.IX Subsection "__PACKAGE__->contained_objects()"
This class method is used to register what other objects, if any, a given
class creates.  It is called with a hash whose keys are the parameter
names that the contained class's constructor accepts, and whose values
are the default class to create an object of.
.PP
For example, consider the \f(CW\*(C`HTML::Mason::Compiler\*(C'\fR class, which uses
the following code:
.PP
.Vb 1
\&  _\|_PACKAGE_\|_\->contained_objects( lexer => \*(AqHTML::Mason::Lexer\*(Aq );
.Ve
.PP
This defines the relationship between the \f(CW\*(C`HTML::Mason::Compiler\*(C'\fR
class and the class it creates to go in its \f(CW\*(C`lexer\*(C'\fR slot.  The
\&\f(CW\*(C`HTML::Mason::Compiler\*(C'\fR class \*(L"has a\*(R" \f(CW\*(C`lexer\*(C'\fR.  The \f(CW\*(C`HTML::Mason::Compiler\->new()\*(C'\fR method will accept a \f(CW\*(C`lexer\*(C'\fR
parameter and, if no such parameter is given, an object of the
\&\f(CW\*(C`HTML::Mason::Lexer\*(C'\fR class should be constructed.
.PP
We implement a bit of magic here, so that if \f(CW\*(C`HTML::Mason::Compiler\->new()\*(C'\fR is called with a \f(CW\*(C`lexer_class\*(C'\fR
parameter, it will load the indicated class (presumably a subclass of
\&\f(CW\*(C`HTML::Mason::Lexer\*(C'\fR), instantiate a new object of that class, and
use it for the Compiler's \f(CW\*(C`lexer\*(C'\fR object.  We're also smart enough to
notice if parameters given to \f(CW\*(C`HTML::Mason::Compiler\->new()\*(C'\fR
actually should go to the \f(CW\*(C`lexer\*(C'\fR contained object, and it will make
sure that they get passed along.
.PP
Furthermore, an object may be declared as \*(L"delayed\*(R", which means that
an object \fIwon't\fR be created when its containing class is constructed.
Instead, these objects will be created \*(L"on demand\*(R", potentially more
than once.  The constructors will still enjoy the automatic passing of
parameters to the correct class.  See the \f(CW\*(C`create_delayed_object()\*(C'\fR
for more.
.PP
To declare an object as \*(L"delayed\*(R", call this method like this:
.PP
.Vb 2
\&  _\|_PACKAGE_\|_\->contained_objects( train => { class => \*(AqBig::Train\*(Aq,
\&                                             delayed => 1 } );
.Ve
.Sh "_\|_PACKAGE_\|_\->valid_params(...)"
.IX Subsection "__PACKAGE__->valid_params(...)"
Specifies the parameters accepted by this class's \f(CW\*(C`new()\*(C'\fR method as a
set of key/value pairs.  Any parameters accepted by a
superclass/subclass will also be accepted, as well as any parameters
accepted by contained objects.  This method is a get/set accessor
method, so it returns a reference to a hash of these key/value pairs.
As a special case, if you wish to set the valid params to an empty set
and you previously set it to a non-empty set, you may call 
\&\f(CW\*(C`_\|_PACKAGE_\|_\->valid_params(undef)\*(C'\fR.
.PP
\&\f(CW\*(C`valid_params()\*(C'\fR is called with a hash that contains parameter names
as its keys and validation specifications as values.  This validation
specification is largely the same as that used by the
\&\f(CW\*(C`Params::Validate\*(C'\fR module, because we use \f(CW\*(C`Params::Validate\*(C'\fR
internally.
.PP
As an example, consider the following situation:
.PP
.Vb 11
\&  use Class::Container;
\&  use Params::Validate qw(:types);
\&  _\|_PACKAGE_\|_\->valid_params
\&      (
\&       allow_globals        => { type => ARRAYREF, parse => \*(Aqlist\*(Aq,   default => [] },
\&       default_escape_flags => { type => SCALAR,   parse => \*(Aqstring\*(Aq, default => \*(Aq\*(Aq },
\&       lexer                => { isa => \*(AqHTML::Mason::Lexer\*(Aq },
\&       preprocess           => { type => CODEREF,  parse => \*(Aqcode\*(Aq,   optional => 1 },
\&       postprocess_perl     => { type => CODEREF,  parse => \*(Aqcode\*(Aq,   optional => 1 },
\&       postprocess_text     => { type => CODEREF,  parse => \*(Aqcode\*(Aq,   optional => 1 },
\&      );
\&  
\&  _\|_PACKAGE_\|_\->contained_objects( lexer => \*(AqHTML::Mason::Lexer\*(Aq );
.Ve
.PP
The \f(CW\*(C`type\*(C'\fR, \f(CW\*(C`default\*(C'\fR, and \f(CW\*(C`optional\*(C'\fR parameters are part of the
validation specification used by \f(CW\*(C`Params::Validate\*(C'\fR.  The various
constants used, \f(CW\*(C`ARRAYREF\*(C'\fR, \f(CW\*(C`SCALAR\*(C'\fR, etc. are all exported by
\&\f(CW\*(C`Params::Validate\*(C'\fR.  This means that any of these six parameter
names, plus the \f(CW\*(C`lexer_class\*(C'\fR parameter (because of the
\&\f(CW\*(C`contained_objects()\*(C'\fR specification given earlier), are valid
arguments to the Compiler's \f(CW\*(C`new()\*(C'\fR method.
.PP
Note that there are also some \f(CW\*(C`parse\*(C'\fR attributes declared.  These
have nothing to do with \f(CW\*(C`Class::Container\*(C'\fR or \f(CW\*(C`Params::Validate\*(C'\fR \-
any extra entries like this are simply ignored, so you are free to put
extra information in the specifications as long as it doesn't overlap
with what \f(CW\*(C`Class::Container\*(C'\fR or \f(CW\*(C`Params::Validate\*(C'\fR are looking for.
.ie n .Sh "$self\fP\->\fIcreate_delayed_object()"
.el .Sh "\f(CW$self\fP\->\fIcreate_delayed_object()\fP"
.IX Subsection "$self->create_delayed_object()"
If a contained object was declared with \f(CW\*(C`delayed => 1\*(C'\fR, use this
method to create an instance of the object.  Note that this is an
object method, not a class method:
.PP
.Vb 2
\&   my $foo =       $self\->create_delayed_object(\*(Aqfoo\*(Aq, ...); # YES!
\&   my $foo = _\|_PACKAGE_\|_\->create_delayed_object(\*(Aqfoo\*(Aq, ...); # NO!
.Ve
.PP
The first argument should be a key passed to the
\&\f(CW\*(C`contained_objects()\*(C'\fR method.  Any additional arguments will be
passed to the \f(CW\*(C`new()\*(C'\fR method of the object being created, overriding
any parameters previously passed to the container class constructor.
(Could I possibly be more alliterative?  Veni, vedi, vici.)
.ie n .Sh "$self\->delayed_object_params($name, [params])"
.el .Sh "\f(CW$self\fP\->delayed_object_params($name, [params])"
.IX Subsection "$self->delayed_object_params($name, [params])"
Allows you to adjust the parameters that will be used to create any
delayed objects in the future.  The first argument specifies the
\&\*(L"name\*(R" of the object, and any additional arguments are key-value pairs
that will become parameters to the delayed object.
.PP
When called with only a \f(CW$name\fR argument and no list of parameters to
set, returns a hash reference containing the parameters that will be
passed when creating objects of this type.
.ie n .Sh "$self\->delayed_object_class($name)"
.el .Sh "\f(CW$self\fP\->delayed_object_class($name)"
.IX Subsection "$self->delayed_object_class($name)"
Returns the class that will be used when creating delayed objects of
the given name.  Use this sparingly \- in most situations you shouldn't
care what the class is.
.Sh "_\|_PACKAGE_\|_\->\fIdecorates()\fP"
.IX Subsection "__PACKAGE__->decorates()"
Version 0.09 of Class::Container added [as yet experimental] support
for so-called \*(L"decorator\*(R" relationships, using the term as defined in
\&\fIDesign Patterns\fR by Gamma, et al. (the Gang of Four book).  To
declare a class as a decorator of another class, simply set \f(CW@ISA\fR to
the class which will be decorated, and call the decorator class's
\&\f(CW\*(C`decorates()\*(C'\fR method.
.PP
Internally, this will ensure that objects are instantiated as
decorators.  This means that you can mix & match extra add-on
functionality classes much more easily.
.PP
In the current implementation, if only a single decoration is used on
an object, it will be instantiated as a simple subclass, thus avoiding
a layer of indirection.
.ie n .Sh "$self\fP\->\fIvalidation_spec()"
.el .Sh "\f(CW$self\fP\->\fIvalidation_spec()\fP"
.IX Subsection "$self->validation_spec()"
Returns a hash reference suitable for passing to the
\&\f(CW\*(C`Params::Validate\*(C'\fR \f(CW\*(C`validate\*(C'\fR function.  Does \fInot\fR include any
arguments that can be passed to contained objects.
.ie n .Sh "$class\->allowed_params(\e%args)"
.el .Sh "\f(CW$class\fP\->allowed_params(\e%args)"
.IX Subsection "$class->allowed_params(%args)"
Returns a hash reference of every parameter this class will accept,
\&\fIincluding\fR parameters it will pass on to its own contained objects.
The keys are the parameter names, and the values are their
corresponding specifications from their \f(CW\*(C`valid_params()\*(C'\fR definitions.
If a parameter is used by both the current object and one of its
contained objects, the specification returned will be from the
container class, not the contained.
.PP
Because the parameters accepted by \f(CW\*(C`new()\*(C'\fR can vary based on the
parameters \fIpassed\fR to \f(CW\*(C`new()\*(C'\fR, you can pass any parameters to the
\&\f(CW\*(C`allowed_params()\*(C'\fR method too, ensuring that the hash you get back is
accurate.
.ie n .Sh "$self\fP\->\fIcontainer()"
.el .Sh "\f(CW$self\fP\->\fIcontainer()\fP"
.IX Subsection "$self->container()"
Returns the object that created you.  This is remembered by storing a
reference to that object, so we use the \f(CW\*(C`Scalar::Utils\*(C'\fR \f(CW\*(C`weakref()\*(C'\fR
function to avoid persistent circular references that would cause
memory leaks.  If you don't have \f(CW\*(C`Scalar::Utils\*(C'\fR installed, we don't
make these references in the first place, and calling \f(CW\*(C`container()\*(C'\fR
will result in a fatal error.
.PP
If you weren't created by another object via \f(CW\*(C`Class::Container\*(C'\fR,
\&\f(CW\*(C`container()\*(C'\fR returns \f(CW\*(C`undef\*(C'\fR.
.PP
In most cases you shouldn't care what object created you, so use this
method sparingly.
.ie n .Sh "$object\->show_containers"
.el .Sh "\f(CW$object\fP\->show_containers"
.IX Subsection "$object->show_containers"
.ie n .Sh "$package\->show_containers"
.el .Sh "\f(CW$package\fP\->show_containers"
.IX Subsection "$package->show_containers"
This method returns a string meant to describe the containment
relationships among classes.  You should not depend on the specific
formatting of the string, because I may change things in a future
release to make it prettier.
.PP
For example, the HTML::Mason code returns the following when you do
\&\f(CW\*(C`$interp\->show_containers\*(C'\fR:
.PP
.Vb 6
\& HTML::Mason::Interp=HASH(0x238944)
\&   resolver \-> HTML::Mason::Resolver::File
\&   compiler \-> HTML::Mason::Compiler::ToObject
\&     lexer \-> HTML::Mason::Lexer
\&   request \-> HTML::Mason::Request (delayed)
\&     buffer \-> HTML::Mason::Buffer (delayed)
.Ve
.PP
Currently, containment is shown by indentation, so the Interp object
contains a resolver and a compiler, and a delayed request (or several
delayed requests).  The compiler contains a lexer, and each request
contains a delayed buffer (or several delayed buffers).
.ie n .Sh "$object\->dump_parameters"
.el .Sh "\f(CW$object\fP\->dump_parameters"
.IX Subsection "$object->dump_parameters"
Returns a hash reference containing a set of parameters that should be
sufficient to re-create the given object using its class's \f(CW\*(C`new()\*(C'\fR
method.  This is done by fetching the current value for each declared
parameter (i.e. looking in \f(CW$object\fR for hash entries of the same
name), then recursing through all contained objects and doing the
same.
.PP
A few words of caution here.  First, the dumped parameters represent
the \fIcurrent\fR state of the object, not the state when it was
originally created.
.PP
Second, a class's declared parameters may not correspond exactly to
its data members, so it might not be possible to recover the former
from the latter.  If it's possible but requires some manual fudging,
you can override this method in your class, something like so:
.PP
.Vb 3
\& sub dump_parameters {
\&   my $self = shift;
\&   my $dump = $self\->SUPER::dump_parameters();
\&   
\&   # Perform fudgery
\&   $dump\->{incoming} = $self\->{_private};
\&   delete $dump\->{superfluous};
\&   return $dump;
\& }
.Ve
.SH "SEE ALSO"
.IX Header "SEE ALSO"
Params::Validate
.SH "AUTHOR"
.IX Header "AUTHOR"
Originally by Ken Williams <ken@mathforum.org> and Dave Rolsky
<autarch@urth.org> for the HTML::Mason project.  Important feedback
contributed by Jonathan Swartz <swartz@pobox.com>.  Extended by Ken
Williams for the AI::Categorizer project.
.PP
Currently maintained by Ken Williams.
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
