KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mvnforum > jaxb > db > impl > AttachmentListImpl


1 //
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.5-b16-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.12.29 at 03:19:11 PM GMT+07:00
6
//
7

8
9 package com.mvnforum.jaxb.db.impl;
10
11 public class AttachmentListImpl implements com.mvnforum.jaxb.db.AttachmentList, com.sun.xml.bind.JAXBObject, com.mvnforum.jaxb.db.impl.runtime.UnmarshallableObject, com.mvnforum.jaxb.db.impl.runtime.XMLSerializable, com.mvnforum.jaxb.db.impl.runtime.ValidatableObject
12 {
13
14     protected com.sun.xml.bind.util.ListImpl _Attachment;
15     public final static java.lang.Class JavaDoc version = (com.mvnforum.jaxb.db.impl.JAXBVersion.class);
16     private static com.sun.msv.grammar.Grammar schemaFragment;
17
18     private final static java.lang.Class JavaDoc PRIMARY_INTERFACE_CLASS() {
19         return (com.mvnforum.jaxb.db.AttachmentList.class);
20     }
21
22     protected com.sun.xml.bind.util.ListImpl _getAttachment() {
23         if (_Attachment == null) {
24             _Attachment = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList JavaDoc());
25         }
26         return _Attachment;
27     }
28
29     public java.util.List JavaDoc getAttachment() {
30         return _getAttachment();
31     }
32
33     public com.mvnforum.jaxb.db.impl.runtime.UnmarshallingEventHandler createUnmarshaller(com.mvnforum.jaxb.db.impl.runtime.UnmarshallingContext context) {
34         return new com.mvnforum.jaxb.db.impl.AttachmentListImpl.Unmarshaller(context);
35     }
36
37     public void serializeBody(com.mvnforum.jaxb.db.impl.runtime.XMLSerializer context)
38         throws org.xml.sax.SAXException JavaDoc
39     {
40         int idx1 = 0;
41         final int len1 = ((_Attachment == null)? 0 :_Attachment.size());
42         while (idx1 != len1) {
43             context.startElement("", "Attachment");
44             int idx_0 = idx1;
45             context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Attachment.get(idx_0 ++)), "Attachment");
46             context.endNamespaceDecls();
47             int idx_1 = idx1;
48             context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Attachment.get(idx_1 ++)), "Attachment");
49             context.endAttributes();
50             context.childAsBody(((com.sun.xml.bind.JAXBObject) _Attachment.get(idx1 ++)), "Attachment");
51             context.endElement();
52         }
53     }
54
55     public void serializeAttributes(com.mvnforum.jaxb.db.impl.runtime.XMLSerializer context)
56         throws org.xml.sax.SAXException JavaDoc
57     {
58         int idx1 = 0;
59         final int len1 = ((_Attachment == null)? 0 :_Attachment.size());
60         while (idx1 != len1) {
61             idx1 += 1;
62         }
63     }
64
65     public void serializeURIs(com.mvnforum.jaxb.db.impl.runtime.XMLSerializer context)
66         throws org.xml.sax.SAXException JavaDoc
67     {
68         int idx1 = 0;
69         final int len1 = ((_Attachment == null)? 0 :_Attachment.size());
70         while (idx1 != len1) {
71             idx1 += 1;
72         }
73     }
74
75     public java.lang.Class JavaDoc getPrimaryInterface() {
76         return (com.mvnforum.jaxb.db.AttachmentList.class);
77     }
78
79     public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
80         if (schemaFragment == null) {
81             schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
82  "\u00ac\u00ed\u0000\u0005sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun."
83 +"msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gramm"
84 +"ar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expression"
85 +"\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bex"
86 +"pandedExpq\u0000~\u0000\u0002xpppsr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000"
87 +"\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002x"
88 +"q\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\'com.sun"
89 +".msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLc"
90 +"om/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.Element"
91 +"Exp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000"
92 +"~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\np\u0000sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
93 +"\u0000\u0000xq\u0000~\u0000\u0001ppsq\u0000~\u0000\u000bpp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0006q\u0000~\u0000\npsr\u0000 com.sun.msv.gramm"
94 +"ar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\fxq\u0000~\u0000\u0003"
95 +"q\u0000~\u0000\npsr\u00002com.sun.msv.grammar.Expression$AnyStringExpression"
96 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\t\u0001psr\u0000 com.sun.msv.grammar.AnyNameClas"
97 +"s\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr"
98 +"\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
99 +"\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u0018psr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
100 +"\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001fxq\u0000~"
101 +"\u0000\u001at\u0000#com.mvnforum.jaxb.db.AttachmentTypet\u0000+http://java.sun.c"
102 +"om/jaxb/xjc/dummy-elementssq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0014q\u0000~\u0000\npsr\u0000\u001bcom.sun.ms"
103 +"v.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Da"
104 +"tatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;"
105 +"xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000"
106 +"*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%co"
107 +"m.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.ms"
108 +"v.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001f"
109 +"L\u0000\btypeNameq\u0000~\u0000\u001fL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/Wh"
110 +"iteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QN"
111 +"amesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse"
112 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000"
113 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpres"
114 +"sion\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f"
115 +"\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001fL\u0000\fnamespaceURIq\u0000~\u0000\u001fxpq\u0000~\u00000q\u0000~\u0000/sq\u0000~\u0000\u001e"
116 +"t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001dsq\u0000~"
117 +"\u0000\u001et\u0000\nAttachmentt\u0000\u0000q\u0000~\u0000\u001dsr\u0000\"com.sun.msv.grammar.ExpressionPoo"
118 +"l\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPoo"
119 +"l$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$Closed"
120 +"Hash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/"
121 +"msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0006\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\u0012q\u0000~\u0000\u0010q\u0000~\u0000#q\u0000~\u0000\b"
122 +"q\u0000~\u0000\u0013x"));
123         }
124         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
125     }
126
127     public class Unmarshaller
128         extends com.mvnforum.jaxb.db.impl.runtime.AbstractUnmarshallingEventHandlerImpl
129     {
130
131
132         public Unmarshaller(com.mvnforum.jaxb.db.impl.runtime.UnmarshallingContext context) {
133             super(context, "----");
134         }
135
136         protected Unmarshaller(com.mvnforum.jaxb.db.impl.runtime.UnmarshallingContext context, int startState) {
137             this(context);
138             state = startState;
139         }
140
141         public java.lang.Object JavaDoc owner() {
142             return com.mvnforum.jaxb.db.impl.AttachmentListImpl.this;
143         }
144
145         public void enterElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname, org.xml.sax.Attributes JavaDoc __atts)
146             throws org.xml.sax.SAXException JavaDoc
147         {
148             int attIdx;
149             outer:
150             while (true) {
151                 switch (state) {
152                     case 1 :
153                         if (("MemberName" == ___local)&&("" == ___uri)) {
154                             _getAttachment().add(((com.mvnforum.jaxb.db.impl.AttachmentTypeImpl) spawnChildFromEnterElement((com.mvnforum.jaxb.db.impl.AttachmentTypeImpl.class), 2, ___uri, ___local, ___qname, __atts)));
155                             return ;
156                         }
157                         if (("AttachFilename" == ___local)&&("" == ___uri)) {
158                             _getAttachment().add(((com.mvnforum.jaxb.db.impl.AttachmentTypeImpl) spawnChildFromEnterElement((com.mvnforum.jaxb.db.impl.AttachmentTypeImpl.class), 2, ___uri, ___local, ___qname, __atts)));
159                             return ;
160                         }
161                         break;
162                     case 0 :
163                         if (("Attachment" == ___local)&&("" == ___uri)) {
164                             context.pushAttributes(__atts, false);
165                             state = 1;
166                             return ;
167                         }
168                         state = 3;
169                         continue outer;
170                     case 3 :
171                         if (("Attachment" == ___local)&&("" == ___uri)) {
172                             context.pushAttributes(__atts, false);
173                             state = 1;
174                             return ;
175                         }
176                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
177                         return ;
178                 }
179                 super.enterElement(___uri, ___local, ___qname, __atts);
180                 break;
181             }
182         }
183
184         public void leaveElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
185             throws org.xml.sax.SAXException JavaDoc
186         {
187             int attIdx;
188             outer:
189             while (true) {
190                 switch (state) {
191                     case 2 :
192                         if (("Attachment" == ___local)&&("" == ___uri)) {
193                             context.popAttributes();
194                             state = 3;
195                             return ;
196                         }
197                         break;
198                     case 0 :
199                         state = 3;
200                         continue outer;
201                     case 3 :
202                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
203                         return ;
204                 }
205                 super.leaveElement(___uri, ___local, ___qname);
206                 break;
207             }
208         }
209
210         public void enterAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
211             throws org.xml.sax.SAXException JavaDoc
212         {
213             int attIdx;
214             outer:
215             while (true) {
216                 switch (state) {
217                     case 0 :
218                         state = 3;
219                         continue outer;
220                     case 3 :
221                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
222                         return ;
223                 }
224                 super.enterAttribute(___uri, ___local, ___qname);
225                 break;
226             }
227         }
228
229         public void leaveAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
230             throws org.xml.sax.SAXException JavaDoc
231         {
232             int attIdx;
233             outer:
234             while (true) {
235                 switch (state) {
236                     case 0 :
237                         state = 3;
238                         continue outer;
239                     case 3 :
240                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
241                         return ;
242                 }
243                 super.leaveAttribute(___uri, ___local, ___qname);
244                 break;
245             }
246         }
247
248         public void handleText(final java.lang.String JavaDoc value)
249             throws org.xml.sax.SAXException JavaDoc
250         {
251             int attIdx;
252             outer:
253             while (true) {
254                 try {
255                     switch (state) {
256                         case 0 :
257                             state = 3;
258                             continue outer;
259                         case 3 :
260                             revertToParentFromText(value);
261                             return ;
262                     }
263                 } catch (java.lang.RuntimeException JavaDoc e) {
264                     handleUnexpectedTextException(value, e);
265                 }
266                 break;
267             }
268         }
269
270     }
271
272 }
273
Popular Tags