View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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 edu.sampleu.demo.kitchensink;
17  
18  import java.io.Serializable;
19  import java.util.ArrayList;
20  import java.util.HashMap;
21  import java.util.List;
22  import java.util.Map;
23  
24  /**
25   * For test view purposes only
26   *
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  public class UITestObject implements Serializable {
30      private static final long serialVersionUID = -7525378097732916411L;
31  
32      private String field1;
33      private String field2;
34      private String field3;
35      private String field4;
36  
37      private Map<String, Object> remoteFieldValuesMap;
38  
39      private List<UITestObject> subList = new ArrayList<UITestObject>();
40  
41      public UITestObject() {
42          remoteFieldValuesMap = new HashMap<String, Object>();
43          remoteFieldValuesMap.put("remoteField1", "Apple");
44          remoteFieldValuesMap.put("remoteField2", "Banana");
45          remoteFieldValuesMap.put("remoteField3", true);
46          remoteFieldValuesMap.put("remoteField4", "Fruit");
47      }
48  
49      public UITestObject(String field1, String field2, String field3, String field4) {
50          this.field1 = field1;
51          this.field2 = field2;
52          this.field3 = field3;
53          this.field4 = field4;
54  
55          remoteFieldValuesMap = new HashMap<String, Object>();
56          remoteFieldValuesMap.put("remoteField1", "Apple");
57          remoteFieldValuesMap.put("remoteField2", "Banana");
58          remoteFieldValuesMap.put("remoteField3", true);
59          remoteFieldValuesMap.put("remoteField4", "Fruit");
60  
61      }
62  
63      /**
64       * @return the field1
65       */
66      public String getField1() {
67          return this.field1;
68      }
69  
70      /**
71       * @param field1 the field1 to set
72       */
73      public void setField1(String field1) {
74          this.field1 = field1;
75      }
76  
77      /**
78       * @return the field2
79       */
80      public String getField2() {
81          return this.field2;
82      }
83  
84      /**
85       * @param field2 the field2 to set
86       */
87      public void setField2(String field2) {
88          this.field2 = field2;
89      }
90  
91      /**
92       * @return the field3
93       */
94      public String getField3() {
95          return this.field3;
96      }
97  
98      /**
99       * @param field3 the field3 to set
100      */
101     public void setField3(String field3) {
102         this.field3 = field3;
103     }
104 
105     /**
106      * @return the field4
107      */
108     public String getField4() {
109         return this.field4;
110     }
111 
112     /**
113      * @param field4 the field4 to set
114      */
115     public void setField4(String field4) {
116         this.field4 = field4;
117     }
118 
119     /**
120      * @param subList the subList to set
121      */
122     public void setSubList(List<UITestObject> subList) {
123         this.subList = subList;
124     }
125 
126     /**
127      * @return the subList
128      */
129     public List<UITestObject> getSubList() {
130         return subList;
131     }
132 
133     public Map<String, Object> getRemoteFieldValuesMap() {
134         return remoteFieldValuesMap;
135     }
136 
137     public void setRemoteFieldValuesMap(Map<String, Object> remoteFieldValuesMap) {
138         this.remoteFieldValuesMap = remoteFieldValuesMap;
139     }
140 
141 }