View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v@@BUILD_VERSION@@ 
3   // 	See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // 	Any modifications to this file will be lost upon recompilation of the source schema. 
5   // 	Generated on: 2005.06.30 um 05:21:08 CEST 
6   //
7   
8   package de.nierbeck.timeTrack.model.impl;
9   
10  public class EntriesTypeImpl implements
11  		de.nierbeck.timeTrack.model.EntriesType, com.sun.xml.bind.JAXBObject,
12  		de.nierbeck.timeTrack.model.impl.runtime.UnmarshallableObject,
13  		de.nierbeck.timeTrack.model.impl.runtime.XMLSerializable,
14  		de.nierbeck.timeTrack.model.impl.runtime.ValidatableObject {
15  
16  	protected de.nierbeck.timeTrack.model.EntryType _CurrentSelected;
17  
18  	protected com.sun.xml.bind.util.ListImpl _Entry;
19  
20  	public final static java.lang.Class version = (de.nierbeck.timeTrack.model.impl.JAXBVersion.class);
21  
22  	private static com.sun.msv.grammar.Grammar schemaFragment;
23  
24  	private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
25  		return (de.nierbeck.timeTrack.model.EntriesType.class);
26  	}
27  
28  	public de.nierbeck.timeTrack.model.EntryType getCurrentSelected() {
29  		return _CurrentSelected;
30  	}
31  
32  	public void setCurrentSelected(de.nierbeck.timeTrack.model.EntryType value) {
33  		_CurrentSelected = value;
34  	}
35  
36  	protected com.sun.xml.bind.util.ListImpl _getEntry() {
37  		if (_Entry == null) {
38  			_Entry = new com.sun.xml.bind.util.ListImpl(
39  					new java.util.ArrayList());
40  		}
41  		return _Entry;
42  	}
43  
44  	public java.util.List getEntry() {
45  		return _getEntry();
46  	}
47  
48  	public de.nierbeck.timeTrack.model.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
49  			de.nierbeck.timeTrack.model.impl.runtime.UnmarshallingContext context) {
50  		return new de.nierbeck.timeTrack.model.impl.EntriesTypeImpl.Unmarshaller(
51  				context);
52  	}
53  
54  	public void serializeBody(
55  			de.nierbeck.timeTrack.model.impl.runtime.XMLSerializer context)
56  			throws org.xml.sax.SAXException {
57  		int idx2 = 0;
58  		final int len2 = ((_Entry == null) ? 0 : _Entry.size());
59  		context.startElement("", "currentSelected");
60  		context.childAsURIs(((com.sun.xml.bind.JAXBObject) _CurrentSelected),
61  				"CurrentSelected");
62  		context.endNamespaceDecls();
63  		context.childAsAttributes(
64  				((com.sun.xml.bind.JAXBObject) _CurrentSelected),
65  				"CurrentSelected");
66  		context.endAttributes();
67  		context.childAsBody(((com.sun.xml.bind.JAXBObject) _CurrentSelected),
68  				"CurrentSelected");
69  		context.endElement();
70  		while (idx2 != len2) {
71  			context.startElement("", "entry");
72  			int idx_2 = idx2;
73  			context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Entry
74  					.get(idx_2++)), "Entry");
75  			context.endNamespaceDecls();
76  			int idx_3 = idx2;
77  			context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Entry
78  					.get(idx_3++)), "Entry");
79  			context.endAttributes();
80  			context.childAsBody(((com.sun.xml.bind.JAXBObject) _Entry
81  					.get(idx2++)), "Entry");
82  			context.endElement();
83  		}
84  	}
85  
86  	public void serializeAttributes(
87  			de.nierbeck.timeTrack.model.impl.runtime.XMLSerializer context)
88  			throws org.xml.sax.SAXException {
89  		int idx2 = 0;
90  		final int len2 = ((_Entry == null) ? 0 : _Entry.size());
91  		while (idx2 != len2) {
92  			idx2 += 1;
93  		}
94  	}
95  
96  	public void serializeURIs(
97  			de.nierbeck.timeTrack.model.impl.runtime.XMLSerializer context)
98  			throws org.xml.sax.SAXException {
99  		int idx2 = 0;
100 		final int len2 = ((_Entry == null) ? 0 : _Entry.size());
101 		while (idx2 != len2) {
102 			idx2 += 1;
103 		}
104 	}
105 
106 	public java.lang.Class getPrimaryInterface() {
107 		return (de.nierbeck.timeTrack.model.EntriesType.class);
108 	}
109 
110 	public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
111 		if (schemaFragment == null) {
112 			schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
113 					.deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
114 							+ "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
115 							+ "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
116 							+ "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
117 							+ "expandedExpq\u0000~\u0000\u0002xpppsr\u0000\'com.sun.msv.grammar.trex.ElementPatt"
118 							+ "ern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;"
119 							+ "xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndecl"
120 							+ "aredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0006pp\u0000"
121 							+ "sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com."
122 							+ "sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.gramm"
123 							+ "ar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean"
124 							+ "\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.msv.grammar.AttributeExp\u0000"
125 							+ "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\u0007xq\u0000~\u0000\u0003q\u0000~\u0000\u0012psr\u00002com.su"
126 							+ "n.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000"
127 							+ "\u0003sq\u0000~\u0000\u0011\u0001psr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001d"
128 							+ "com.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.gr"
129 							+ "ammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u0017psr\u0000"
130 							+ "#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet"
131 							+ "\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001exq\u0000~\u0000\u0019t\u0000%de.nierbeck"
132 							+ ".timeTrack.model.EntryTypet\u0000+http://java.sun.com/jaxb/xjc/du"
133 							+ "mmy-elementssq\u0000~\u0000\fppsq\u0000~\u0000\u0013q\u0000~\u0000\u0012psr\u0000\u001bcom.sun.msv.grammar.Data"
134 							+ "Exp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exce"
135 							+ "ptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"co"
136 							+ "m.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.d"
137 							+ "atatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.data"
138 							+ "type.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd"
139 							+ ".XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001eL\u0000\btypeNameq\u0000~"
140 							+ "\u0000\u001eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProces"
141 							+ "sor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun"
142 							+ ".msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000"
143 							+ ",com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr"
144 							+ "\u00000com.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
145 							+ "\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalN"
146 							+ "ameq\u0000~\u0000\u001eL\u0000\fnamespaceURIq\u0000~\u0000\u001expq\u0000~\u0000/q\u0000~\u0000.sq\u0000~\u0000\u001dt\u0000\u0004typet\u0000)http"
147 							+ "://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001csq\u0000~\u0000\u001dt\u0000\u000fcurrentSe"
148 							+ "lectedt\u0000\u0000sq\u0000~\u0000\u000eppsq\u0000~\u0000\u0006pp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0006pp\u0000sq\u0000~\u0000\fppsq\u0000~\u0000\u000eq\u0000~"
149 							+ "\u0000\u0012psq\u0000~\u0000\u0013q\u0000~\u0000\u0012pq\u0000~\u0000\u0016q\u0000~\u0000\u001aq\u0000~\u0000\u001csq\u0000~\u0000\u001dq\u0000~\u0000 q\u0000~\u0000!sq\u0000~\u0000\fppsq\u0000~\u0000\u0013"
150 							+ "q\u0000~\u0000\u0012pq\u0000~\u0000\'q\u0000~\u00007q\u0000~\u0000\u001csq\u0000~\u0000\u001dt\u0000\u0005entryq\u0000~\u0000<sr\u0000\"com.sun.msv.gram"
151 							+ "mar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/gram"
152 							+ "mar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expr"
153 							+ "essionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006p"
154 							+ "arentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\n\u0001pq\u0000~\u0000=q\u0000~"
155 							+ "\u0000\"q\u0000~\u0000Eq\u0000~\u0000\rq\u0000~\u0000Aq\u0000~\u0000\u0010q\u0000~\u0000Bq\u0000~\u0000\nq\u0000~\u0000?q\u0000~\u0000\u0005x"));
156 		}
157 		return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
158 				schemaFragment);
159 	}
160 
161 	public class Unmarshaller
162 			extends
163 			de.nierbeck.timeTrack.model.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
164 
165 		public Unmarshaller(
166 				de.nierbeck.timeTrack.model.impl.runtime.UnmarshallingContext context) {
167 			super(context, "-------");
168 		}
169 
170 		protected Unmarshaller(
171 				de.nierbeck.timeTrack.model.impl.runtime.UnmarshallingContext context,
172 				int startState) {
173 			this(context);
174 			state = startState;
175 		}
176 
177 		public java.lang.Object owner() {
178 			return de.nierbeck.timeTrack.model.impl.EntriesTypeImpl.this;
179 		}
180 
181 		public void enterElement(java.lang.String ___uri,
182 				java.lang.String ___local, java.lang.String ___qname,
183 				org.xml.sax.Attributes __atts) throws org.xml.sax.SAXException {
184 			int attIdx;
185 			outer: while (true) {
186 				switch (state) {
187 				case 1:
188 					if (("startTime" == ___local) && ("" == ___uri)) {
189 						_CurrentSelected = ((de.nierbeck.timeTrack.model.impl.EntryTypeImpl) spawnChildFromEnterElement(
190 								(de.nierbeck.timeTrack.model.impl.EntryTypeImpl.class),
191 								2, ___uri, ___local, ___qname, __atts));
192 						return;
193 					}
194 					break;
195 				case 4:
196 					if (("startTime" == ___local) && ("" == ___uri)) {
197 						_getEntry()
198 								.add(
199 										((de.nierbeck.timeTrack.model.impl.EntryTypeImpl) spawnChildFromEnterElement(
200 												(de.nierbeck.timeTrack.model.impl.EntryTypeImpl.class),
201 												5, ___uri, ___local, ___qname,
202 												__atts)));
203 						return;
204 					}
205 					break;
206 				case 6:
207 					if (("entry" == ___local) && ("" == ___uri)) {
208 						context.pushAttributes(__atts, false);
209 						state = 4;
210 						return;
211 					}
212 					revertToParentFromEnterElement(___uri, ___local, ___qname,
213 							__atts);
214 					return;
215 				case 0:
216 					if (("currentSelected" == ___local) && ("" == ___uri)) {
217 						context.pushAttributes(__atts, false);
218 						state = 1;
219 						return;
220 					}
221 					break;
222 				case 3:
223 					if (("entry" == ___local) && ("" == ___uri)) {
224 						context.pushAttributes(__atts, false);
225 						state = 4;
226 						return;
227 					}
228 					break;
229 				}
230 				super.enterElement(___uri, ___local, ___qname, __atts);
231 				break;
232 			}
233 		}
234 
235 		public void leaveElement(java.lang.String ___uri,
236 				java.lang.String ___local, java.lang.String ___qname)
237 				throws org.xml.sax.SAXException {
238 			int attIdx;
239 			outer: while (true) {
240 				switch (state) {
241 				case 2:
242 					if (("currentSelected" == ___local) && ("" == ___uri)) {
243 						context.popAttributes();
244 						state = 3;
245 						return;
246 					}
247 					break;
248 				case 6:
249 					revertToParentFromLeaveElement(___uri, ___local, ___qname);
250 					return;
251 				case 5:
252 					if (("entry" == ___local) && ("" == ___uri)) {
253 						context.popAttributes();
254 						state = 6;
255 						return;
256 					}
257 					break;
258 				}
259 				super.leaveElement(___uri, ___local, ___qname);
260 				break;
261 			}
262 		}
263 
264 		public void enterAttribute(java.lang.String ___uri,
265 				java.lang.String ___local, java.lang.String ___qname)
266 				throws org.xml.sax.SAXException {
267 			int attIdx;
268 			outer: while (true) {
269 				switch (state) {
270 				case 6:
271 					revertToParentFromEnterAttribute(___uri, ___local, ___qname);
272 					return;
273 				}
274 				super.enterAttribute(___uri, ___local, ___qname);
275 				break;
276 			}
277 		}
278 
279 		public void leaveAttribute(java.lang.String ___uri,
280 				java.lang.String ___local, java.lang.String ___qname)
281 				throws org.xml.sax.SAXException {
282 			int attIdx;
283 			outer: while (true) {
284 				switch (state) {
285 				case 6:
286 					revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
287 					return;
288 				}
289 				super.leaveAttribute(___uri, ___local, ___qname);
290 				break;
291 			}
292 		}
293 
294 		public void handleText(final java.lang.String value)
295 				throws org.xml.sax.SAXException {
296 			int attIdx;
297 			outer: while (true) {
298 				try {
299 					switch (state) {
300 					case 6:
301 						revertToParentFromText(value);
302 						return;
303 					}
304 				} catch (java.lang.RuntimeException e) {
305 					handleUnexpectedTextException(value, e);
306 				}
307 				break;
308 			}
309 		}
310 
311 	}
312 
313 }