Coverage Report - org.seasar.teeda.core.taglib.core.MaxMinValidatorTag
 
Classes in this File Line Coverage Branch Coverage Complexity
MaxMinValidatorTag
68%
15/22
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.teeda.core.taglib.core;
 17  
 
 18  
 import javax.faces.webapp.ValidatorTag;
 19  
 
 20  
 /**
 21  
  * @author yone
 22  
  */
 23  21
 public abstract class MaxMinValidatorTag extends ValidatorTag {
 24  
 
 25  21
     private String minimum_ = null;
 26  
 
 27  21
     private boolean minimumSet = false;
 28  
 
 29  21
     private String maximum_ = null;
 30  
 
 31  21
     private boolean maximumSet = false;
 32  
 
 33  
     public void setMinimum(String minimum) {
 34  6
         minimumSet = true;
 35  6
         this.minimum_ = minimum;
 36  6
     }
 37  
 
 38  
     public String getMinimum() {
 39  18
         return minimum_;
 40  
     }
 41  
 
 42  
     public void setMaximum(String maximum) {
 43  6
         maximumSet = true;
 44  6
         this.maximum_ = maximum;
 45  6
     }
 46  
 
 47  
     public String getMaximum() {
 48  18
         return maximum_;
 49  
     }
 50  
 
 51  
     public boolean isMaximumSet() {
 52  27
         return maximumSet;
 53  
     }
 54  
 
 55  
     public void setMaximumSet(boolean maximumSet) {
 56  0
         this.maximumSet = maximumSet;
 57  0
     }
 58  
 
 59  
     public boolean isMinimumSet() {
 60  27
         return minimumSet;
 61  
     }
 62  
 
 63  
     public void setMinimumSet(boolean minimumSet) {
 64  0
         this.minimumSet = minimumSet;
 65  0
     }
 66  
 
 67  
     public void release() {
 68  0
         minimum_ = null;
 69  0
         maximum_ = null;
 70  0
     }
 71  
 }