KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > dozer > util > mapping > vo > jaxb > employee > impl > EmployeeTypeImpl


1 //
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.4-b18-fcs
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: 2006.10.05 at 10:03:40 CEST
6
//
7

8
9 package net.sf.dozer.util.mapping.vo.jaxb.employee.impl;
10
11 public class EmployeeTypeImpl implements net.sf.dozer.util.mapping.vo.jaxb.employee.EmployeeType, com.sun.xml.bind.JAXBObject, net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.UnmarshallableObject, net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.XMLSerializable, net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.ValidatableObject
12 {
13
14     protected java.util.Calendar JavaDoc _BirthDate;
15     protected java.lang.String JavaDoc _FirstName;
16     protected java.lang.String JavaDoc _LastName;
17     public final static java.lang.Class JavaDoc version = (net.sf.dozer.util.mapping.vo.jaxb.employee.impl.JAXBVersion.class);
18     private static com.sun.msv.grammar.Grammar schemaFragment;
19
20     private final static java.lang.Class JavaDoc PRIMARY_INTERFACE_CLASS() {
21         return (net.sf.dozer.util.mapping.vo.jaxb.employee.EmployeeType.class);
22     }
23
24     public java.util.Calendar JavaDoc getBirthDate() {
25         return _BirthDate;
26     }
27
28     public void setBirthDate(java.util.Calendar JavaDoc value) {
29         _BirthDate = value;
30     }
31
32     public java.lang.String JavaDoc getFirstName() {
33         return _FirstName;
34     }
35
36     public void setFirstName(java.lang.String JavaDoc value) {
37         _FirstName = value;
38     }
39
40     public java.lang.String JavaDoc getLastName() {
41         return _LastName;
42     }
43
44     public void setLastName(java.lang.String JavaDoc value) {
45         _LastName = value;
46     }
47
48     public net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.UnmarshallingEventHandler createUnmarshaller(net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.UnmarshallingContext context) {
49         return new net.sf.dozer.util.mapping.vo.jaxb.employee.impl.EmployeeTypeImpl.Unmarshaller(context);
50     }
51
52     public void serializeBody(net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.XMLSerializer context)
53         throws org.xml.sax.SAXException JavaDoc
54     {
55         context.startElement("", "FirstName");
56         context.endNamespaceDecls();
57         context.endAttributes();
58         try {
59             context.text(((java.lang.String JavaDoc) _FirstName), "FirstName");
60         } catch (java.lang.Exception JavaDoc e) {
61             net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.Util.handlePrintConversionException(this, e, context);
62         }
63         context.endElement();
64         if (_BirthDate!= null) {
65             context.startElement("", "BirthDate");
66             context.endNamespaceDecls();
67             context.endAttributes();
68             try {
69                 context.text(javax.xml.bind.DatatypeConverter.printDate(((java.util.Calendar JavaDoc) _BirthDate)), "BirthDate");
70             } catch (java.lang.Exception JavaDoc e) {
71                 net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.Util.handlePrintConversionException(this, e, context);
72             }
73             context.endElement();
74         }
75         context.startElement("", "LastName");
76         context.endNamespaceDecls();
77         context.endAttributes();
78         try {
79             context.text(((java.lang.String JavaDoc) _LastName), "LastName");
80         } catch (java.lang.Exception JavaDoc e) {
81             net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.Util.handlePrintConversionException(this, e, context);
82         }
83         context.endElement();
84     }
85
86     public void serializeAttributes(net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.XMLSerializer context)
87         throws org.xml.sax.SAXException JavaDoc
88     {
89     }
90
91     public void serializeURIs(net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.XMLSerializer context)
92         throws org.xml.sax.SAXException JavaDoc
93     {
94     }
95
96     public java.lang.Class JavaDoc getPrimaryInterface() {
97         return (net.sf.dozer.util.mapping.vo.jaxb.employee.EmployeeType.class);
98     }
99
100     public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
101         if (schemaFragment == null) {
102             schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
103  "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
104 +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
105 +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
106 +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
107 +"expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsr\u0000\'com.sun.msv.grammar.trex.Ele"
108 +"mentPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/Na"
109 +"meClass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aigno"
110 +"reUndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sq\u0000~\u0000\u0000pps"
111 +"r\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxn"
112 +"g/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/uti"
113 +"l/StringPair;xq\u0000~\u0000\u0003ppsr\u0000#com.sun.msv.datatype.xsd.StringType"
114 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.Buil"
115 +"tinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.Concret"
116 +"eType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000"
117 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~"
118 +"\u0000\u0014L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProces"
119 +"sor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.su"
120 +"n.msv.datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr"
121 +"\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001"
122 +"sr\u00000com.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
123 +"\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tloca"
124 +"lNameq\u0000~\u0000\u0014L\u0000\fnamespaceURIq\u0000~\u0000\u0014xpq\u0000~\u0000\u0018q\u0000~\u0000\u0017sr\u0000\u001dcom.sun.msv.gr"
125 +"ammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.At"
126 +"tributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\bxq\u0000~\u0000\u0003sr\u0000\u0011j"
127 +"ava.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\fppsr\u0000\"com.sun.m"
128 +"sv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0011q\u0000~\u0000\u0017t\u0000\u0005QNamesr\u00005c"
129 +"om.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
130 +"\u0002\u0000\u0000xq\u0000~\u0000\u001aq\u0000~\u0000\u001dsq\u0000~\u0000\u001eq\u0000~\u0000)q\u0000~\u0000\u0017sr\u0000#com.sun.msv.grammar.Simple"
131 +"NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0014L\u0000\fnamespaceURIq\u0000~\u0000\u0014xr\u0000"
132 +"\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://"
133 +"www.w3.org/2001/XMLSchema-instancesr\u00000com.sun.msv.grammar.Ex"
134 +"pression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000$\u0001psq\u0000~\u0000-t\u0000\t"
135 +"FirstNamet\u0000\u0000sq\u0000~\u0000 ppsq\u0000~\u0000\u0007q\u0000~\u0000%p\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\fppsr\u0000!com.sun"
136 +".msv.datatype.xsd.DateType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000)com.sun.msv.datatyp"
137 +"e.xsd.DateTimeBaseType\u0014W\u001a@3\u00a5\u00b4\u00e5\u0002\u0000\u0000xq\u0000~\u0000\u0011q\u0000~\u0000\u0017t\u0000\u0004dateq\u0000~\u0000+q\u0000~\u0000"
138 +"\u001dsq\u0000~\u0000\u001eq\u0000~\u0000?q\u0000~\u0000\u0017sq\u0000~\u0000 ppsq\u0000~\u0000\"q\u0000~\u0000%pq\u0000~\u0000&q\u0000~\u0000/q\u0000~\u00003sq\u0000~\u0000-t\u0000"
139 +"\tBirthDateq\u0000~\u00007q\u0000~\u00003sq\u0000~\u0000\u0007pp\u0000sq\u0000~\u0000\u0000ppq\u0000~\u0000\u000fsq\u0000~\u0000 ppsq\u0000~\u0000\"q\u0000~\u0000"
140 +"%pq\u0000~\u0000&q\u0000~\u0000/q\u0000~\u00003sq\u0000~\u0000-t\u0000\bLastNameq\u0000~\u00007sr\u0000\"com.sun.msv.gramm"
141 +"ar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/gramm"
142 +"ar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expre"
143 +"ssionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006pa"
144 +"rentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\t\u0001pq\u0000~\u0000:q\u0000~\u0000"
145 +"\u0005q\u0000~\u00008q\u0000~\u0000!q\u0000~\u0000Aq\u0000~\u0000Gq\u0000~\u0000\u000bq\u0000~\u0000Fq\u0000~\u0000\u0006x"));
146         }
147         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
148     }
149
150     public class Unmarshaller
151         extends net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.AbstractUnmarshallingEventHandlerImpl
152     {
153
154
155         public Unmarshaller(net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.UnmarshallingContext context) {
156             super(context, "----------");
157         }
158
159         protected Unmarshaller(net.sf.dozer.util.mapping.vo.jaxb.employee.impl.runtime.UnmarshallingContext context, int startState) {
160             this(context);
161             state = startState;
162         }
163
164         public java.lang.Object JavaDoc owner() {
165             return net.sf.dozer.util.mapping.vo.jaxb.employee.impl.EmployeeTypeImpl.this;
166         }
167
168         public void enterElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname, org.xml.sax.Attributes JavaDoc __atts)
169             throws org.xml.sax.SAXException JavaDoc
170         {
171             int attIdx;
172             outer:
173             while (true) {
174                 switch (state) {
175                     case 9 :
176                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
177                         return ;
178                     case 6 :
179                         if (("LastName" == ___local)&&("" == ___uri)) {
180                             context.pushAttributes(__atts, true);
181                             state = 7;
182                             return ;
183                         }
184                         break;
185                     case 3 :
186                         if (("BirthDate" == ___local)&&("" == ___uri)) {
187                             context.pushAttributes(__atts, true);
188                             state = 4;
189                             return ;
190                         }
191                         state = 6;
192                         continue outer;
193                     case 0 :
194                         if (("FirstName" == ___local)&&("" == ___uri)) {
195                             context.pushAttributes(__atts, true);
196                             state = 1;
197                             return ;
198                         }
199                         break;
200                 }
201                 super.enterElement(___uri, ___local, ___qname, __atts);
202                 break;
203             }
204         }
205
206         public void leaveElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
207             throws org.xml.sax.SAXException JavaDoc
208         {
209             int attIdx;
210             outer:
211             while (true) {
212                 switch (state) {
213                     case 9 :
214                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
215                         return ;
216                     case 8 :
217                         if (("LastName" == ___local)&&("" == ___uri)) {
218                             context.popAttributes();
219                             state = 9;
220                             return ;
221                         }
222                         break;
223                     case 3 :
224                         state = 6;
225                         continue outer;
226                     case 2 :
227                         if (("FirstName" == ___local)&&("" == ___uri)) {
228                             context.popAttributes();
229                             state = 3;
230                             return ;
231                         }
232                         break;
233                     case 5 :
234                         if (("BirthDate" == ___local)&&("" == ___uri)) {
235                             context.popAttributes();
236                             state = 6;
237                             return ;
238                         }
239                         break;
240                 }
241                 super.leaveElement(___uri, ___local, ___qname);
242                 break;
243             }
244         }
245
246         public void enterAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
247             throws org.xml.sax.SAXException JavaDoc
248         {
249             int attIdx;
250             outer:
251             while (true) {
252                 switch (state) {
253                     case 9 :
254                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
255                         return ;
256                     case 3 :
257                         state = 6;
258                         continue outer;
259                 }
260                 super.enterAttribute(___uri, ___local, ___qname);
261                 break;
262             }
263         }
264
265         public void leaveAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
266             throws org.xml.sax.SAXException JavaDoc
267         {
268             int attIdx;
269             outer:
270             while (true) {
271                 switch (state) {
272                     case 9 :
273                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
274                         return ;
275                     case 3 :
276                         state = 6;
277                         continue outer;
278                 }
279                 super.leaveAttribute(___uri, ___local, ___qname);
280                 break;
281             }
282         }
283
284         public void handleText(final java.lang.String JavaDoc value)
285             throws org.xml.sax.SAXException JavaDoc
286         {
287             int attIdx;
288             outer:
289             while (true) {
290                 try {
291                     switch (state) {
292                         case 9 :
293                             revertToParentFromText(value);
294                             return ;
295                         case 3 :
296                             state = 6;
297                             continue outer;
298                         case 7 :
299                             eatText1(value);
300                             state = 8;
301                             return ;
302                         case 4 :
303                             eatText2(value);
304                             state = 5;
305                             return ;
306                         case 1 :
307                             eatText3(value);
308                             state = 2;
309                             return ;
310                     }
311                 } catch (java.lang.RuntimeException JavaDoc e) {
312                     handleUnexpectedTextException(value, e);
313                 }
314                 break;
315             }
316         }
317
318         private void eatText1(final java.lang.String JavaDoc value)
319             throws org.xml.sax.SAXException JavaDoc
320         {
321             try {
322                 _LastName = value;
323             } catch (java.lang.Exception JavaDoc e) {
324                 handleParseConversionException(e);
325             }
326         }
327
328         private void eatText2(final java.lang.String JavaDoc value)
329             throws org.xml.sax.SAXException JavaDoc
330         {
331             try {
332                 _BirthDate = javax.xml.bind.DatatypeConverter.parseDate(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
333             } catch (java.lang.Exception JavaDoc e) {
334                 handleParseConversionException(e);
335             }
336         }
337
338         private void eatText3(final java.lang.String JavaDoc value)
339             throws org.xml.sax.SAXException JavaDoc
340         {
341             try {
342                 _FirstName = value;
343             } catch (java.lang.Exception JavaDoc e) {
344                 handleParseConversionException(e);
345             }
346         }
347
348     }
349
350 }
351
Popular Tags