View Javadoc
1   /*
2    *    Copyright 2009-2023 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    private String richField;
28  
29    private String richProperty;
30  
31    private Map richMap = new HashMap<>();
32  
33    private List richList = new ArrayList<>() {
34      private static final long serialVersionUID = 1L;
35      {
36        add("bar");
37      }
38    };
39  
40    public RichType getRichType() {
41      return richType;
42    }
43  
44    public void setRichType(RichType richType) {
45      this.richType = richType;
46    }
47  
48    public String getRichProperty() {
49      return richProperty;
50    }
51  
52    public void setRichProperty(String richProperty) {
53      this.richProperty = richProperty;
54    }
55  
56    public List getRichList() {
57      return richList;
58    }
59  
60    public void setRichList(List richList) {
61      this.richList = richList;
62    }
63  
64    public Map getRichMap() {
65      return richMap;
66    }
67  
68    public void setRichMap(Map richMap) {
69      this.richMap = richMap;
70    }
71  }