KickJava   Java API By Example, From Geeks To Geeks.

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


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 GlobalPermissionListImpl implements com.mvnforum.jaxb.db.GlobalPermissionList, 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 _GlobalPermission;
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.GlobalPermissionList.class);
20     }
21
22     protected com.sun.xml.bind.util.ListImpl _getGlobalPermission() {
23         if (_GlobalPermission == null) {
24             _GlobalPermission = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList JavaDoc());
25         }
26         return _GlobalPermission;
27     }
28
29     public java.util.List JavaDoc getGlobalPermission() {
30         return _getGlobalPermission();
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.GlobalPermissionListImpl.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 = ((_GlobalPermission == null)? 0 :_GlobalPermission.size());
42         while (idx1 != len1) {
43             context.startElement("", "GlobalPermission");
44             int idx_0 = idx1;
45             try {
46                 idx_0 += 1;
47             } catch (java.lang.Exception JavaDoc e) {
48                 com.mvnforum.jaxb.db.impl.runtime.Util.handlePrintConversionException(this, e, context);
49             }
50             context.endNamespaceDecls();
51             int idx_1 = idx1;
52             try {
53                 idx_1 += 1;
54             } catch (java.lang.Exception JavaDoc e) {
55                 com.mvnforum.jaxb.db.impl.runtime.Util.handlePrintConversionException(this, e, context);
56             }
57             context.endAttributes();
58             try {
59                 context.text(javax.xml.bind.DatatypeConverter.printInt(((int)((java.lang.Integer JavaDoc) _GlobalPermission.get(idx1 ++)).intValue())), "GlobalPermission");
60             } catch (java.lang.Exception JavaDoc e) {
61                 com.mvnforum.jaxb.db.impl.runtime.Util.handlePrintConversionException(this, e, context);
62             }
63             context.endElement();
64         }
65     }
66
67     public void serializeAttributes(com.mvnforum.jaxb.db.impl.runtime.XMLSerializer context)
68         throws org.xml.sax.SAXException JavaDoc
69     {
70         int idx1 = 0;
71         final int len1 = ((_GlobalPermission == null)? 0 :_GlobalPermission.size());
72         while (idx1 != len1) {
73             try {
74                 idx1 += 1;
75             } catch (java.lang.Exception JavaDoc e) {
76                 com.mvnforum.jaxb.db.impl.runtime.Util.handlePrintConversionException(this, e, context);
77             }
78         }
79     }
80
81     public void serializeURIs(com.mvnforum.jaxb.db.impl.runtime.XMLSerializer context)
82         throws org.xml.sax.SAXException JavaDoc
83     {
84         int idx1 = 0;
85         final int len1 = ((_GlobalPermission == null)? 0 :_GlobalPermission.size());
86         while (idx1 != len1) {
87             try {
88                 idx1 += 1;
89             } catch (java.lang.Exception JavaDoc e) {
90                 com.mvnforum.jaxb.db.impl.runtime.Util.handlePrintConversionException(this, e, context);
91             }
92         }
93     }
94
95     public java.lang.Class JavaDoc getPrimaryInterface() {
96         return (com.mvnforum.jaxb.db.GlobalPermissionList.class);
97     }
98
99     public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
100         if (schemaFragment == null) {
101             schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
102  "\u00ac\u00ed\u0000\u0005sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun."
103 +"msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gramm"
104 +"ar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expression"
105 +"\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bex"
106 +"pandedExpq\u0000~\u0000\u0002xpppsr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000"
107 +"\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"
108 +"q\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\'com.sun"
109 +".msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLc"
110 +"om/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.Element"
111 +"Exp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000"
112 +"~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\np\u0000sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
113 +"\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001f"
114 +"Lorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/"
115 +"sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000 com.sun.msv.datatype.xsd"
116 +".IntType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.msv.datatype.xsd.IntegerDeriv"
117 +"edType\u0099\u00f1]\u0090&6k\u00be\u0002\u0000\u0001L\u0000\nbaseFacetst\u0000)Lcom/sun/msv/datatype/xsd/X"
118 +"SDatatypeImpl;xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType"
119 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
120 +"\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\f"
121 +"namespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u001bL\u0000\nwhiteSpa"
122 +"cet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http"
123 +"://www.w3.org/2001/XMLSchemat\u0000\u0003intsr\u00005com.sun.msv.datatype.x"
124 +"sd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.da"
125 +"tatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u0000*com.sun.msv.d"
126 +"atatype.xsd.MaxInclusiveFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000#com.sun.msv.data"
127 +"type.xsd.RangeFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\nlimitValuet\u0000\u0012Ljava/lang/Obj"
128 +"ect;xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueConstraint"
129 +"Facet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTypeWithFac"
130 +"et\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\bbaseType"
131 +"q\u0000~\u0000\u0017L\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteTyp"
132 +"e;L\u0000\tfacetNameq\u0000~\u0000\u001bxq\u0000~\u0000\u001appq\u0000~\u0000\"\u0000\u0001sr\u0000*com.sun.msv.datatype.x"
133 +"sd.MinInclusiveFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000$ppq\u0000~\u0000\"\u0000\u0000sr\u0000!com.sun.ms"
134 +"v.datatype.xsd.LongType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0016q\u0000~\u0000\u001et\u0000\u0004longq\u0000~\u0000\"sq\u0000"
135 +"~\u0000#ppq\u0000~\u0000\"\u0000\u0001sq\u0000~\u0000*ppq\u0000~\u0000\"\u0000\u0000sr\u0000$com.sun.msv.datatype.xsd.Inte"
136 +"gerType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0016q\u0000~\u0000\u001et\u0000\u0007integerq\u0000~\u0000\"sr\u0000,com.sun.msv."
137 +"datatype.xsd.FractionDigitsFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\u0005scalexr\u0000;com.s"
138 +"un.msv.datatype.xsd.DataTypeWithLexicalConstraintFacetT\u0090\u001c>\u001az"
139 +"b\u00ea\u0002\u0000\u0000xq\u0000~\u0000\'ppq\u0000~\u0000\"\u0001\u0000sr\u0000#com.sun.msv.datatype.xsd.NumberType\u0000"
140 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0018q\u0000~\u0000\u001et\u0000\u0007decimalq\u0000~\u0000\"q\u0000~\u00008t\u0000\u000efractionDigits\u0000\u0000"
141 +"\u0000\u0000q\u0000~\u00002t\u0000\fminInclusivesr\u0000\u000ejava.lang.Long;\u008b\u00e4\u0090\u00cc\u008f#\u00df\u0002\u0000\u0001J\u0000\u0005valuex"
142 +"r\u0000\u0010java.lang.Number\u0086\u00ac\u0095\u001d\u000b\u0094\u00e0\u008b\u0002\u0000\u0000xp\u0080\u0000\u0000\u0000\u0000\u0000\u0000\u0000q\u0000~\u00002t\u0000\fmaxInclusive"
143 +"sq\u0000~\u0000<\u007f\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u00ffq\u0000~\u0000-q\u0000~\u0000;sr\u0000\u0011java.lang.Integer\u0012\u00e2\u00a0\u00a4\u00f7\u0081\u00878\u0002\u0000\u0001I\u0000\u0005v"
144 +"aluexq\u0000~\u0000=\u0080\u0000\u0000\u0000q\u0000~\u0000-q\u0000~\u0000?sq\u0000~\u0000A\u007f\u00ff\u00ff\u00ffsr\u00000com.sun.msv.grammar.Ex"
145 +"pression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv"
146 +".util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001bL\u0000\fnamespaceURIq"
147 +"\u0000~\u0000\u001bxpq\u0000~\u0000\u001fq\u0000~\u0000\u001esq\u0000~\u0000\u0000ppsr\u0000 com.sun.msv.grammar.AttributeExp"
148 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\fxq\u0000~\u0000\u0003q\u0000~\u0000\npsq\u0000~\u0000\u0011pps"
149 +"r\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0018q\u0000~\u0000\u001et"
150 +"\u0000\u0005QNameq\u0000~\u0000\"q\u0000~\u0000Esq\u0000~\u0000Fq\u0000~\u0000Nq\u0000~\u0000\u001esr\u0000#com.sun.msv.grammar.Sim"
151 +"pleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001bL\u0000\fnamespaceURIq\u0000~\u0000\u001b"
152 +"xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http"
153 +"://www.w3.org/2001/XMLSchema-instancesr\u00000com.sun.msv.grammar"
154 +".Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\t\u0001psq\u0000~\u0000P"
155 +"t\u0000\u0010GlobalPermissiont\u0000\u0000q\u0000~\u0000Vsr\u0000\"com.sun.msv.grammar.Expressio"
156 +"nPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Expressio"
157 +"nPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$Cl"
158 +"osedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/"
159 +"sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0004\u0001pq\u0000~\u0000Hq\u0000~\u0000\u0005q\u0000~\u0000\u0010q\u0000~\u0000\bx"));
160         }
161         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
162     }
163
164     public class Unmarshaller
165         extends com.mvnforum.jaxb.db.impl.runtime.AbstractUnmarshallingEventHandlerImpl
166     {
167
168
169         public Unmarshaller(com.mvnforum.jaxb.db.impl.runtime.UnmarshallingContext context) {
170             super(context, "----");
171         }
172
173         protected Unmarshaller(com.mvnforum.jaxb.db.impl.runtime.UnmarshallingContext context, int startState) {
174             this(context);
175             state = startState;
176         }
177
178         public java.lang.Object JavaDoc owner() {
179             return com.mvnforum.jaxb.db.impl.GlobalPermissionListImpl.this;
180         }
181
182         public void enterElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname, org.xml.sax.Attributes JavaDoc __atts)
183             throws org.xml.sax.SAXException JavaDoc
184         {
185             int attIdx;
186             outer:
187             while (true) {
188                 switch (state) {
189                     case 3 :
190                         if (("GlobalPermission" == ___local)&&("" == ___uri)) {
191                             context.pushAttributes(__atts, true);
192                             state = 1;
193                             return ;
194                         }
195                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
196                         return ;
197                     case 0 :
198                         if (("GlobalPermission" == ___local)&&("" == ___uri)) {
199                             context.pushAttributes(__atts, true);
200                             state = 1;
201                             return ;
202                         }
203                         state = 3;
204                         continue outer;
205                 }
206                 super.enterElement(___uri, ___local, ___qname, __atts);
207                 break;
208             }
209         }
210
211         public void leaveElement(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
212             throws org.xml.sax.SAXException JavaDoc
213         {
214             int attIdx;
215             outer:
216             while (true) {
217                 switch (state) {
218                     case 2 :
219                         if (("GlobalPermission" == ___local)&&("" == ___uri)) {
220                             context.popAttributes();
221                             state = 3;
222                             return ;
223                         }
224                         break;
225                     case 3 :
226                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
227                         return ;
228                     case 0 :
229                         state = 3;
230                         continue outer;
231                 }
232                 super.leaveElement(___uri, ___local, ___qname);
233                 break;
234             }
235         }
236
237         public void enterAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
238             throws org.xml.sax.SAXException JavaDoc
239         {
240             int attIdx;
241             outer:
242             while (true) {
243                 switch (state) {
244                     case 3 :
245                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
246                         return ;
247                     case 0 :
248                         state = 3;
249                         continue outer;
250                 }
251                 super.enterAttribute(___uri, ___local, ___qname);
252                 break;
253             }
254         }
255
256         public void leaveAttribute(java.lang.String JavaDoc ___uri, java.lang.String JavaDoc ___local, java.lang.String JavaDoc ___qname)
257             throws org.xml.sax.SAXException JavaDoc
258         {
259             int attIdx;
260             outer:
261             while (true) {
262                 switch (state) {
263                     case 3 :
264                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
265                         return ;
266                     case 0 :
267                         state = 3;
268                         continue outer;
269                 }
270                 super.leaveAttribute(___uri, ___local, ___qname);
271                 break;
272             }
273         }
274
275         public void handleText(final java.lang.String JavaDoc value)
276             throws org.xml.sax.SAXException JavaDoc
277         {
278             int attIdx;
279             outer:
280             while (true) {
281                 try {
282                     switch (state) {
283                         case 3 :
284                             revertToParentFromText(value);
285                             return ;
286                         case 1 :
287                             state = 2;
288                             eatText1(value);
289                             return ;
290                         case 0 :
291                             state = 3;
292                             continue outer;
293                     }
294                 } catch (java.lang.RuntimeException JavaDoc e) {
295                     handleUnexpectedTextException(value, e);
296                 }
297                 break;
298             }
299         }
300
301         private void eatText1(final java.lang.String JavaDoc value)
302             throws org.xml.sax.SAXException JavaDoc
303         {
304             try {
305                 _getGlobalPermission().add(new java.lang.Integer JavaDoc(javax.xml.bind.DatatypeConverter.parseInt(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value))));
306             } catch (java.lang.Exception JavaDoc e) {
307                 handleParseConversionException(e);
308             }
309         }
310
311     }
312
313 }
314
Popular Tags