blob: 7edb245b6929e07380035aa829f7d78f48eae357 [file] [log] [blame]
cbateman43adce62006-11-18 01:47:58 +00001package beans;
2
3import java.math.BigInteger;
4import java.math.BigDecimal;
5
6import java.util.Collection;
7import java.util.Collections;
8import java.util.List;
9import java.util.Map;
10
11import javax.faces.component.UIComponent;
12import javax.faces.context.FacesContext;
13
14public class MyBeanSettable
15{
16 public String getStringProperty()
17 {
18 return "";
19 }
20
21 public void setStringProperty(String stringProp)
22 {
23
24 }
25
26 public double getDoubleProperty()
27 {
28 return 1.04;
29 }
30
31 public void setDoubleProperty(double newValue)
32 {
33 // doesn't matter what happens here
34 }
35
36 public void setIntegerProperty(int integerProp)
37 {
38
39 }
40
41 public int getIntegerProperty()
42 {
43 return 0;
44 }
45
46 public boolean getBooleanProperty()
47 {
48 return false;
49 }
50
51 public void setBooleanProperty(boolean booleanProp)
52 {
53
54 }
55
56 public Map getMapProperty()
57 {
58 return Collections.EMPTY_MAP;
59 }
60
61 public void setMapProperty(Map mapProperty)
62 {
63
64 }
65
66 public void setStringArrayProperty(String[] stringArrayProperty)
67 {
68
69 }
70
71 public String[] getStringArrayProperty()
72 {
73 return new String[0];
74 }
75
76 public Collection getCollectionProperty()
77 {
78 return Collections.EMPTY_LIST;
79 }
80
81 public void setCollectionProperty(Collection collectionProp)
82 {
83
84 }
85
86 public void setListProperty(List listProp)
87 {
88
89 }
90
91 public List getListProperty()
92 {
93 return Collections.EMPTY_LIST;
94 }
95
96 public void setComparablePropety(Comparable comp)
97 {
98
99 }
100
101 public Comparable getComparableProperty()
102 {
103 return null;
104 }
105
106 public MyBeanSettable recursiveCall()
107 {
108 return this;
109 }
110
111 public String getWritableStringProperty()
112 {
113 return "";
114 }
115
116 public void setWritableStringProperty(String newValue)
117 {
118 ;
119 }
120
121 public BigInteger getBigIntegerProperty()
122 {
123 return BigInteger.ONE;
124 }
125
126 public void setBigIntegerProperty(BigInteger newValue)
127 {
128 // doesn't matter what happens here
129 }
130
131 public BigDecimal getBigDoubleProperty()
132 {
133 return new BigDecimal(0.5);
134 }
135
136 public void setBigDoubleProperty(BigDecimal newValue)
137 {
138 // doesn't matter what happens here
139 }
140
141 public void validate(FacesContext facesContext,
142 UIComponent component,
143 Object object
144 )
145 {
146
147 }
148
149 public void validate2(FacesContext facesContext,
150 UIComponent component,
151 Object[] object
152 )
153 {
154
155 }
156
157 public MyBeanSettable getSelf()
158 {
159 return this;
160 }
161
162 public boolean isIsStyleBooleanProperty()
163 {
164 return false;
165 }
166
167 public void setIsStyleBooleanProperty(boolean styleProp)
168 {
169
170 }
171}