Coverage Report - org.seasar.teeda.core.config.faces.element.impl.ValidatorElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ValidatorElementImpl
81%
13/16
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.PropertyElement;
 23  
 import org.seasar.teeda.core.config.faces.element.ValidatorElement;
 24  
 
 25  
 /**
 26  
  * @author shot
 27  
  */
 28  
 public class ValidatorElementImpl implements ValidatorElement {
 29  
 
 30  
     private String validatorId_;
 31  
 
 32  
     private String validatorClass_;
 33  
 
 34  2
     private List attributeElements_ = new ArrayList();
 35  
 
 36  2
     private List propertyElements_ = new ArrayList();
 37  
 
 38  2
     public ValidatorElementImpl() {
 39  2
     }
 40  
 
 41  
     public void setValidatorId(String validatorId) {
 42  2
         validatorId_ = validatorId;
 43  2
     }
 44  
 
 45  
     public void setValidatorClass(String validatorClassName) {
 46  2
         validatorClass_ = validatorClassName;
 47  2
     }
 48  
 
 49  
     public String getValidatorId() {
 50  2
         return validatorId_;
 51  
     }
 52  
 
 53  
     public String getValidatorClass() {
 54  1
         return validatorClass_;
 55  
     }
 56  
 
 57  
     public void addAttributeElement(AttributeElement attribute) {
 58  1
         attributeElements_.add(attribute);
 59  1
     }
 60  
 
 61  
     public void addPropertyElement(PropertyElement property) {
 62  0
         propertyElements_.add(property);
 63  0
     }
 64  
 
 65  
     public List getAttributeElements() {
 66  1
         return attributeElements_;
 67  
     }
 68  
 
 69  
     public List getPropertyElements() {
 70  0
         return propertyElements_;
 71  
     }
 72  
 
 73  
 }