Coverage Report - org.seasar.teeda.core.config.faces.element.impl.ConverterElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ConverterElementImpl
100%
19/19
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.AttributeElement;
 22  
 import org.seasar.teeda.core.config.faces.element.ConverterElement;
 23  
 import org.seasar.teeda.core.config.faces.element.PropertyElement;
 24  
 
 25  
 /**
 26  
  * @author shot
 27  
  */
 28  
 public class ConverterElementImpl implements ConverterElement {
 29  
 
 30  
     private String converterId_;
 31  
 
 32  
     private String converterForClass_;
 33  
 
 34  
     private String converterClass_;
 35  
 
 36  
     private List attributeElements_;
 37  
 
 38  
     private List propertyElements_;
 39  
 
 40  14
     public ConverterElementImpl() {
 41  14
         attributeElements_ = new ArrayList();
 42  14
         propertyElements_ = new ArrayList();
 43  14
     }
 44  
 
 45  
     public void setConverterId(String converterId) {
 46  9
         converterId_ = converterId;
 47  9
     }
 48  
 
 49  
     public void setConverterForClass(String converterForClass) {
 50  5
         converterForClass_ = converterForClass;
 51  5
     }
 52  
 
 53  
     public void setConverterClass(String converterClass) {
 54  11
         converterClass_ = converterClass;
 55  11
     }
 56  
 
 57  
     public String getConverterClass() {
 58  8
         return converterClass_;
 59  
     }
 60  
 
 61  
     public String getConverterForClass() {
 62  10
         return converterForClass_;
 63  
     }
 64  
 
 65  
     public String getConverterId() {
 66  18
         return converterId_;
 67  
     }
 68  
 
 69  
     public void addAttributeElement(AttributeElement attributeTag) {
 70  2
         attributeElements_.add(attributeTag);
 71  2
     }
 72  
 
 73  
     public void addPropertyElement(PropertyElement propertyTag) {
 74  2
         propertyElements_.add(propertyTag);
 75  2
     }
 76  
 
 77  
     public List getAttributeElements() {
 78  2
         return attributeElements_;
 79  
     }
 80  
 
 81  
     public List getPropertyElements() {
 82  2
         return propertyElements_;
 83  
     }
 84  
 }