Clover coverage report - Code Coverage for hivemind-lib release 1.0-beta-1
Coverage timestamp: Sat Jul 3 2004 09:42:02 EDT
file stats: LOC: 50   Methods: 3
NCLOC: 22   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
FilterHolder.java - 75% 66.7% 71.4%
coverage coverage
 1   
 //  Copyright 2004 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.hivemind.lib.pipeline;
 16   
 
 17   
 import org.apache.hivemind.Locatable;
 18   
 import org.apache.hivemind.Location;
 19   
 import org.apache.hivemind.impl.BaseLocatable;
 20   
 
 21   
 /**
 22   
  * A holder for a filter within a pipeline, and for the location for that filter.
 23   
  * This allows the location of the filter to be reported, even if the filter
 24   
  * itself does not implement Locatable.
 25   
  *
 26   
  * @author Howard Lewis Ship
 27   
  */
 28   
 public class FilterHolder implements Locatable
 29   
 {
 30   
     private Object _filter;
 31   
     private Location _location;
 32   
 
 33  7
     public FilterHolder(Object filter, Location location)
 34   
     {
 35  7
         _filter = filter;
 36  7
         _location = location;
 37   
     }
 38   
 
 39  7
     public Object getFilter()
 40   
     {
 41  7
         return _filter;
 42   
     }
 43   
 
 44  0
     public Location getLocation()
 45   
     {
 46  0
         return _location;
 47   
     }
 48   
 
 49   
 }
 50