Coverage Report - org.seasar.teeda.core.config.webapp.element.impl.FilterElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
FilterElementImpl
100%
11/11
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.webapp.element.impl;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.HashMap;
 20  
 import java.util.Map;
 21  
 
 22  
 import org.seasar.teeda.core.config.webapp.element.FilterElement;
 23  
 import org.seasar.teeda.core.config.webapp.element.InitParamElement;
 24  
 
 25  
 /**
 26  
  * @author manhole
 27  
  */
 28  2
 public class FilterElementImpl implements FilterElement, Serializable {
 29  
 
 30  
     private static final long serialVersionUID = 1L;
 31  
 
 32  
     private String filterName_;
 33  
 
 34  
     private String filterClass_;
 35  
 
 36  2
     private Map initParams_ = new HashMap();
 37  
 
 38  
     public String getFilterClass() {
 39  1
         return filterClass_;
 40  
     }
 41  
 
 42  
     public void setFilterClass(String filterClass) {
 43  2
         filterClass_ = filterClass;
 44  2
     }
 45  
 
 46  
     public String getFilterName() {
 47  3
         return filterName_;
 48  
     }
 49  
 
 50  
     public void setFilterName(String filterName) {
 51  2
         filterName_ = filterName;
 52  2
     }
 53  
 
 54  
     public InitParamElement getInitParamElementByParamName(String paramName) {
 55  1
         return (InitParamElement) initParams_.get(paramName);
 56  
     }
 57  
 
 58  
     public void addInitParamElement(InitParamElement initParam) {
 59  1
         initParams_.put(initParam.getParamName(), initParam);
 60  1
     }
 61  
 
 62  
 }