Coverage Report - org.seasar.teeda.core.config.faces.element.impl.ComponentElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ComponentElementImpl
100%
20/20
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.ComponentElement;
 23  
 import org.seasar.teeda.core.config.faces.element.FacetElement;
 24  
 import org.seasar.teeda.core.config.faces.element.PropertyElement;
 25  
 
 26  
 public class ComponentElementImpl implements ComponentElement {
 27  
 
 28  
     private String componentType_;
 29  
 
 30  
     private String componentClass_;
 31  
 
 32  8
     private List attributes_ = new ArrayList();
 33  
 
 34  8
     private List properties_ = new ArrayList();
 35  
 
 36  8
     private List facets_ = new ArrayList();
 37  
 
 38  8
     public ComponentElementImpl() {
 39  8
     }
 40  
 
 41  
     public void setComponentType(String componentType) {
 42  5
         componentType_ = componentType;
 43  5
     }
 44  
 
 45  
     public void setComponentClass(String componentClass) {
 46  5
         componentClass_ = componentClass;
 47  5
     }
 48  
 
 49  
     public String getComponentType() {
 50  6
         return componentType_;
 51  
     }
 52  
 
 53  
     public String getComponentClass() {
 54  3
         return componentClass_;
 55  
     }
 56  
 
 57  
     public void addAttributeElement(AttributeElement attribute) {
 58  3
         attributes_.add(attribute);
 59  3
     }
 60  
 
 61  
     public void addPropertyElement(PropertyElement property) {
 62  1
         properties_.add(property);
 63  1
     }
 64  
 
 65  
     public void addFacetElement(FacetElement facet) {
 66  3
         facets_.add(facet);
 67  3
     }
 68  
 
 69  
     public List getPropertyElements() {
 70  1
         return properties_;
 71  
     }
 72  
 
 73  
     public List getFacetElements() {
 74  3
         return facets_;
 75  
     }
 76  
 
 77  
     public List getAttributeElements() {
 78  5
         return attributes_;
 79  
     }
 80  
 
 81  
 }