1
2
3
4
5
6
7
8
9
10
11
12
13
14
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