Source Code Cross Referenced for BeanImpl3.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » tools » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » rife 1.6.1 » com.uwyn.rife.tools 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.uwyn.rife.tools;
002:
003:        import com.uwyn.rife.config.RifeConfig;
004:        import com.uwyn.rife.site.ConstrainedBean;
005:        import com.uwyn.rife.site.ConstrainedProperty;
006:        import com.uwyn.rife.site.MetaData;
007:        import java.math.BigDecimal;
008:        import java.text.DateFormat;
009:        import java.text.DecimalFormat;
010:        import java.text.NumberFormat;
011:        import java.text.SimpleDateFormat;
012:        import java.util.Date;
013:        import java.util.Locale;
014:
015:        public class BeanImpl3 extends
016:                MetaData<ConstrainedBean, ConstrainedProperty> {
017:            private Date mPropertyDate = null;
018:            private byte mPropertyByte = 0;
019:            private double mPropertyDouble = 0.0d;
020:            private float mPropertyFloat = 0.0f;
021:            private int mPropertyInt = 0;
022:            private long mPropertyLong = 0;
023:            private short mPropertyShort = 0;
024:            private Byte mPropertyByteObject = null;
025:            private Double mPropertyDoubleObject = null;
026:            private Float mPropertyFloatObject = null;
027:            private Integer mPropertyIntegerObject = null;
028:            private Long mPropertyLongObject = null;
029:            private Short mPropertyShortObject = null;
030:            private BigDecimal mPropertyBigDecimal = null;
031:            private Date[] mPropertyDateArray = null;
032:            private byte[] mPropertyByteArray = null;
033:            private double[] mPropertyDoubleArray = null;
034:            private float[] mPropertyFloatArray = null;
035:            private int[] mPropertyIntArray = null;
036:            private long[] mPropertyLongArray = null;
037:            private short[] mPropertyShortArray = null;
038:            private Byte[] mPropertyByteObjectArray = null;
039:            private Double[] mPropertyDoubleObjectArray = null;
040:            private Float[] mPropertyFloatObjectArray = null;
041:            private Integer[] mPropertyIntegerObjectArray = null;
042:            private Long[] mPropertyLongObjectArray = null;
043:            private Short[] mPropertyShortObjectArray = null;
044:            private BigDecimal[] mPropertyBigDecimalArray = null;
045:
046:            public void activateMetaData() {
047:                DateFormat date_format = new SimpleDateFormat(
048:                        "'custom format' yyyy-MM-dd HH:mm");
049:                date_format.setTimeZone(RifeConfig.Tools.getDefaultTimeZone());
050:                NumberFormat int_format = NumberFormat
051:                        .getCurrencyInstance(Locale.US);
052:                NumberFormat double_format = NumberFormat
053:                        .getNumberInstance(Locale.US);
054:                NumberFormat byte_format = NumberFormat
055:                        .getPercentInstance(Locale.US);
056:                NumberFormat float_format = NumberFormat
057:                        .getNumberInstance(Locale.FRANCE);
058:                NumberFormat long_format = NumberFormat
059:                        .getCurrencyInstance(Locale.FRANCE);
060:                NumberFormat short_format = NumberFormat
061:                        .getCurrencyInstance(Locale.ENGLISH);
062:                DecimalFormat bigdecimal_format = (DecimalFormat) NumberFormat
063:                        .getNumberInstance(Locale.FRANCE);
064:                bigdecimal_format.setParseBigDecimal(true);
065:
066:                addConstraint(new ConstrainedProperty("propertyDate")
067:                        .format(date_format));
068:                addConstraint(new ConstrainedProperty("propertyInt")
069:                        .format(int_format));
070:                addConstraint(new ConstrainedProperty("propertyIntegerObject")
071:                        .format(int_format));
072:                addConstraint(new ConstrainedProperty("propertyDouble")
073:                        .format(double_format));
074:                addConstraint(new ConstrainedProperty("propertyDoubleObject")
075:                        .format(double_format));
076:                addConstraint(new ConstrainedProperty("propertyByte")
077:                        .format(byte_format));
078:                addConstraint(new ConstrainedProperty("propertyByteObject")
079:                        .format(byte_format));
080:                addConstraint(new ConstrainedProperty("propertyFloat")
081:                        .format(float_format));
082:                addConstraint(new ConstrainedProperty("propertyFloatObject")
083:                        .format(float_format));
084:                addConstraint(new ConstrainedProperty("propertyLong")
085:                        .format(long_format));
086:                addConstraint(new ConstrainedProperty("propertyLongObject")
087:                        .format(long_format));
088:                addConstraint(new ConstrainedProperty("propertyShort")
089:                        .format(short_format));
090:                addConstraint(new ConstrainedProperty("propertyShortObject")
091:                        .format(short_format));
092:                addConstraint(new ConstrainedProperty("propertyBigDecimal")
093:                        .format(bigdecimal_format));
094:
095:                addConstraint(new ConstrainedProperty("propertyDateArray")
096:                        .format(date_format));
097:                addConstraint(new ConstrainedProperty("propertyIntArray")
098:                        .format(int_format));
099:                addConstraint(new ConstrainedProperty(
100:                        "propertyIntegerObjectArray").format(int_format));
101:                addConstraint(new ConstrainedProperty("propertyDoubleArray")
102:                        .format(double_format));
103:                addConstraint(new ConstrainedProperty(
104:                        "propertyDoubleObjectArray").format(double_format));
105:                addConstraint(new ConstrainedProperty("propertyByteArray")
106:                        .format(byte_format));
107:                addConstraint(new ConstrainedProperty("propertyByteObjectArray")
108:                        .format(byte_format));
109:                addConstraint(new ConstrainedProperty("propertyFloatArray")
110:                        .format(float_format));
111:                addConstraint(new ConstrainedProperty(
112:                        "propertyFloatObjectArray").format(float_format));
113:                addConstraint(new ConstrainedProperty("propertyLongArray")
114:                        .format(long_format));
115:                addConstraint(new ConstrainedProperty("propertyLongObjectArray")
116:                        .format(long_format));
117:                addConstraint(new ConstrainedProperty("propertyShortArray")
118:                        .format(short_format));
119:                addConstraint(new ConstrainedProperty(
120:                        "propertyShortObjectArray").format(short_format));
121:                addConstraint(new ConstrainedProperty("propertyBigDecimalArray")
122:                        .format(bigdecimal_format));
123:            }
124:
125:            public BeanImpl3() {
126:            }
127:
128:            public int getPropertyInt() {
129:                return mPropertyInt;
130:            }
131:
132:            public void setPropertyInt(int propertyInt) {
133:                mPropertyInt = propertyInt;
134:            }
135:
136:            public double getPropertyDouble() {
137:                return mPropertyDouble;
138:            }
139:
140:            public void setPropertyDouble(double propertyDouble) {
141:                mPropertyDouble = propertyDouble;
142:            }
143:
144:            public Date getPropertyDate() {
145:                return mPropertyDate;
146:            }
147:
148:            public void setPropertyDate(Date propertyDate) {
149:                mPropertyDate = propertyDate;
150:            }
151:
152:            public byte getPropertyByte() {
153:                return mPropertyByte;
154:            }
155:
156:            public void setPropertyByte(byte propertyByte) {
157:                mPropertyByte = propertyByte;
158:            }
159:
160:            public float getPropertyFloat() {
161:                return mPropertyFloat;
162:            }
163:
164:            public void setPropertyFloat(float propertyFloat) {
165:                mPropertyFloat = propertyFloat;
166:            }
167:
168:            public long getPropertyLong() {
169:                return mPropertyLong;
170:            }
171:
172:            public void setPropertyLong(long propertyLong) {
173:                mPropertyLong = propertyLong;
174:            }
175:
176:            public short getPropertyShort() {
177:                return mPropertyShort;
178:            }
179:
180:            public void setPropertyShort(short propertyShort) {
181:                mPropertyShort = propertyShort;
182:            }
183:
184:            public Short getPropertyShortObject() {
185:                return mPropertyShortObject;
186:            }
187:
188:            public void setPropertyShortObject(Short propertyShortObject) {
189:                mPropertyShortObject = propertyShortObject;
190:            }
191:
192:            public void setPropertyBigDecimal(BigDecimal propertyBigDecimal) {
193:                mPropertyBigDecimal = propertyBigDecimal;
194:            }
195:
196:            public BigDecimal getPropertyBigDecimal() {
197:                return mPropertyBigDecimal;
198:            }
199:
200:            public Byte getPropertyByteObject() {
201:                return mPropertyByteObject;
202:            }
203:
204:            public void setPropertyByteObject(Byte propertyByteObject) {
205:                mPropertyByteObject = propertyByteObject;
206:            }
207:
208:            public Double getPropertyDoubleObject() {
209:                return mPropertyDoubleObject;
210:            }
211:
212:            public void setPropertyDoubleObject(Double propertyDoubleObject) {
213:                mPropertyDoubleObject = propertyDoubleObject;
214:            }
215:
216:            public Float getPropertyFloatObject() {
217:                return mPropertyFloatObject;
218:            }
219:
220:            public void setPropertyFloatObject(Float propertyFloatObject) {
221:                mPropertyFloatObject = propertyFloatObject;
222:            }
223:
224:            public Integer getPropertyIntegerObject() {
225:                return mPropertyIntegerObject;
226:            }
227:
228:            public void setPropertyIntegerObject(Integer propertyIntegerObject) {
229:                mPropertyIntegerObject = propertyIntegerObject;
230:            }
231:
232:            public Long getPropertyLongObject() {
233:                return mPropertyLongObject;
234:            }
235:
236:            public void setPropertyLongObject(Long propertyLongObject) {
237:                mPropertyLongObject = propertyLongObject;
238:            }
239:
240:            public Date[] getPropertyDateArray() {
241:                return mPropertyDateArray;
242:            }
243:
244:            public void setPropertyDateArray(Date[] propertyDateArray) {
245:                mPropertyDateArray = propertyDateArray;
246:            }
247:
248:            public byte[] getPropertyByteArray() {
249:                return mPropertyByteArray;
250:            }
251:
252:            public void setPropertyByteArray(byte[] propertyByteArray) {
253:                mPropertyByteArray = propertyByteArray;
254:            }
255:
256:            public double[] getPropertyDoubleArray() {
257:                return mPropertyDoubleArray;
258:            }
259:
260:            public void setPropertyDoubleArray(double[] propertyDoubleArray) {
261:                mPropertyDoubleArray = propertyDoubleArray;
262:            }
263:
264:            public float[] getPropertyFloatArray() {
265:                return mPropertyFloatArray;
266:            }
267:
268:            public void setPropertyFloatArray(float[] propertyFloatArray) {
269:                mPropertyFloatArray = propertyFloatArray;
270:            }
271:
272:            public int[] getPropertyIntArray() {
273:                return mPropertyIntArray;
274:            }
275:
276:            public void setPropertyIntArray(int[] propertyIntArray) {
277:                mPropertyIntArray = propertyIntArray;
278:            }
279:
280:            public long[] getPropertyLongArray() {
281:                return mPropertyLongArray;
282:            }
283:
284:            public void setPropertyLongArray(long[] propertyLongArray) {
285:                mPropertyLongArray = propertyLongArray;
286:            }
287:
288:            public short[] getPropertyShortArray() {
289:                return mPropertyShortArray;
290:            }
291:
292:            public void setPropertyShortArray(short[] propertyShortArray) {
293:                mPropertyShortArray = propertyShortArray;
294:            }
295:
296:            public void setPropertyBigDecimalArray(
297:                    BigDecimal[] propertyBigDecimalArray) {
298:                mPropertyBigDecimalArray = propertyBigDecimalArray;
299:            }
300:
301:            public BigDecimal[] getPropertyBigDecimalArray() {
302:                return mPropertyBigDecimalArray;
303:            }
304:
305:            public Byte[] getPropertyByteObjectArray() {
306:                return mPropertyByteObjectArray;
307:            }
308:
309:            public void setPropertyByteObjectArray(
310:                    Byte[] propertyByteObjectArray) {
311:                mPropertyByteObjectArray = propertyByteObjectArray;
312:            }
313:
314:            public Double[] getPropertyDoubleObjectArray() {
315:                return mPropertyDoubleObjectArray;
316:            }
317:
318:            public void setPropertyDoubleObjectArray(
319:                    Double[] propertyDoubleObjectArray) {
320:                mPropertyDoubleObjectArray = propertyDoubleObjectArray;
321:            }
322:
323:            public Float[] getPropertyFloatObjectArray() {
324:                return mPropertyFloatObjectArray;
325:            }
326:
327:            public void setPropertyFloatObjectArray(
328:                    Float[] propertyFloatObjectArray) {
329:                mPropertyFloatObjectArray = propertyFloatObjectArray;
330:            }
331:
332:            public Integer[] getPropertyIntegerObjectArray() {
333:                return mPropertyIntegerObjectArray;
334:            }
335:
336:            public void setPropertyIntegerObjectArray(
337:                    Integer[] propertyIntegerObjectArray) {
338:                mPropertyIntegerObjectArray = propertyIntegerObjectArray;
339:            }
340:
341:            public Long[] getPropertyLongObjectArray() {
342:                return mPropertyLongObjectArray;
343:            }
344:
345:            public void setPropertyLongObjectArray(
346:                    Long[] propertyLongObjectArray) {
347:                mPropertyLongObjectArray = propertyLongObjectArray;
348:            }
349:
350:            public Short[] getPropertyShortObjectArray() {
351:                return mPropertyShortObjectArray;
352:            }
353:
354:            public void setPropertyShortObjectArray(
355:                    Short[] propertyShortObjectArray) {
356:                mPropertyShortObjectArray = propertyShortObjectArray;
357:            }
358:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.