View Javadoc
1   /*
2    *    Copyright 2009-2024 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    *       https://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.ibatis.domain.misc;
17  
18  import java.util.ArrayList;
19  import java.util.HashMap;
20  import java.util.List;
21  import java.util.Map;
22  
23  public class RichType {
24  
25    private RichType richType;
26  
27    // Required for test
28    private String richField;
29  
30    private String richProperty;
31  
32    private Map richMap = new HashMap<>();
33  
34    private List richList = new ArrayList<>() {
35      private static final long serialVersionUID = 1L;
36      {
37        add("bar");
38      }
39    };
40  
41    public RichType getRichType() {
42      return richType;
43    }
44  
45    public void setRichType(RichType richType) {
46      this.richType = richType;
47    }
48  
49    public String getRichProperty() {
50      return richProperty;
51    }
52  
53    public void setRichProperty(String richProperty) {
54      this.richProperty = richProperty;
55    }
56  
57    public List getRichList() {
58      return richList;
59    }
60  
61    public void setRichList(List richList) {
62      this.richList = richList;
63    }
64  
65    public Map getRichMap() {
66      return richMap;
67    }
68  
69    public void setRichMap(Map richMap) {
70      this.richMap = richMap;
71    }
72  }