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: }
|