+=head2 dump
+
+=over 4
+
+$description = $matcher->dump();
+
+=back
+
+Returns a reference to a structure containing all of the information
+in the matcher object. This is mainly a convenience method to
+aid setting up a HTML editing form.
+
+=cut
+
+sub dump {
+ my $self = shift;
+
+ my $result = {};
+
+ $result->{'matcher_id'} = $self->{'id'};
+ $result->{'code'} = $self->{'code'};
+ $result->{'description'} = $self->{'description'};
+
+ $result->{'matchpoints'} = [];
+ foreach my $matchpoint (@{ $self->{'matchpoints'} }) {
+ push @{ $result->{'matchpoints'} }, $matchpoint;
+ }
+ $result->{'matchchecks'} = [];
+ foreach my $matchcheck (@{ $self->{'required_checks'} }) {
+ push @{ $result->{'matchchecks'} }, $matchcheck;
+ }
+
+ return $result;
+}
+