Coverage Report - org.seasar.teeda.core.config.faces.element.impl.ListEntriesElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ListEntriesElementImpl
69%
9/13
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.config.faces.element.impl;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.List;
 20  
 
 21  
 import org.seasar.teeda.core.config.faces.element.ListEntriesElement;
 22  
 
 23  
 /**
 24  
  * @author shot
 25  
  */
 26  
 public class ListEntriesElementImpl implements ListEntriesElement {
 27  
 
 28  
     private String valueClassName_;
 29  
 
 30  
     private List values_;
 31  
 
 32  
     private boolean nullValue_;
 33  
 
 34  4
     public ListEntriesElementImpl() {
 35  4
         values_ = new ArrayList();
 36  4
     }
 37  
 
 38  
     public void setValueClass(String valueClassName) {
 39  2
         valueClassName_ = valueClassName;
 40  2
     }
 41  
 
 42  
     public void addValue(String value) {
 43  2
         values_.add(value);
 44  2
     }
 45  
 
 46  
     public String getValueClass() {
 47  1
         return valueClassName_;
 48  
     }
 49  
 
 50  
     public List getValues() {
 51  1
         return values_;
 52  
     }
 53  
 
 54  
     public void setNullValue(boolean nullValue) {
 55  0
         nullValue_ = nullValue;
 56  0
         values_.add(null);
 57  0
     }
 58  
 
 59  
     public boolean isNullValue() {
 60  0
         return nullValue_;
 61  
     }
 62  
 
 63  
 }