View Javadoc

1   /**
2    * Copyright 2005-2012 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 org.kuali.student.enrollment.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      private boolean bfield;
37  
38      private Map<String, Object> remoteFieldValuesMap;
39  
40      private List<UITestObject> subList = new ArrayList<UITestObject>();
41  
42      public UITestObject() {
43          remoteFieldValuesMap = new HashMap<String, Object>();
44          remoteFieldValuesMap.put("remoteField1", "Apple");
45          remoteFieldValuesMap.put("remoteField2", "Banana");
46          remoteFieldValuesMap.put("remoteField3", true);
47          remoteFieldValuesMap.put("remoteField4", "Fruit");
48      }
49  
50      public UITestObject(String field1, String field2, String field3, String field4) {
51          this.field1 = field1;
52          this.field2 = field2;
53          this.field3 = field3;
54          this.field4 = field4;
55  
56          remoteFieldValuesMap = new HashMap<String, Object>();
57          remoteFieldValuesMap.put("remoteField1", "Apple");
58          remoteFieldValuesMap.put("remoteField2", "Banana");
59          remoteFieldValuesMap.put("remoteField3", true);
60          remoteFieldValuesMap.put("remoteField4", "Fruit");
61  
62      }
63  
64      /**
65       * @return the field1
66       */
67      public String getField1() {
68          return this.field1;
69      }
70  
71      /**
72       * @param field1 the field1 to set
73       */
74      public void setField1(String field1) {
75          this.field1 = field1;
76      }
77  
78      /**
79       * @return the field2
80       */
81      public String getField2() {
82          return this.field2;
83      }
84  
85      /**
86       * @param field2 the field2 to set
87       */
88      public void setField2(String field2) {
89          this.field2 = field2;
90      }
91  
92      /**
93       * @return the field3
94       */
95      public String getField3() {
96          return this.field3;
97      }
98  
99      /**
100      * @param field3 the field3 to set
101      */
102     public void setField3(String field3) {
103         this.field3 = field3;
104     }
105 
106     /**
107      * @return the field4
108      */
109     public String getField4() {
110         return this.field4;
111     }
112 
113     /**
114      * @param field4 the field4 to set
115      */
116     public void setField4(String field4) {
117         this.field4 = field4;
118     }
119 
120     /**
121      * @param subList the subList to set
122      */
123     public void setSubList(List<UITestObject> subList) {
124         this.subList = subList;
125     }
126 
127     /**
128      * @return the subList
129      */
130     public List<UITestObject> getSubList() {
131         return subList;
132     }
133 
134     public Map<String, Object> getRemoteFieldValuesMap() {
135         return remoteFieldValuesMap;
136     }
137 
138     public void setRemoteFieldValuesMap(Map<String, Object> remoteFieldValuesMap) {
139         this.remoteFieldValuesMap = remoteFieldValuesMap;
140     }
141 
142     public boolean isBfield() {
143         return bfield;
144     }
145 
146     public void setBfield(boolean bfield) {
147         this.bfield = bfield;
148     }
149 }