File Coverage

blib/lib/ODO/Query/Handler.pm
Criterion Covered Total %
statement 15 18 83.3
branch n/a
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 21 25 84.0


line stmt bran cond sub pod time code
1             #
2             # Copyright (c) 2006 IBM Corporation.
3             #
4             # All rights reserved. This program and the accompanying materials
5             # are made available under the terms of the Eclipse Public License v1.0
6             # which accompanies this distribution, and is available at
7             # http://www.eclipse.org/legal/epl-v10.html
8             #
9             # File: $Source: /var/lib/cvs/ODO/lib/ODO/Query/Handler.pm,v $
10             # Created by: Stephen Evanchik( evanchik@us.ibm.com )
11             # Created on: 12/05/2006
12             # Revision: $Id: Handler.pm,v 1.2 2009-11-25 17:53:53 ubuntu Exp $
13             #
14             # Contributors:
15             # IBM Corporation - initial API and implementation
16             #
17             package ODO::Query::Handler;
18              
19 5     5   31 use strict;
  5         48  
  5         179  
20 5     5   28 use warnings;
  5         9  
  5         162  
21              
22 5     5   26 use base qw/ODO/;
  5         12  
  5         473  
23 5     5   30 use vars qw /$VERSION/;
  5         55  
  5         461  
24             $VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /: (\d+)\.(\d+)/;
25              
26 5         65 use Class::Interfaces('ODO::Query::Handler'=>
27             {
28             'isa'=> 'ODO',
29             'methods'=> [ 'evaluate_query' ],
30             }
31 5     5   36 );
  5         9  
32              
33             our @ACCESSORS = qw/data query_object/;
34              
35             __PACKAGE__->mk_ro_accessors(@ACCESSORS);
36              
37             =head1 NAME
38              
39             ODO::Query::Handler - Query handler interface
40              
41             =head1 SYNOPSIS
42              
43             Synopsis.
44              
45             =head1 DESCRIPTION
46              
47             Description.
48              
49             =head1 CONSTRUCTOR
50              
51             Constructor.
52              
53             =head1 METHODS
54              
55             =over
56              
57             =item evaluate_query( $query_object )
58              
59             =cut
60              
61             sub init {
62 0     0 1   my ($self, $config) = @_;
63 0           $self->params($config, @ACCESSORS);
64 0           return $self;
65             }
66              
67             =back
68              
69             =head1 AUTHOR
70              
71             IBM Corporation
72              
73             =head1 COPYRIGHT
74              
75             Copyright (c) 2006 IBM Corporation.
76              
77             All rights reserved. This program and the accompanying materials
78             are made available under the terms of the Eclipse Public License v1.0
79             which accompanies this distribution, and is available at
80             http://www.eclipse.org/legal/epl-v10.html
81              
82             =cut
83              
84             1;
85              
86             __END__