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 TextImpl implements org.jdtaus.mojo.resource.model.Text, 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 java.lang.String _Value;
15      protected java.lang.String _Language;
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.Text.class);
21      }
22  
23      public java.lang.String getValue() {
24          return _Value;
25      }
26  
27      public void setValue(java.lang.String value) {
28          _Value = value;
29      }
30  
31      public java.lang.String getLanguage() {
32          return _Language;
33      }
34  
35      public void setLanguage(java.lang.String value) {
36          _Language = 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.TextImpl.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          try {
47              context.text(((java.lang.String) _Value), "Value");
48          } catch (java.lang.Exception e) {
49              org.jdtaus.mojo.resource.model.impl.runtime.Util.handlePrintConversionException(this, e, context);
50          }
51      }
52  
53      public void serializeAttributes(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
54          throws org.xml.sax.SAXException
55      {
56          context.startAttribute("http://jdtaus.org/core/model/container", "language");
57          try {
58              context.text(((java.lang.String) _Language), "Language");
59          } catch (java.lang.Exception e) {
60              org.jdtaus.mojo.resource.model.impl.runtime.Util.handlePrintConversionException(this, e, context);
61          }
62          context.endAttribute();
63      }
64  
65      public void serializeURIs(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
66          throws org.xml.sax.SAXException
67      {
68          context.getNamespaceContext().declareNamespace("http://jdtaus.org/core/model/container", null, true);
69      }
70  
71      public java.lang.Class getPrimaryInterface() {
72          return (org.jdtaus.mojo.resource.model.Text.class);
73      }
74  
75      public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
76          if (schemaFragment == null) {
77              schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
78   "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
79  +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
80  +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
81  +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
82  +"expandedExpq\u0000~\u0000\u0002xpppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
83  +"\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004na"
84  +"met\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000#com.sun.msv.da"
85  +"tatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun."
86  +"msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv"
87  +".datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatyp"
88  +"e.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/"
89  +"String;L\u0000\btypeNameq\u0000~\u0000\u000eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype"
90  +"/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSche"
91  +"mat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$"
92  +"Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpacePr"
93  +"ocessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$Null"
94  +"SetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringP"
95  +"air\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000expq\u0000~\u0000\u0012q\u0000"
96  +"~\u0000\u0011sr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000"
97  +"\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xq\u0000~\u0000\u0003ppsq\u0000~\u0000"
98  +"\u0006ppsr\u0000%com.sun.msv.datatype.xsd.LanguageType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\"c"
99  +"om.sun.msv.datatype.xsd.TokenType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\nq\u0000~\u0000\u0011t\u0000\bla"
100 +"nguagesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Colla"
101 +"pse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0014\u0000q\u0000~\u0000\u0017sq\u0000~\u0000\u0018q\u0000~\u0000!q\u0000~\u0000\u0011sr\u0000#com.sun.msv.gr"
102 +"ammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespac"
103 +"eURIq\u0000~\u0000\u000exr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\bla"
104 +"nguaget\u0000&http://jdtaus.org/core/model/containersr\u0000\"com.sun.m"
105 +"sv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/m"
106 +"sv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.gramm"
107 +"ar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVers"
108 +"ionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0001\u0001pq"
109 +"\u0000~\u0000\u0005x"));
110         }
111         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
112     }
113 
114     public class Unmarshaller
115         extends org.jdtaus.mojo.resource.model.impl.runtime.AbstractUnmarshallingEventHandlerImpl
116     {
117 
118 
119         public Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
120             super(context, "-----");
121         }
122 
123         protected Unmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context, int startState) {
124             this(context);
125             state = startState;
126         }
127 
128         public java.lang.Object owner() {
129             return org.jdtaus.mojo.resource.model.impl.TextImpl.this;
130         }
131 
132         public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
133             throws org.xml.sax.SAXException
134         {
135             int attIdx;
136             outer:
137             while (true) {
138                 switch (state) {
139                     case  0 :
140                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
141                         if (attIdx >= 0) {
142                             final java.lang.String v = context.eatAttribute(attIdx);
143                             state = 3;
144                             eatText1(v);
145                             continue outer;
146                         }
147                         break;
148                     case  4 :
149                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
150                         return ;
151                 }
152                 super.enterElement(___uri, ___local, ___qname, __atts);
153                 break;
154             }
155         }
156 
157         private void eatText1(final java.lang.String value)
158             throws org.xml.sax.SAXException
159         {
160             try {
161                 _Language = com.sun.xml.bind.WhiteSpaceProcessor.collapse(value);
162             } catch (java.lang.Exception e) {
163                 handleParseConversionException(e);
164             }
165         }
166 
167         public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
168             throws org.xml.sax.SAXException
169         {
170             int attIdx;
171             outer:
172             while (true) {
173                 switch (state) {
174                     case  0 :
175                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
176                         if (attIdx >= 0) {
177                             final java.lang.String v = context.eatAttribute(attIdx);
178                             state = 3;
179                             eatText1(v);
180                             continue outer;
181                         }
182                         break;
183                     case  4 :
184                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
185                         return ;
186                 }
187                 super.leaveElement(___uri, ___local, ___qname);
188                 break;
189             }
190         }
191 
192         public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
193             throws org.xml.sax.SAXException
194         {
195             int attIdx;
196             outer:
197             while (true) {
198                 switch (state) {
199                     case  0 :
200                         if (("language" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
201                             state = 1;
202                             return ;
203                         }
204                         break;
205                     case  4 :
206                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
207                         return ;
208                 }
209                 super.enterAttribute(___uri, ___local, ___qname);
210                 break;
211             }
212         }
213 
214         public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
215             throws org.xml.sax.SAXException
216         {
217             int attIdx;
218             outer:
219             while (true) {
220                 switch (state) {
221                     case  2 :
222                         if (("language" == ___local)&&("http://jdtaus.org/core/model/container" == ___uri)) {
223                             state = 3;
224                             return ;
225                         }
226                         break;
227                     case  0 :
228                         attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
229                         if (attIdx >= 0) {
230                             final java.lang.String v = context.eatAttribute(attIdx);
231                             state = 3;
232                             eatText1(v);
233                             continue outer;
234                         }
235                         break;
236                     case  4 :
237                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
238                         return ;
239                 }
240                 super.leaveAttribute(___uri, ___local, ___qname);
241                 break;
242             }
243         }
244 
245         public void handleText(final java.lang.String value)
246             throws org.xml.sax.SAXException
247         {
248             int attIdx;
249             outer:
250             while (true) {
251                 try {
252                     switch (state) {
253                         case  3 :
254                             state = 4;
255                             eatText2(value);
256                             return ;
257                         case  1 :
258                             state = 2;
259                             eatText1(value);
260                             return ;
261                         case  0 :
262                             attIdx = context.getAttribute("http://jdtaus.org/core/model/container", "language");
263                             if (attIdx >= 0) {
264                                 final java.lang.String v = context.eatAttribute(attIdx);
265                                 state = 3;
266                                 eatText1(v);
267                                 continue outer;
268                             }
269                             break;
270                         case  4 :
271                             revertToParentFromText(value);
272                             return ;
273                     }
274                 } catch (java.lang.RuntimeException e) {
275                     handleUnexpectedTextException(value, e);
276                 }
277                 break;
278             }
279         }
280 
281         private void eatText2(final java.lang.String value)
282             throws org.xml.sax.SAXException
283         {
284             try {
285                 _Value = value;
286             } catch (java.lang.Exception e) {
287                 handleParseConversionException(e);
288             }
289         }
290 
291     }
292 
293 }