001// 002// 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 003// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 004// Any modifications to this file will be lost upon recompilation of the source schema. 005// Generated on: 2012.10.03 at 04:27:47 AM CEST 006// 007 008 009package org.jdtaus.mojo.resource.model.impl; 010 011public 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 012{ 013 014 protected java.lang.String _Value; 015 protected java.lang.String _Language; 016 public final static java.lang.Class version = (org.jdtaus.mojo.resource.model.impl.JAXBVersion.class); 017 private static com.sun.msv.grammar.Grammar schemaFragment; 018 019 private final static java.lang.Class PRIMARY_INTERFACE_CLASS() { 020 return (org.jdtaus.mojo.resource.model.Text.class); 021 } 022 023 public java.lang.String getValue() { 024 return _Value; 025 } 026 027 public void setValue(java.lang.String value) { 028 _Value = value; 029 } 030 031 public java.lang.String getLanguage() { 032 return _Language; 033 } 034 035 public void setLanguage(java.lang.String value) { 036 _Language = value; 037 } 038 039 public org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingEventHandler createUnmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) { 040 return new org.jdtaus.mojo.resource.model.impl.TextImpl.Unmarshaller(context); 041 } 042 043 public void serializeBody(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context) 044 throws org.xml.sax.SAXException 045 { 046 try { 047 context.text(((java.lang.String) _Value), "Value"); 048 } catch (java.lang.Exception e) { 049 org.jdtaus.mojo.resource.model.impl.runtime.Util.handlePrintConversionException(this, e, context); 050 } 051 } 052 053 public void serializeAttributes(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context) 054 throws org.xml.sax.SAXException 055 { 056 context.startAttribute("http://jdtaus.org/core/model/container", "language"); 057 try { 058 context.text(((java.lang.String) _Language), "Language"); 059 } catch (java.lang.Exception e) { 060 org.jdtaus.mojo.resource.model.impl.runtime.Util.handlePrintConversionException(this, e, context); 061 } 062 context.endAttribute(); 063 } 064 065 public void serializeURIs(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context) 066 throws org.xml.sax.SAXException 067 { 068 context.getNamespaceContext().declareNamespace("http://jdtaus.org/core/model/container", null, true); 069 } 070 071 public java.lang.Class getPrimaryInterface() { 072 return (org.jdtaus.mojo.resource.model.Text.class); 073 } 074 075 public com.sun.msv.verifier.DocumentDeclaration createRawValidator() { 076 if (schemaFragment == null) { 077 schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize(( 078 "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su" 079+"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra" 080+"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi" 081+"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b" 082+"expandedExpq\u0000~\u0000\u0002xpppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002" 083+"\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004na" 084+"met\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000#com.sun.msv.da" 085+"tatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun." 086+"msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv" 087+".datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatyp" 088+"e.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/" 089+"String;L\u0000\btypeNameq\u0000~\u0000\u000eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype" 090+"/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSche" 091+"mat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$" 092+"Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpacePr" 093+"ocessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$Null" 094+"SetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringP" 095+"air\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000expq\u0000~\u0000\u0012q\u0000" 096+"~\u0000\u0011sr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000" 097+"\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xq\u0000~\u0000\u0003ppsq\u0000~\u0000" 098+"\u0006ppsr\u0000%com.sun.msv.datatype.xsd.LanguageType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\"c" 099+"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}