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 ImplementationReferenceImpl
12      extends org.jdtaus.mojo.resource.model.impl.SpecificationReferenceImpl
13      implements org.jdtaus.mojo.resource.model.ImplementationReference, 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
14  {
15  
16      protected java.lang.String _ImplementationName;
17      public final static java.lang.Class version = (org.jdtaus.mojo.resource.model.impl.JAXBVersion.class);
18      private static com.sun.msv.grammar.Grammar schemaFragment;
19  
20      private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
21          return (org.jdtaus.mojo.resource.model.ImplementationReference.class);
22      }
23  
24      public java.lang.String getImplementationName() {
25          return _ImplementationName;
26      }
27  
28      public void setImplementationName(java.lang.String value) {
29          _ImplementationName = value;
30      }
31  
32      public org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingEventHandler createUnmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
33          return new org.jdtaus.mojo.resource.model.impl.ImplementationReferenceImpl.Unmarshaller(context);
34      }
35  
36      public void serializeBody(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
37          throws org.xml.sax.SAXException
38      {
39          super.serializeBody(context);
40      }
41  
42      public void serializeAttributes(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
43          throws org.xml.sax.SAXException
44      {
45          if (_ImplementationName!= null) {
46              context.startAttribute("http://jdtaus.org/core/model/container", "implementationName");
47              try {
48                  context.text(((java.lang.String) _ImplementationName), "ImplementationName");
49              } catch (java.lang.Exception e) {
50                  org.jdtaus.mojo.resource.model.impl.runtime.Util.handlePrintConversionException(this, e, context);
51              }
52              context.endAttribute();
53          }
54          super.serializeAttributes(context);
55      }
56  
57      public void serializeURIs(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
58          throws org.xml.sax.SAXException
59      {
60          if (_ImplementationName!= null) {
61              context.getNamespaceContext().declareNamespace("http://jdtaus.org/core/model/container", null, true);
62          }
63          super.serializeURIs(context);
64      }
65  
66      public java.lang.Class getPrimaryInterface() {
67          return (org.jdtaus.mojo.resource.model.ImplementationReference.class);
68      }
69  
70      public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
71          if (schemaFragment == null) {
72              schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
73   "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
74  +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
75  +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
76  +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
77  +"expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv."
78  +"grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsq\u0000~\u0000\tsr\u0000\u0011java.lang.Bool"
79  +"ean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\'com.sun.msv.grammar.trex.Eleme"
80  +"ntPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/Name"
81  +"Class;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignore"
82  +"UndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\rp\u0000sq\u0000~\u0000\tp"
83  +"psr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun."
84  +"msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\rpsr\u0000 co"
85  +"m.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameC"
86  +"lassq\u0000~\u0000\u000fxq\u0000~\u0000\u0003q\u0000~\u0000\rpsr\u00002com.sun.msv.grammar.Expression$AnyS"
87  +"tringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\f\u0001q\u0000~\u0000\u0019sr\u0000 com.sun.msv."
88  +"grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameC"
89  +"lass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$EpsilonE"
90  +"xpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001aq\u0000~\u0000\u001fsr\u0000#com.sun.msv.grammar."
91  +"SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L"
92  +"\u0000\fnamespaceURIq\u0000~\u0000!xq\u0000~\u0000\u001ct\u00003org.jdtaus.mojo.resource.model.D"
93  +"ocumentationElementt\u0000+http://java.sun.com/jaxb/xjc/dummy-ele"
94  +"mentssq\u0000~\u0000\u000eq\u0000~\u0000\rp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000epp\u0000sq\u0000~\u0000\tppsq\u0000~\u0000\u0013q\u0000~\u0000\rpsq\u0000~\u0000"
95  +"\u0016q\u0000~\u0000\rpq\u0000~\u0000\u0019q\u0000~\u0000\u001dq\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000$org.jdtaus.mojo.resource.mode"
96  +"l.Textsq\u0000~\u0000$sq\u0000~\u0000\tppsq\u0000~\u0000\u0016q\u0000~\u0000\rpsr\u0000\u001bcom.sun.msv.grammar.Data"
97  +"Exp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exce"
98  +"ptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"co"
99  +"m.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.d"
100 +"atatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.data"
101 +"type.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd"
102 +".XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000!L\u0000\btypeNameq\u0000~"
103 +"\u0000!L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProces"
104 +"sor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun"
105 +".msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000"
106 +",com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr"
107 +"\u00000com.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
108 +"\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalN"
109 +"ameq\u0000~\u0000!L\u0000\fnamespaceURIq\u0000~\u0000!xpq\u0000~\u0000:q\u0000~\u00009sq\u0000~\u0000 t\u0000\u0004typet\u0000)http"
110 +"://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\rdocumenta"
111 +"tiont\u0000&http://jdtaus.org/core/model/containerq\u0000~\u0000\u001fsq\u0000~\u0000\tppsq"
112 +"\u0000~\u0000\u0016q\u0000~\u0000\rpsq\u0000~\u0000/ppsr\u0000\'com.sun.msv.datatype.xsd.MaxLengthFace"
113 +"t\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\tmaxLengthxr\u00009com.sun.msv.datatype.xsd.DataTyp"
114 +"eWithValueConstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype"
115 +".xsd.DataTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValue"
116 +"CheckFlagL\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeI"
117 +"mpl;L\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteType"
118 +";L\u0000\tfacetNameq\u0000~\u0000!xq\u0000~\u00006q\u0000~\u0000Gt\u0000\u0007Versionsr\u00005com.sun.msv.datat"
119 +"ype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000<\u0000\u0000sr\u0000#c"
120 +"om.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysVali"
121 +"dxq\u0000~\u00004q\u0000~\u00009t\u0000\u0006stringq\u0000~\u0000S\u0001q\u0000~\u0000Ut\u0000\tmaxLength\u0000\u0000\u0000dq\u0000~\u0000?sq\u0000~\u0000@q"
122 +"\u0000~\u0000Qq\u0000~\u0000Gsq\u0000~\u0000 t\u0000\fmodelVersionq\u0000~\u0000Gq\u0000~\u0000\u001fsq\u0000~\u0000\u0016ppsq\u0000~\u0000/ppsr\u0000%"
123 +"com.sun.msv.datatype.xsd.PatternFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001[\u0000\bpatternst"
124 +"\u0000\u0013[Ljava/lang/String;xr\u0000;com.sun.msv.datatype.xsd.DataTypeWi"
125 +"thLexicalConstraintFacetT\u0090\u001c>\u001azb\u00ea\u0002\u0000\u0000xq\u0000~\u0000Mq\u0000~\u0000Gt\u0000\nIdentifierq"
126 +"\u0000~\u0000=\u0000\u0000sr\u0000(com.sun.msv.datatype.xsd.WhiteSpaceFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
127 +"\u0000xq\u0000~\u0000Mq\u0000~\u0000Gq\u0000~\u0000aq\u0000~\u0000=\u0000\u0000q\u0000~\u0000Uq\u0000~\u0000Ut\u0000\nwhiteSpaceq\u0000~\u0000Ut\u0000\u0007patte"
128 +"rnur\u0000\u0013[Ljava.lang.String;\u00ad\u00d2V\u00e7\u00e9\u001d{G\u0002\u0000\u0000xp\u0000\u0000\u0000\u0001t\u0000\u0007\\p{L}.*q\u0000~\u0000?sq\u0000"
129 +"~\u0000@q\u0000~\u0000aq\u0000~\u0000Gsq\u0000~\u0000 t\u0000\nidentifierq\u0000~\u0000Gsq\u0000~\u0000\tppsq\u0000~\u0000\u0016q\u0000~\u0000\rpq\u0000~"
130 +"\u0000Jsq\u0000~\u0000 t\u0000\u0007versionq\u0000~\u0000Gq\u0000~\u0000\u001fsq\u0000~\u0000\tppsq\u0000~\u0000\u0016q\u0000~\u0000\rpq\u0000~\u0000\\sq\u0000~\u0000 t"
131 +"\u0000\u0012implementationNameq\u0000~\u0000Gq\u0000~\u0000\u001fsr\u0000\"com.sun.msv.grammar.Expres"
132 +"sionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Expres"
133 +"sionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool"
134 +"$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lc"
135 +"om/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u000f\u0001pq\u0000~\u0000\u0012q\u0000~\u0000(q\u0000~\u0000-q\u0000~"
136 +"\u0000\u000bq\u0000~\u0000\bq\u0000~\u0000lq\u0000~\u0000\u0015q\u0000~\u0000)q\u0000~\u0000Hq\u0000~\u0000\u0007q\u0000~\u0000\nq\u0000~\u0000&q\u0000~\u0000\u0006q\u0000~\u0000\u0005q\u0000~\u0000px"));
137         }
138         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
139     }
140 
141     public class Unmarshaller
142         extends org.jdtaus.mojo.resource.model.impl.runtime.AbstractUnmarshallingEventHandlerImpl
143     {
144 
145 
146         public Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
147             super(context, "-----");
148         }
149 
150         protected Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context, int startState) {
151             this(context);
152             state = startState;
153         }
154 
155         public java.lang.Object owner() {
156             return org.jdtaus.mojo.resource.model.impl.ImplementationReferenceImpl.this;
157         }
158 
159         public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
160             throws org.xml.sax.SAXException
161         {
162             int attIdx;
163             outer:
164             while (true) {
165                 switch (state) {
166                     case  3 :
167                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "identifier");
168                         if (attIdx >= 0) {
169                             context.consumeAttribute(attIdx);
170                             context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
171                             return ;
172                         }
173                         break;
174                     case  4 :
175                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
176                         return ;
177                     case  0 :
178                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "implementationName");
179                         if (attIdx >= 0) {
180                             final java.lang.String v = context.eatAttribute(attIdx);
181                             state = 3;
182                             eatText1(v);
183                             continue outer;
184                         }
185                         state = 3;
186                         continue outer;
187                 }
188                 super.enterElement(___uri, ___local, ___qname, __atts);
189                 break;
190             }
191         }
192 
193         private void eatText1(final java.lang.String value)
194             throws org.xml.sax.SAXException
195         {
196             try {
197                 _ImplementationName = com.sun.xml.bind.WhiteSpaceProcessor.collapse(value);
198             } catch (java.lang.Exception e) {
199                 handleParseConversionException(e);
200             }
201         }
202 
203         public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
204             throws org.xml.sax.SAXException
205         {
206             int attIdx;
207             outer:
208             while (true) {
209                 switch (state) {
210                     case  3 :
211                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "identifier");
212                         if (attIdx >= 0) {
213                             context.consumeAttribute(attIdx);
214                             context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
215                             return ;
216                         }
217                         break;
218                     case  4 :
219                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
220                         return ;
221                     case  0 :
222                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "implementationName");
223                         if (attIdx >= 0) {
224                             final java.lang.String v = context.eatAttribute(attIdx);
225                             state = 3;
226                             eatText1(v);
227                             continue outer;
228                         }
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 ___uri, java.lang.String ___local, java.lang.String ___qname)
238             throws org.xml.sax.SAXException
239         {
240             int attIdx;
241             outer:
242             while (true) {
243                 switch (state) {
244                     case  3 :
245                         if (("identifier" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
246                             spawnHandlerFromEnterAttribute((((org.jdtaus.mojo.resource.model.impl.SpecificationReferenceImpl)org.jdtaus.mojo.resource.model.impl.ImplementationReferenceImpl.this).new Unmarshaller(context)), 4, ___uri, ___local, ___qname);
247                             return ;
248                         }
249                         break;
250                     case  4 :
251                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
252                         return ;
253                     case  0 :
254                         if (("implementationName" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
255                             state = 1;
256                             return ;
257                         }
258                         state = 3;
259                         continue outer;
260                 }
261                 super.enterAttribute(___uri, ___local, ___qname);
262                 break;
263             }
264         }
265 
266         public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
267             throws org.xml.sax.SAXException
268         {
269             int attIdx;
270             outer:
271             while (true) {
272                 switch (state) {
273                     case  3 :
274                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "identifier");
275                         if (attIdx >= 0) {
276                             context.consumeAttribute(attIdx);
277                             context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
278                             return ;
279                         }
280                         break;
281                     case  4 :
282                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
283                         return ;
284                     case  2 :
285                         if (("implementationName" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
286                             state = 3;
287                             return ;
288                         }
289                         break;
290                     case  0 :
291                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "implementationName");
292                         if (attIdx >= 0) {
293                             final java.lang.String v = context.eatAttribute(attIdx);
294                             state = 3;
295                             eatText1(v);
296                             continue outer;
297                         }
298                         state = 3;
299                         continue outer;
300                 }
301                 super.leaveAttribute(___uri, ___local, ___qname);
302                 break;
303             }
304         }
305 
306         public void handleText(final java.lang.String value)
307             throws org.xml.sax.SAXException
308         {
309             int attIdx;
310             outer:
311             while (true) {
312                 try {
313                     switch (state) {
314                         case  3 :
315                             attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "identifier");
316                             if (attIdx >= 0) {
317                                 context.consumeAttribute(attIdx);
318                                 context.getCurrentHandler().text(value);
319                                 return ;
320                             }
321                             break;
322                         case  1 :
323                             state = 2;
324                             eatText1(value);
325                             return ;
326                         case  4 :
327                             revertToParentFromText(value);
328                             return ;
329                         case  0 :
330                             attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "implementationName");
331                             if (attIdx >= 0) {
332                                 final java.lang.String v = context.eatAttribute(attIdx);
333                                 state = 3;
334                                 eatText1(v);
335                                 continue outer;
336                             }
337                             state = 3;
338                             continue outer;
339                     }
340                 } catch (java.lang.RuntimeException e) {
341                     handleUnexpectedTextException(value, e);
342                 }
343                 break;
344             }
345         }
346 
347     }
348 
349 }