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 TextElementImpl
12      extends org.jdtaus.mojo.resource.model.impl.TextImpl
13      implements org.jdtaus.mojo.resource.model.TextElement, com.sun.xml.bind.RIElement, 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      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.TextElement.class);
21      }
22  
23      public java.lang.String ____jaxb_ri____getNamespaceURI() {
24          return "http://jdtaus.org/core/model/container";
25      }
26  
27      public java.lang.String ____jaxb_ri____getLocalName() {
28          return "text";
29      }
30  
31      public org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingEventHandler createUnmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
32          return new org.jdtaus.mojo.resource.model.impl.TextElementImpl.Unmarshaller(context);
33      }
34  
35      public void serializeBody(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
36          throws org.xml.sax.SAXException
37      {
38          context.startElement("http://jdtaus.org/core/model/container", "text");
39          super.serializeURIs(context);
40          context.endNamespaceDecls();
41          super.serializeAttributes(context);
42          context.endAttributes();
43          super.serializeBody(context);
44          context.endElement();
45      }
46  
47      public void serializeAttributes(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
48          throws org.xml.sax.SAXException
49      {
50      }
51  
52      public void serializeURIs(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
53          throws org.xml.sax.SAXException
54      {
55      }
56  
57      public java.lang.Class getPrimaryInterface() {
58          return (org.jdtaus.mojo.resource.model.TextElement.class);
59      }
60  
61      public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
62          if (schemaFragment == null) {
63              schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
64   "\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
65  +"\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
66  +"grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
67  +"\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
68  +"msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
69  +"ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
70  +"mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
71  +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsq\u0000~\u0000\u0007ppsr\u0000\u001bcom.s"
72  +"un.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/dataty"
73  +"pe/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/String"
74  +"Pair;xq\u0000~\u0000\u0004ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
75  +"\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomi"
76  +"cType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000"
77  +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
78  +"\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0013L\u0000\nwhi"
79  +"teSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000"
80  +" http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.da"
81  +"tatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.su"
82  +"n.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com."
83  +"sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000"
84  +"\u0004ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~"
85  +"\u0000\u0013L\u0000\fnamespaceURIq\u0000~\u0000\u0013xpq\u0000~\u0000\u0017q\u0000~\u0000\u0016sr\u0000 com.sun.msv.grammar.At"
86  +"tributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004ppsq\u0000"
87  +"~\u0000\u000bppsr\u0000%com.sun.msv.datatype.xsd.LanguageType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000"
88  +"\"com.sun.msv.datatype.xsd.TokenType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000fq\u0000~\u0000\u0016t\u0000\b"
89  +"languagesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Col"
90  +"lapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0019\u0000q\u0000~\u0000\u001csq\u0000~\u0000\u001dq\u0000~\u0000%q\u0000~\u0000\u0016sr\u0000#com.sun.msv."
91  +"grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0013L\u0000\fnamesp"
92  +"aceURIq\u0000~\u0000\u0013xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\b"
93  +"languaget\u0000&http://jdtaus.org/core/model/containersr\u0000\u001dcom.sun"
94  +".msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsq\u0000~\u0000\u001fsr\u0000\u0011java.lang"
95  +".Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u000bppsr\u0000\"com.sun.msv.datat"
96  +"ype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0010q\u0000~\u0000\u0016t\u0000\u0005QNameq\u0000~\u0000\'q\u0000~\u0000\u001csq\u0000"
97  +"~\u0000\u001dq\u0000~\u00006q\u0000~\u0000\u0016sq\u0000~\u0000)t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchem"
98  +"a-instancesr\u00000com.sun.msv.grammar.Expression$EpsilonExpressi"
99  +"on\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u00001\u0001q\u0000~\u0000<sq\u0000~\u0000)t\u0000\u0004textq\u0000~\u0000-sr\u0000\"com.sun"
100 +".msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun"
101 +"/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.gra"
102 +"mmar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVe"
103 +"rsionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0003\u0001"
104 +"pq\u0000~\u0000/q\u0000~\u0000\tq\u0000~\u0000\nx"));
105         }
106         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
107     }
108 
109     public class Unmarshaller
110         extends org.jdtaus.mojo.resource.model.impl.runtime.AbstractUnmarshallingEventHandlerImpl
111     {
112 
113 
114         public Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
115             super(context, "----");
116         }
117 
118         protected Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context, int startState) {
119             this(context);
120             state = startState;
121         }
122 
123         public java.lang.Object owner() {
124             return org.jdtaus.mojo.resource.model.impl.TextElementImpl.this;
125         }
126 
127         public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
128             throws org.xml.sax.SAXException
129         {
130             int attIdx;
131             outer:
132             while (true) {
133                 switch (state) {
134                     case  3 :
135                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
136                         return ;
137                     case  1 :
138                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
139                         if (attIdx >= 0) {
140                             context.consumeAttribute(attIdx);
141                             context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
142                             return ;
143                         }
144                         break;
145                     case  0 :
146                         if (("text" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
147                             context.pushAttributes(__atts, true);
148                             state = 1;
149                             return ;
150                         }
151                         break;
152                 }
153                 super.enterElement(___uri, ___local, ___qname, __atts);
154                 break;
155             }
156         }
157 
158         public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
159             throws org.xml.sax.SAXException
160         {
161             int attIdx;
162             outer:
163             while (true) {
164                 switch (state) {
165                     case  3 :
166                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
167                         return ;
168                     case  2 :
169                         if (("text" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
170                             context.popAttributes();
171                             state = 3;
172                             return ;
173                         }
174                         break;
175                     case  1 :
176                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
177                         if (attIdx >= 0) {
178                             context.consumeAttribute(attIdx);
179                             context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
180                             return ;
181                         }
182                         break;
183                 }
184                 super.leaveElement(___uri, ___local, ___qname);
185                 break;
186             }
187         }
188 
189         public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
190             throws org.xml.sax.SAXException
191         {
192             int attIdx;
193             outer:
194             while (true) {
195                 switch (state) {
196                     case  3 :
197                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
198                         return ;
199                     case  1 :
200                         if (("language" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
201                             spawnHandlerFromEnterAttribute((((org.jdtaus.mojo.resource.model.impl.TextImpl)org.jdtaus.mojo.resource.model.impl.TextElementImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
202                             return ;
203                         }
204                         break;
205                 }
206                 super.enterAttribute(___uri, ___local, ___qname);
207                 break;
208             }
209         }
210 
211         public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
212             throws org.xml.sax.SAXException
213         {
214             int attIdx;
215             outer:
216             while (true) {
217                 switch (state) {
218                     case  3 :
219                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
220                         return ;
221                     case  1 :
222                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
223                         if (attIdx >= 0) {
224                             context.consumeAttribute(attIdx);
225                             context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
226                             return ;
227                         }
228                         break;
229                 }
230                 super.leaveAttribute(___uri, ___local, ___qname);
231                 break;
232             }
233         }
234 
235         public void handleText(final java.lang.String value)
236             throws org.xml.sax.SAXException
237         {
238             int attIdx;
239             outer:
240             while (true) {
241                 try {
242                     switch (state) {
243                         case  3 :
244                             revertToParentFromText(value);
245                             return ;
246                         case  1 :
247                             attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
248                             if (attIdx >= 0) {
249                                 context.consumeAttribute(attIdx);
250                                 context.getCurrentHandler().text(value);
251                                 return ;
252                             }
253                             break;
254                     }
255                 } catch (java.lang.RuntimeException e) {
256                     handleUnexpectedTextException(value, e);
257                 }
258                 break;
259             }
260         }
261 
262     }
263 
264 }