Coverage Report - org.seasar.teeda.core.config.webapp.element.impl.ServletElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ServletElementImpl
93%
13/14
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.InitParamElement;
 23  
 import org.seasar.teeda.core.config.webapp.element.ServletElement;
 24  
 
 25  
 /**
 26  
  * @author manhole
 27  
  */
 28  2
 public class ServletElementImpl implements ServletElement, Serializable {
 29  
 
 30  
     private static final long serialVersionUID = 1L;
 31  
 
 32  
     private String servletName_;
 33  
 
 34  
     private String servletClass_;
 35  
 
 36  
     private String loadOnStartup_;
 37  
 
 38  2
     private Map initParams_ = new HashMap();
 39  
 
 40  
     public String getServletName() {
 41  6
         return servletName_;
 42  
     }
 43  
 
 44  
     public void setServletName(String servletName) {
 45  2
         servletName_ = servletName;
 46  2
     }
 47  
 
 48  
     public String getServletClass() {
 49  3
         return servletClass_;
 50  
     }
 51  
 
 52  
     public void setServletClass(String servletClass) {
 53  2
         servletClass_ = servletClass;
 54  2
     }
 55  
 
 56  
     public String getLoadOnStartup() {
 57  0
         return loadOnStartup_;
 58  
     }
 59  
 
 60  
     public void setLoadOnStartup(String loadOnStartup) {
 61  2
         loadOnStartup_ = loadOnStartup;
 62  2
     }
 63  
 
 64  
     public InitParamElement getInitParamElementByParamName(String paramName) {
 65  1
         return (InitParamElement) initParams_.get(paramName);
 66  
     }
 67  
 
 68  
     public void addInitParamElement(InitParamElement initParam) {
 69  1
         initParams_.put(initParam.getParamName(), initParam);
 70  1
     }
 71  
 
 72  
 }