Coverage Report - org.webslinger.rules.AbstractListValue
 
Classes in this File Line Coverage Branch Coverage Complexity
AbstractListValue
71%
5/7
100%
1/1
0
 
 1  
 package org.webslinger.rules;
 2  
 
 3  
 import java.io.IOException;
 4  
 import javax.servlet.ServletRequest;
 5  
 
 6  
 import org.webslinger.Webslinger;
 7  
 
 8  
 public abstract class AbstractListValue<T> extends AbstractValue {
 9  
     public AbstractListValue(int id) {
 10  0
         super(id);
 11  0
     }
 12  
 
 13  
     public AbstractListValue(Rules p, int id) {
 14  66
         super(p, id);
 15  66
     }
 16  
 
 17  
     public abstract T[] getValue(ServletRequest request, Webslinger top) throws IOException;
 18  
 
 19  
     public Object getFirstValue(ServletRequest request, Webslinger top) throws IOException {
 20  94
         Object[] values = getValue(request, top);
 21  94
         if (values == null) return null;
 22  94
         return values[0];
 23  
     }
 24  
 }