001 /** 002 * Copyright 2005-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package edu.sampleu.demo.kitchensink; 017 018 import java.io.Serializable; 019 import java.util.ArrayList; 020 import java.util.HashMap; 021 import java.util.List; 022 import java.util.Map; 023 024 /** 025 * For test view purposes only 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 */ 029 public class UITestObject implements Serializable { 030 private static final long serialVersionUID = -7525378097732916411L; 031 032 private String field1; 033 private String field2; 034 private String field3; 035 private String field4; 036 037 private Map<String, Object> remoteFieldValuesMap; 038 039 private List<UITestObject> subList = new ArrayList<UITestObject>(); 040 041 public UITestObject() { 042 remoteFieldValuesMap = new HashMap<String, Object>(); 043 remoteFieldValuesMap.put("remoteField1", "Apple"); 044 remoteFieldValuesMap.put("remoteField2", "Banana"); 045 remoteFieldValuesMap.put("remoteField3", true); 046 remoteFieldValuesMap.put("remoteField4", "Fruit"); 047 } 048 049 public UITestObject(String field1, String field2, String field3, String field4) { 050 this.field1 = field1; 051 this.field2 = field2; 052 this.field3 = field3; 053 this.field4 = field4; 054 055 remoteFieldValuesMap = new HashMap<String, Object>(); 056 remoteFieldValuesMap.put("remoteField1", "Apple"); 057 remoteFieldValuesMap.put("remoteField2", "Banana"); 058 remoteFieldValuesMap.put("remoteField3", true); 059 remoteFieldValuesMap.put("remoteField4", "Fruit"); 060 061 } 062 063 /** 064 * @return the field1 065 */ 066 public String getField1() { 067 return this.field1; 068 } 069 070 /** 071 * @param field1 the field1 to set 072 */ 073 public void setField1(String field1) { 074 this.field1 = field1; 075 } 076 077 /** 078 * @return the field2 079 */ 080 public String getField2() { 081 return this.field2; 082 } 083 084 /** 085 * @param field2 the field2 to set 086 */ 087 public void setField2(String field2) { 088 this.field2 = field2; 089 } 090 091 /** 092 * @return the field3 093 */ 094 public String getField3() { 095 return this.field3; 096 } 097 098 /** 099 * @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 }