View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:15 PM(kohsuke)-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: 2012.10.03 at 04:27:47 AM CEST 
6   //
7   
8   
9   package org.jdtaus.mojo.resource.model.impl;
10  
11  public class ModelObjectImpl implements org.jdtaus.mojo.resource.model.ModelObject, com.sun.xml.bind.JAXBObject, org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallableObject, org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializable, org.jdtaus.mojo.resource.model.impl.runtime.ValidatableObject
12  {
13  
14      protected org.jdtaus.mojo.resource.model.Texts _Documentation;
15      protected java.lang.String _ModelVersion;
16      public final static java.lang.Class version = (org.jdtaus.mojo.resource.model.impl.JAXBVersion.class);
17      private static com.sun.msv.grammar.Grammar schemaFragment;
18  
19      private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
20          return (org.jdtaus.mojo.resource.model.ModelObject.class);
21      }
22  
23      public org.jdtaus.mojo.resource.model.Texts getDocumentation() {
24          return _Documentation;
25      }
26  
27      public void setDocumentation(org.jdtaus.mojo.resource.model.Texts value) {
28          _Documentation = value;
29      }
30  
31      public java.lang.String getModelVersion() {
32          return _ModelVersion;
33      }
34  
35      public void setModelVersion(java.lang.String value) {
36          _ModelVersion = value;
37      }
38  
39      public org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingEventHandler createUnmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
40          return new org.jdtaus.mojo.resource.model.impl.ModelObjectImpl.Unmarshaller(context);
41      }
42  
43      public void serializeBody(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
44          throws org.xml.sax.SAXException
45      {
46          if (_Documentation!= null) {
47              if (_Documentation instanceof javax.xml.bind.Element) {
48                  context.childAsBody(((com.sun.xml.bind.JAXBObject) _Documentation), "Documentation");
49              } else {
50                  context.startElement("http://jdtaus.org/core/model/container", "documentation");
51                  context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Documentation), "Documentation");
52                  context.endNamespaceDecls();
53                  context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Documentation), "Documentation");
54                  context.endAttributes();
55                  context.childAsBody(((com.sun.xml.bind.JAXBObject) _Documentation), "Documentation");
56                  context.endElement();
57              }
58          }
59      }
60  
61      public void serializeAttributes(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
62          throws org.xml.sax.SAXException
63      {
64          if (_ModelVersion!= null) {
65              context.startAttribute("http://jdtaus.org/core/model/container", "modelVersion");
66              try {
67                  context.text(((java.lang.String) _ModelVersion), "ModelVersion");
68              } catch (java.lang.Exception e) {
69                  org.jdtaus.mojo.resource.model.impl.runtime.Util.handlePrintConversionException(this, e, context);
70              }
71              context.endAttribute();
72          }
73          if (_Documentation!= null) {
74              if (_Documentation instanceof javax.xml.bind.Element) {
75                  context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Documentation), "Documentation");
76              }
77          }
78      }
79  
80      public void serializeURIs(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
81          throws org.xml.sax.SAXException
82      {
83          if (_ModelVersion!= null) {
84              context.getNamespaceContext().declareNamespace("http://jdtaus.org/core/model/container", null, true);
85          }
86          if (_Documentation!= null) {
87              if (_Documentation instanceof javax.xml.bind.Element) {
88                  context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Documentation), "Documentation");
89              }
90          }
91      }
92  
93      public java.lang.Class getPrimaryInterface() {
94          return (org.jdtaus.mojo.resource.model.ModelObject.class);
95      }
96  
97      public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
98          if (schemaFragment == null) {
99              schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
100  "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
101 +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
102 +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
103 +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
104 +"expandedExpq\u0000~\u0000\u0002xpppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
105 +"\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsq\u0000~\u0000\u0006sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp"
106 +"\u0000psr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tn"
107 +"ameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.gr"
108 +"ammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fc"
109 +"ontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0006ppsr\u0000 com.sun.msv.grammar"
110 +".OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000"
111 +"\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\npsr\u0000 com.sun.msv.grammar.Attrib"
112 +"uteExp\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\npsr\u0000"
113 +"2com.sun.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
114 +"\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\t\u0001q\u0000~\u0000\u0016sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000"
115 +"\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com"
116 +".sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~"
117 +"\u0000\u0003q\u0000~\u0000\u0017q\u0000~\u0000\u001csr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
118 +"\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001exq\u0000~\u0000"
119 +"\u0019t\u00003org.jdtaus.mojo.resource.model.DocumentationElementt\u0000+ht"
120 +"tp://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u000bq\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000"
121 +"ppsq\u0000~\u0000\u000bpp\u0000sq\u0000~\u0000\u0006ppsq\u0000~\u0000\u0010q\u0000~\u0000\npsq\u0000~\u0000\u0013q\u0000~\u0000\npq\u0000~\u0000\u0016q\u0000~\u0000\u001aq\u0000~\u0000\u001csq"
122 +"\u0000~\u0000\u001dt\u0000$org.jdtaus.mojo.resource.model.Textsq\u0000~\u0000!sq\u0000~\u0000\u0006ppsq\u0000~"
123 +"\u0000\u0013q\u0000~\u0000\npsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLo"
124 +"rg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/su"
125 +"n/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datatype.xsd.Q"
126 +"nameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomi"
127 +"cType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000"
128 +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
129 +"\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001eL\u0000\btypeNameq\u0000~\u0000\u001eL\u0000\nwhiteSpacet\u0000.Lcom/s"
130 +"un/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.o"
131 +"rg/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd.WhiteS"
132 +"paceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xs"
133 +"d.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Ex"
134 +"pression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv"
135 +".util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001eL\u0000\fnamespaceURIq"
136 +"\u0000~\u0000\u001expq\u0000~\u00007q\u0000~\u00006sq\u0000~\u0000\u001dt\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSc"
137 +"hema-instanceq\u0000~\u0000\u001csq\u0000~\u0000\u001dt\u0000\rdocumentationt\u0000&http://jdtaus.org"
138 +"/core/model/containerq\u0000~\u0000\u001csq\u0000~\u0000\u0006ppsq\u0000~\u0000\u0013q\u0000~\u0000\npsq\u0000~\u0000,ppsr\u0000\'co"
139 +"m.sun.msv.datatype.xsd.MaxLengthFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\tmaxLength"
140 +"xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueConstraintFace"
141 +"t\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTypeWithFacet\u0000\u0000"
142 +"\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\bbaseTypet\u0000)L"
143 +"com/sun/msv/datatype/xsd/XSDatatypeImpl;L\u0000\fconcreteTypet\u0000\'Lc"
144 +"om/sun/msv/datatype/xsd/ConcreteType;L\u0000\tfacetNameq\u0000~\u0000\u001exq\u0000~\u00003"
145 +"q\u0000~\u0000Dt\u0000\u0007Versionsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProces"
146 +"sor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00009\u0000\u0000sr\u0000#com.sun.msv.datatype.xsd."
147 +"StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u00001q\u0000~\u00006t\u0000\u0006stringq\u0000~"
148 +"\u0000P\u0001q\u0000~\u0000Rt\u0000\tmaxLength\u0000\u0000\u0000dq\u0000~\u0000<sq\u0000~\u0000=q\u0000~\u0000Nq\u0000~\u0000Dsq\u0000~\u0000\u001dt\u0000\fmodelV"
149 +"ersionq\u0000~\u0000Dq\u0000~\u0000\u001csr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000"
150 +"\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$Close"
151 +"dHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0"
152 +"N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/gra"
153 +"mmar/ExpressionPool;xp\u0000\u0000\u0000\n\u0001pq\u0000~\u0000\u000fq\u0000~\u0000%q\u0000~\u0000*q\u0000~\u0000\bq\u0000~\u0000\u0005q\u0000~\u0000Eq\u0000"
154 +"~\u0000\u0012q\u0000~\u0000&q\u0000~\u0000\u0007q\u0000~\u0000#x"));
155         }
156         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
157     }
158 
159     public class Unmarshaller
160         extends org.jdtaus.mojo.resource.model.impl.runtime.AbstractUnmarshallingEventHandlerImpl
161     {
162 
163 
164         public Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
165             super(context, "-------");
166         }
167 
168         protected Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context, int startState) {
169             this(context);
170             state = startState;
171         }
172 
173         public java.lang.Object owner() {
174             return org.jdtaus.mojo.resource.model.impl.ModelObjectImpl.this;
175         }
176 
177         public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
178             throws org.xml.sax.SAXException
179         {
180             int attIdx;
181             outer:
182             while (true) {
183                 switch (state) {
184                     case  0 :
185                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "modelVersion");
186                         if (attIdx >= 0) {
187                             final java.lang.String v = context.eatAttribute(attIdx);
188                             state = 3;
189                             eatText1(v);
190                             continue outer;
191                         }
192                         state = 3;
193                         continue outer;
194                     case  6 :
195                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
196                         return ;
197                     case  4 :
198                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "defaultLanguage");
199                         if (attIdx >= 0) {
200                             context.consumeAttribute(attIdx);
201                             context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
202                             return ;
203                         }
204                         break;
205                     case  3 :
206                         if (("documentation" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
207                             _Documentation = ((org.jdtaus.mojo.resource.model.impl.DocumentationElementImpl) spawnChildFromEnterElement((org.jdtaus.mojo.resource.model.impl.DocumentationElementImpl.class), 6, ___uri, ___local, ___qname, __atts));
208                             return ;
209                         }
210                         if (("documentation" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
211                             context.pushAttributes(__atts, false);
212                             state = 4;
213                             return ;
214                         }
215                         state = 6;
216                         continue outer;
217                 }
218                 super.enterElement(___uri, ___local, ___qname, __atts);
219                 break;
220             }
221         }
222 
223         private void eatText1(final java.lang.String value)
224             throws org.xml.sax.SAXException
225         {
226             try {
227                 _ModelVersion = value;
228             } catch (java.lang.Exception e) {
229                 handleParseConversionException(e);
230             }
231         }
232 
233         public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
234             throws org.xml.sax.SAXException
235         {
236             int attIdx;
237             outer:
238             while (true) {
239                 switch (state) {
240                     case  0 :
241                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "modelVersion");
242                         if (attIdx >= 0) {
243                             final java.lang.String v = context.eatAttribute(attIdx);
244                             state = 3;
245                             eatText1(v);
246                             continue outer;
247                         }
248                         state = 3;
249                         continue outer;
250                     case  6 :
251                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
252                         return ;
253                     case  5 :
254                         if (("documentation" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
255                             context.popAttributes();
256                             state = 6;
257                             return ;
258                         }
259                         break;
260                     case  4 :
261                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "defaultLanguage");
262                         if (attIdx >= 0) {
263                             context.consumeAttribute(attIdx);
264                             context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
265                             return ;
266                         }
267                         break;
268                     case  3 :
269                         state = 6;
270                         continue outer;
271                 }
272                 super.leaveElement(___uri, ___local, ___qname);
273                 break;
274             }
275         }
276 
277         public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
278             throws org.xml.sax.SAXException
279         {
280             int attIdx;
281             outer:
282             while (true) {
283                 switch (state) {
284                     case  0 :
285                         if (("modelVersion" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
286                             state = 1;
287                             return ;
288                         }
289                         state = 3;
290                         continue outer;
291                     case  6 :
292                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
293                         return ;
294                     case  4 :
295                         if (("defaultLanguage" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
296                             _Documentation = ((org.jdtaus.mojo.resource.model.impl.TextsImpl) spawnChildFromEnterAttribute((org.jdtaus.mojo.resource.model.impl.TextsImpl.class), 5, ___uri, ___local, ___qname));
297                             return ;
298                         }
299                         break;
300                     case  3 :
301                         state = 6;
302                         continue outer;
303                 }
304                 super.enterAttribute(___uri, ___local, ___qname);
305                 break;
306             }
307         }
308 
309         public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
310             throws org.xml.sax.SAXException
311         {
312             int attIdx;
313             outer:
314             while (true) {
315                 switch (state) {
316                     case  2 :
317                         if (("modelVersion" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
318                             state = 3;
319                             return ;
320                         }
321                         break;
322                     case  0 :
323                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "modelVersion");
324                         if (attIdx >= 0) {
325                             final java.lang.String v = context.eatAttribute(attIdx);
326                             state = 3;
327                             eatText1(v);
328                             continue outer;
329                         }
330                         state = 3;
331                         continue outer;
332                     case  6 :
333                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
334                         return ;
335                     case  4 :
336                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "defaultLanguage");
337                         if (attIdx >= 0) {
338                             context.consumeAttribute(attIdx);
339                             context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
340                             return ;
341                         }
342                         break;
343                     case  3 :
344                         state = 6;
345                         continue outer;
346                 }
347                 super.leaveAttribute(___uri, ___local, ___qname);
348                 break;
349             }
350         }
351 
352         public void handleText(final java.lang.String value)
353             throws org.xml.sax.SAXException
354         {
355             int attIdx;
356             outer:
357             while (true) {
358                 try {
359                     switch (state) {
360                         case  1 :
361                             state = 2;
362                             eatText1(value);
363                             return ;
364                         case  0 :
365                             attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "modelVersion");
366                             if (attIdx >= 0) {
367                                 final java.lang.String v = context.eatAttribute(attIdx);
368                                 state = 3;
369                                 eatText1(v);
370                                 continue outer;
371                             }
372                             state = 3;
373                             continue outer;
374                         case  6 :
375                             revertToParentFromText(value);
376                             return ;
377                         case  4 :
378                             attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "defaultLanguage");
379                             if (attIdx >= 0) {
380                                 context.consumeAttribute(attIdx);
381                                 context.getCurrentHandler().text(value);
382                                 return ;
383                             }
384                             break;
385                         case  3 :
386                             state = 6;
387                             continue outer;
388                     }
389                 } catch (java.lang.RuntimeException e) {
390                     handleUnexpectedTextException(value, e);
391                 }
392                 break;
393             }
394         }
395 
396     }
397 
398 }