Source Code Cross Referenced for ExampleData.java in  » Web-Framework » aranea-mvc-1.1.1 » org » araneaframework » example » main » release » features » 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 » aranea mvc 1.1.1 » org.araneaframework.example.main.release.features 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.araneaframework.example.main.release.features;
002:
003:        import java.io.Serializable;
004:        import java.util.ArrayList;
005:        import java.util.List;
006:
007:        public class ExampleData {
008:
009:            public static final String males[] = { "Adar", "Arel", "Arhe",
010:                    "Daniel-Bhekiwe", "Dimon", "Georg-Goswin", "Gomer",
011:                    "Greito", "Hasgeir-Egert", "Indre", "Indy", "Ino", "Jamo",
012:                    "Japheth", "Jeonel", "Jorke Patrick", "Kellven", "Kendris",
013:                    "Kenomar", "Kösta", "Luukas Aeg", "Matrix", "Norton",
014:                    "Oleander", "Radu", "Rato", "Relon", "Rhening",
015:                    "Riko-Givy", "Ruud", "Signor", "Taigo Juunior",
016:                    "Tristan Timothy", "Uko Hiid", "Örö Tormi" };
017:            public static final String females[] = { "Aaria Lee", "Berlyka",
018:                    "Bretie", "Cayro-Lyza", "Cameron", "Carlyne", "Carmelyta",
019:                    "Chantell", "Darelyan", "Emmelgelina", "Genivive",
020:                    "Grittel", "Gynethy", "Hailely", "Haldja", "Hertrudis",
021:                    "Isis", "Jonete", "Kaleria", "Karetti", "Keira", "Kirteli",
022:                    "Kärg", "Lomely", "Lorelai", "Madara Kuld", "Marimar",
023:                    "Mirjam Sürr", "Nia", "Patrina", "Pipi Triinu", "Priti",
024:                    "Randelyn", "Reneeta", "Rinell", "Rhe", "Sarmika-Hell",
025:                    "Sevinc", "Sibell", "Sisandra", "Viive-Virhiinya",
026:                    "Virbi Kleer" };
027:            public static final String fungi[] = { "Männi-kivipuravik",
028:                    "Männiliimik", "Kobarkõrges", "Rõngasvöödik",
029:                    "Kollanutt", "Narmasnutt", "Kastan-narmasnutt",
030:                    "Kuhik-narmasnutt", "Lakkrupik", "Kamperriisikas",
031:                    "Sooriisikas", "Näsariisikas", "Tõmmuriisikas",
032:                    "Männiriisikas", "Tavariisikas", "Hallipiimane",
033:                    "Kasepuravik", "Suursirmik", "Sametvahelik", "Tavavahelik",
034:                    "Leekmampel", "Soomusmampel", "Kitsemampel", "Kasepilvik",
035:                    "Soopilvik", "Kuld-puiduheinik", "Sapipuravik",
036:                    "Pruunsamet", "Koorikkulised", "Kasepehik", "Majamädik",
037:                    "Hõbelehisus", "Tuletael", "Kännupess", "Jänesvaabik",
038:                    "Mustpässik", "Vahtratarjak", "Juurepruunik", "Must",
039:                    "Männitaelik", "Täpptael", "Haavataelik", "Kasekäsnak",
040:                    "Karvane", "Lehternahkes", "Kuusekõbjuk" };
041:
042:            // attendee attends the appointment ;)
043:            public static class Attendee implements  Serializable {
044:                private String name;
045:                private boolean preoccupied;
046:
047:                public Attendee(String name, boolean preoccupied) {
048:                    this .name = name;
049:                    this .preoccupied = preoccupied;
050:                }
051:
052:                public String getName() {
053:                    return name;
054:                }
055:
056:                public void setName(String name) {
057:                    this .name = name;
058:                }
059:
060:                public boolean isPreoccupied() {
061:                    return preoccupied;
062:                }
063:
064:                public void setPreoccupied(boolean occupied) {
065:                    this .preoccupied = occupied;
066:                }
067:            }
068:
069:            public static List createAttendees() {
070:                List result = new ArrayList();
071:                result.add(new Attendee("Aileen Wuornos", false));
072:                result.add(new Attendee("David Berkowitz", false));
073:                result.add(new Attendee("Elizabeth Bathory", false));
074:                result.add(new Attendee("Karla Homolka", false));
075:                result.add(new Attendee("Kitty Genovese", true));
076:                result.add(new Attendee("Theo Durrant", false));
077:
078:                return result;
079:            }
080:
081:            // room is where the appointment takes place
082:            public static class Room implements  Serializable {
083:                private String name;
084:                private String location;
085:                private boolean occupied;
086:
087:                public Room(String name, String location, boolean occupied) {
088:                    this .name = name;
089:                    this .location = location;
090:                    this .occupied = occupied;
091:                }
092:
093:                public String getName() {
094:                    return name;
095:                }
096:
097:                public void setName(String name) {
098:                    this .name = name;
099:                }
100:
101:                public String getLocation() {
102:                    return location;
103:                }
104:
105:                public void setLocation(String location) {
106:                    this .location = location;
107:                }
108:
109:                public boolean isOccupied() {
110:                    return occupied;
111:                }
112:
113:                public void setOccupied(boolean occupied) {
114:                    this .occupied = occupied;
115:                }
116:            }
117:
118:            public static class Client implements  Serializable {
119:                private static final long serialVersionUID = 1L;
120:                private Long id;
121:                private String sex;
122:                private String forename;
123:                private String surname;
124:                private String country;
125:
126:                public Long getId() {
127:                    return id;
128:                }
129:
130:                public void setId(Long id) {
131:                    this .id = id;
132:                }
133:
134:                public String getForename() {
135:                    return forename;
136:                }
137:
138:                public void setForename(String forename) {
139:                    this .forename = forename;
140:                }
141:
142:                public String getSex() {
143:                    return sex;
144:                }
145:
146:                public void setSex(String sex) {
147:                    this .sex = sex;
148:                }
149:
150:                public String getSurname() {
151:                    return surname;
152:                }
153:
154:                public void setSurname(String surname) {
155:                    this .surname = surname;
156:                }
157:
158:                public String getCountry() {
159:                    return country;
160:                }
161:
162:                public void setCountry(String country) {
163:                    this .country = country;
164:                }
165:
166:                public void edit(Client f) {
167:                    setCountry(f.country);
168:                    setSurname(f.surname);
169:                    setForename(f.forename);
170:                    setSex(f.sex);
171:                }
172:            }
173:
174:            public static List createRooms() {
175:                List result = new ArrayList();
176:                result.add(new Room("seamless.rooms.atrium", "Tartu", false));
177:                result
178:                        .add(new Room("seamless.rooms.olympic", "Tallinn",
179:                                false));
180:                result.add(new Room("seamless.rooms.colosseum", "Rome", false));
181:                result.add(new Room("seamless.rooms.rld", "Zona Norte", true));
182:                result.add(new Room("seamless.rooms.warroom", "Washington",
183:                        false));
184:
185:                return result;
186:            }
187:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.