Coverage Report - org.webslinger.rules.CSSStringValue
 
Classes in this File Line Coverage Branch Coverage Complexity
CSSStringValue
55%
6/11
N/A
1
 
 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 class CSSStringValue extends AbstractSingleValue implements ConstantValue {
 9  
     private String value;
 10  
 
 11  
     public CSSStringValue(int id) {
 12  0
         super(id);
 13  0
     }
 14  
 
 15  
     public CSSStringValue(Rules p, int id) {
 16  16
         super(p, id);
 17  16
     }
 18  
 
 19  
     /** Accept the visitor. **/
 20  
     public Object jjtAccept(RulesVisitor visitor, Object data) {
 21  0
         return visitor.visit(this, data);
 22  
     }
 23  
 
 24  
     void setValue(String value) {
 25  16
         this.value = value;
 26  16
     }
 27  
 
 28  
     public String getValue() {
 29  19
         return value;
 30  
     }
 31  
 
 32  
     public String getConstantValue() {
 33  0
         return value;
 34  
     }
 35  
 
 36  
     public String getValue(ServletRequest request, Webslinger top) throws IOException {
 37  19
         return getValue();
 38  
     }
 39  
 
 40  
     public String toString() {
 41  0
         return "StringValue(" + getValue() + ")";
 42  
     }
 43  
 }