1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.shiro.config;
20  
21  import java.util.Collection;
22  import java.util.List;
23  import java.util.Map;
24  import java.util.Set;
25  
26  /**
27   * @since Aug 5, 2008 10:17:37 AM
28   */
29  @SuppressWarnings({"UnusedDeclaration"})
30  public class CompositeBean {
31      
32      private String name;
33  
34      private String stringProp;
35      private boolean booleanProp;
36      private int intProp;
37      private SimpleBean simpleBean;
38  
39      private Set<SimpleBean> simpleBeanSet;
40      private List<SimpleBean> simpleBeanList;
41      private Collection<SimpleBean> simpleBeanCollection;
42      private Map<String, SimpleBean> simpleBeanMap;
43      private Map<String, CompositeBean> compositeBeanMap;
44      private CompositeBean[] compositeBeanArray;
45  
46      public CompositeBean() {
47      }
48      
49      public CompositeBean(String name) {
50          this.name = name;
51      }
52  
53      public String getName() {
54          return name;
55      }
56  
57      public void setName(String name) {
58          this.name = name;
59      }
60  
61      public String getStringProp() {
62          return stringProp;
63      }
64  
65      public void setStringProp(String stringProp) {
66          this.stringProp = stringProp;
67      }
68  
69      public boolean isBooleanProp() {
70          return booleanProp;
71      }
72  
73      public void setBooleanProp(boolean booleanProp) {
74          this.booleanProp = booleanProp;
75      }
76  
77      public int getIntProp() {
78          return intProp;
79      }
80  
81      public void setIntProp(int intProp) {
82          this.intProp = intProp;
83      }
84  
85      public SimpleBean getSimpleBean() {
86          return simpleBean;
87      }
88  
89      public void setSimpleBean(SimpleBean simpleBean) {
90          this.simpleBean = simpleBean;
91      }
92  
93      public Set<SimpleBean> getSimpleBeanSet() {
94          return simpleBeanSet;
95      }
96  
97      public void setSimpleBeanSet(Set<SimpleBean> simpleBeanSet) {
98          this.simpleBeanSet = simpleBeanSet;
99      }
100 
101     public List<SimpleBean> getSimpleBeanList() {
102         return simpleBeanList;
103     }
104 
105     public void setSimpleBeanList(List<SimpleBean> simpleBeanList) {
106         this.simpleBeanList = simpleBeanList;
107     }
108 
109     public Collection<SimpleBean> getSimpleBeanCollection() {
110         return simpleBeanCollection;
111     }
112 
113     public void setSimpleBeanCollection(Collection<SimpleBean> simpleBeanCollection) {
114         this.simpleBeanCollection = simpleBeanCollection;
115     }
116 
117     public Map<String, SimpleBean> getSimpleBeanMap() {
118         return simpleBeanMap;
119     }
120 
121     public void setSimpleBeanMap(Map<String, SimpleBean> simpleBeanMap) {
122         this.simpleBeanMap = simpleBeanMap;
123     }
124 
125     public Map<String, CompositeBean> getCompositeBeanMap() {
126         return compositeBeanMap;
127     }
128 
129     public void setCompositeBeanMap(Map<String, CompositeBean> compositeBeanMap) {
130         this.compositeBeanMap = compositeBeanMap;
131     }
132 
133     public CompositeBean[] getCompositeBeanArray() {
134         return compositeBeanArray;
135     }
136 
137     public void setCompositeBeanArray(CompositeBean[] compositeBeanArray) {
138         this.compositeBeanArray = compositeBeanArray;
139     }
140 }