KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > portalImpl > portlet > TestConfig


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