KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > japex > testsuite > impl > ParamTypeImpl


1 //
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.3-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: 2005.06.14 at 12:02:17 PDT
6
//
7

8
9 package com.sun.japex.testsuite.impl;
10
11 public class ParamTypeImpl implements com.sun.japex.testsuite.ParamType, com.sun.xml.bind.JAXBObject, com.sun.japex.testsuite.impl.runtime.UnmarshallableObject, com.sun.japex.testsuite.impl.runtime.XMLSerializable, com.sun.japex.testsuite.impl.runtime.ValidatableObject
12 {
13
14     protected java.lang.String JavaDoc _Value;
15     protected java.lang.String JavaDoc _Name;
16     public final static java.lang.Class JavaDoc version = (com.sun.japex.testsuite.impl.JAXBVersion.class);
17     private static com.sun.msv.grammar.Grammar schemaFragment;
18
19     private final static java.lang.Class JavaDoc PRIMARY_INTERFACE_CLASS() {
20         return (com.sun.japex.testsuite.ParamType.class);
21     }
22
23     public java.lang.String JavaDoc getValue() {
24         return _Value;
25     }
26
27     public void setValue(java.lang.String JavaDoc value) {
28         _Value = value;
29     }
30
31     public java.lang.String JavaDoc getName() {
32         return _Name;
33     }
34
35     public void setName(java.lang.String JavaDoc value) {
36         _Name = value;
37     }
38
39     public com.sun.japex.testsuite.impl.runtime.UnmarshallingEventHandler createUnmarshaller(com.sun.japex.testsuite.impl.runtime.UnmarshallingContext context) {
40         return new com.sun.japex.testsuite.impl.ParamTypeImpl.Unmarshaller(context);
41     }
42
43     public void serializeBody(com.sun.japex.testsuite.impl.runtime.XMLSerializer context)
44         throws org.xml.sax.SAXException JavaDoc
45     {
46     }
47
48     public void serializeAttributes(com.sun.japex.testsuite.impl.runtime.XMLSerializer context)
49         throws org.xml.sax.SAXException JavaDoc
50     {
51         context.startAttribute("", "name");
52         try {
53             context.text(((java.lang.String JavaDoc) _Name), "Name");
54         } catch (java.lang.Exception JavaDoc e) {
55             com.sun.japex.testsuite.impl.runtime.Util.handlePrintConversionException(this, e, context);
56         }
57         context.endAttribute();
58         context.startAttribute("", "value");
59         try {
60             context.text(((java.lang.String JavaDoc) _Value), "Value");
61         } catch (java.lang.Exception JavaDoc e) {
62             com.sun.japex.testsuite.impl.runtime.Util.handlePrintConversionException(this, e, context);
63         }
64         context.endAttribute();
65     }
66
67     public void serializeURIs(com.sun.japex.testsuite.impl.runtime.XMLSerializer context)
68         throws org.xml.sax.SAXException JavaDoc
69     {
70     }
71
72     public java.lang.Class JavaDoc getPrimaryInterface() {
73         return (com.sun.japex.testsuite.ParamType.class);
74     }
75
76     public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
77         if (schemaFragment == null) {
78             schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
79  "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
80 +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
81 +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
82 +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
83 +"expandedExpq\u0000~\u0000\u0002xpppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000"
84 +"\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameCl"
85 +"ass;xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt"
86 +"\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLco"
87 +"m/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000#com.sun.msv.datatype.x"
88 +"sd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.data"
89 +"type.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatyp"
90 +"e.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XS"
91 +"DatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L"
92 +"\u0000\btypeNameq\u0000~\u0000\u0011L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/Whi"
93 +"teSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006str"
94 +"ingsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Preserve"
95 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000"
96 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$NullSetExpre"
97 +"ssion\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB"
98 +"\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0011L\u0000\fnamespaceURIq\u0000~\u0000\u0011xpq\u0000~\u0000\u0015q\u0000~\u0000\u0014sr\u0000#c"
99 +"om.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~"
100 +"\u0000\u0011L\u0000\fnamespaceURIq\u0000~\u0000\u0011xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000"
101 +"\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004namet\u0000\u0000sq\u0000~\u0000\u0006ppq\u0000~\u0000\fsq\u0000~\u0000\u001dt\u0000\u0005valueq\u0000~\u0000!sr\u0000\"com.su"
102 +"n.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/su"
103 +"n/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.gr"
104 +"ammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamV"
105 +"ersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0001"
106 +"\u0001pq\u0000~\u0000\u0005x"));
107         }
108         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
109     }
110
111     public class Unmarshaller
112         extends com.sun.japex.testsuite.impl.runtime.AbstractUnmarshallingEventHandlerImpl
113     {
114
115
116         public Unmarshaller(com.sun.japex.testsuite.impl.runtime.UnmarshallingContext context) {
117             super(context, "-------");
118         }
119
120         protected Unmarshaller(com.sun.japex.testsuite.impl.runtime.UnmarshallingContext context, int startState) {
121             this(context);
122             state = startState;
123         }
124
125         public java.lang.Object JavaDoc owner() {
126             return com.sun.japex.testsuite.impl.ParamTypeImpl.this;
127         }
128
129         public void enterElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname, org.xml.sax.Attributes JavaDoc __atts)
130             throws org.xml.sax.SAXException JavaDoc
131         {
132             int attIdx;
133             outer:
134             while (true) {
135                 switch (state) {
136                     case 6 :
137                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
138                         return ;
139                     case 3 :
140                         attIdx = context.getAttribute("", "value");
141                         if (attIdx >= 0) {
142                             final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
143                             eatText1(v);
144                             state = 6;
145                             continue outer;
146                         }
147                         break;
148                     case 0 :
149                         attIdx = context.getAttribute("", "name");
150                         if (attIdx >= 0) {
151                             final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
152                             eatText2(v);
153                             state = 3;
154                             continue outer;
155                         }
156                         break;
157                 }
158                 super.enterElement(___uri, ___local, ___qname, __atts);
159                 break;
160             }
161         }
162
163         private void eatText1(final java.lang.String JavaDoc value)
164             throws org.xml.sax.SAXException JavaDoc
165         {
166             try {
167                 _Value = value;
168             } catch (java.lang.Exception JavaDoc e) {
169                 handleParseConversionException(e);
170             }
171         }
172
173         private void eatText2(final java.lang.String JavaDoc value)
174             throws org.xml.sax.SAXException JavaDoc
175         {
176             try {
177                 _Name = value;
178             } catch (java.lang.Exception JavaDoc e) {
179                 handleParseConversionException(e);
180             }
181         }
182
183         public void leaveElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
184             throws org.xml.sax.SAXException JavaDoc
185         {
186             int attIdx;
187             outer:
188             while (true) {
189                 switch (state) {
190                     case 6 :
191                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
192                         return ;
193                     case 3 :
194                         attIdx = context.getAttribute("", "value");
195                         if (attIdx >= 0) {
196                             final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
197                             eatText1(v);
198                             state = 6;
199                             continue outer;
200                         }
201                         break;
202                     case 0 :
203                         attIdx = context.getAttribute("", "name");
204                         if (attIdx >= 0) {
205                             final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
206                             eatText2(v);
207                             state = 3;
208                             continue outer;
209                         }
210                         break;
211                 }
212                 super.leaveElement(___uri, ___local, ___qname);
213                 break;
214             }
215         }
216
217         public void enterAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
218             throws org.xml.sax.SAXException JavaDoc
219         {
220             int attIdx;
221             outer:
222             while (true) {
223                 switch (state) {
224                     case 6 :
225                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
226                         return ;
227                     case 3 :
228                         if (("value" == ___local)&&("" == ___uri)) {
229                             state = 4;
230                             return ;
231                         }
232                         break;
233                     case 0 :
234                         if (("name" == ___local)&&("" == ___uri)) {
235                             state = 1;
236                             return ;
237                         }
238                         break;
239                 }
240                 super.enterAttribute(___uri, ___local, ___qname);
241                 break;
242             }
243         }
244
245         public void leaveAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
246             throws org.xml.sax.SAXException JavaDoc
247         {
248             int attIdx;
249             outer:
250             while (true) {
251                 switch (state) {
252                     case 6 :
253                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
254                         return ;
255                     case 5 :
256                         if (("value" == ___local)&&("" == ___uri)) {
257                             state = 6;
258                             return ;
259                         }
260                         break;
261                     case 2 :
262                         if (("name" == ___local)&&("" == ___uri)) {
263                             state = 3;
264                             return ;
265                         }
266                         break;
267                     case 3 :
268                         attIdx = context.getAttribute("", "value");
269                         if (attIdx >= 0) {
270                             final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
271                             eatText1(v);
272                             state = 6;
273                             continue outer;
274                         }
275                         break;
276                     case 0 :
277                         attIdx = context.getAttribute("", "name");
278                         if (attIdx >= 0) {
279                             final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
280                             eatText2(v);
281                             state = 3;
282                             continue outer;
283                         }
284                         break;
285                 }
286                 super.leaveAttribute(___uri, ___local, ___qname);
287                 break;
288             }
289         }
290
291         public void handleText(final java.lang.String JavaDoc value)
292             throws org.xml.sax.SAXException JavaDoc
293         {
294             int attIdx;
295             outer:
296             while (true) {
297                 try {
298                     switch (state) {
299                         case 6 :
300                             revertToParentFromText(value);
301                             return ;
302                         case 4 :
303                             eatText1(value);
304                             state = 5;
305                             return ;
306                         case 3 :
307                             attIdx = context.getAttribute("", "value");
308                             if (attIdx >= 0) {
309                                 final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
310                                 eatText1(v);
311                                 state = 6;
312                                 continue outer;
313                             }
314                             break;
315                         case 1 :
316                             eatText2(value);
317                             state = 2;
318                             return ;
319                         case 0 :
320                             attIdx = context.getAttribute("", "name");
321                             if (attIdx >= 0) {
322                                 final java.lang.String JavaDoc v = context.eatAttribute(attIdx);
323                                 eatText2(v);
324                                 state = 3;
325                                 continue outer;
326                             }
327                             break;
328                     }
329                 } catch (java.lang.RuntimeException JavaDoc e) {
330                     handleUnexpectedTextException(value, e);
331                 }
332                 break;
333             }
334         }
335
336     }
337
338 }
339
Popular Tags