KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > beans > factory > HasMap


1 /*
2  * Copyright 2002-2005 the original author or authors.
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
17 package org.springframework.beans.factory;
18
19 import java.util.Map JavaDoc;
20 import java.util.Properties JavaDoc;
21 import java.util.Set JavaDoc;
22
23 /**
24  * Bean exposing a map. Used for bean factory tests.
25  *
26  * @author Rod Johnson
27  * @since 05.06.2003
28  */

29 public class HasMap {
30     
31     private Map JavaDoc map;
32
33     private Set JavaDoc set;
34
35     private Properties JavaDoc props;
36     
37     private Object JavaDoc[] objectArray;
38     
39     private Class JavaDoc[] classArray;
40     
41     private Integer JavaDoc[] intArray;
42
43     private HasMap() {
44     }
45
46     public Map JavaDoc getMap() {
47         return map;
48     }
49
50     public void setMap(Map JavaDoc map) {
51         this.map = map;
52     }
53
54     public Set JavaDoc getSet() {
55         return set;
56     }
57
58     public void setSet(Set JavaDoc set) {
59         this.set = set;
60     }
61
62     public Properties JavaDoc getProps() {
63         return props;
64     }
65
66     public void setProps(Properties JavaDoc props) {
67         this.props = props;
68     }
69
70     public Object JavaDoc[] getObjectArray() {
71         return objectArray;
72     }
73
74     public void setObjectArray(Object JavaDoc[] objectArray) {
75         this.objectArray = objectArray;
76     }
77
78     public Class JavaDoc[] getClassArray() {
79         return classArray;
80     }
81
82     public void setClassArray(Class JavaDoc[] classArray) {
83         this.classArray = classArray;
84     }
85
86     public Integer JavaDoc[] getIntegerArray() {
87         return intArray;
88     }
89
90     public void setIntegerArray(Integer JavaDoc[] is) {
91         intArray = is;
92     }
93
94 }
95
Popular Tags