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.Collections;
19  import java.util.Map;
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 initParams = new java.util.HashMap();
34      private Map actionParameters = new java.util.HashMap();
35      private Map renderParameters = new java.util.HashMap();
36  
37      public TestConfig() {
38  
39      }
40  
41      public String getTestClassName() {
42          return testClassName;
43      }
44  
45      public void setTestClassName(String testClassName) {
46          this.testClassName = testClassName;
47      }
48  
49      public String getName() {
50          return name;
51      }
52  
53      public void setName(String testName) {
54          this.name = testName;
55      }
56  
57      public String getDisplayURI() {
58          return displayURI;
59      }
60  
61      public void setDisplayURI(String displayURI) {
62          this.displayURI = displayURI;
63      }
64  
65      public void addInitParameter(String parameter, String value) {
66          this.initParams.put(parameter, value);
67      }
68  
69      public Map getInitParameters() {
70          return Collections.unmodifiableMap(initParams);
71      }
72  
73      public void addActionParameter(String parameter, String value) {
74          this.actionParameters.put(parameter, value);
75      }
76  
77      public Map getActionParameters() {
78          return Collections.unmodifiableMap(actionParameters);
79      }
80  
81      public void addRenderParameter(String parameter, String value) {
82          this.renderParameters.put(parameter, value);
83      }
84  
85      public Map getRenderParameters() {
86          return Collections.unmodifiableMap(renderParameters);
87      }
88  
89      public String toString() {
90          return super.toString()+"<"+getName()+">";
91      }
92  }
93