View Javadoc

1   /*
2    * Copyright 2004 The Apache Software Foundation
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, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.pluto.portalImpl.portlet;
17  
18  import java.util.Map;
19  import java.util.Collections;
20  
21  /***
22   * TestPortlet Configuration.
23   *
24   * @author <a href="ddewolf@apache.org">David H. DeWolf</a>
25   * @version 1.0
26   * @since Sep 15, 2004
27   */
28  public class TestConfig {
29  
30      private String testClassName;
31      private String name;
32      private String displayURI;
33      private Map params = new java.util.HashMap();
34  
35      public TestConfig() {
36  
37      }
38  
39      public String getTestClassName() {
40          return testClassName;
41      }
42  
43      public void setTestClassName(String testClassName) {
44          this.testClassName = testClassName;
45      }
46  
47      public String getName() {
48          return name;
49      }
50  
51      public void setName(String testName) {
52          this.name = testName;
53      }
54  
55      public String getDisplayURI() {
56          return displayURI;
57      }
58  
59      public void setDisplayURI(String displayURI) {
60          this.displayURI = displayURI;
61      }
62  
63      public void addInitParameter(String parameter, String value) {
64          this.params.put(parameter, value);
65      }
66  
67      public Map getInitParameters() {
68          return Collections.unmodifiableMap(params);
69      }
70  
71  
72  
73  }
74