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 TextElementImpl
012    extends org.jdtaus.mojo.resource.model.impl.TextImpl
013    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
014{
015
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.TextElement.class);
021    }
022
023    public java.lang.String ____jaxb_ri____getNamespaceURI() {
024        return "http://jdtaus.org/core/model/container";
025    }
026
027    public java.lang.String ____jaxb_ri____getLocalName() {
028        return "text";
029    }
030
031    public org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingEventHandler createUnmarshaller(org.jdtaus.mojo.resource.model.impl.runtime.UnmarshallingContext context) {
032        return new org.jdtaus.mojo.resource.model.impl.TextElementImpl.Unmarshaller(context);
033    }
034
035    public void serializeBody(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
036        throws org.xml.sax.SAXException
037    {
038        context.startElement("http://jdtaus.org/core/model/container", "text");
039        super.serializeURIs(context);
040        context.endNamespaceDecls();
041        super.serializeAttributes(context);
042        context.endAttributes();
043        super.serializeBody(context);
044        context.endElement();
045    }
046
047    public void serializeAttributes(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
048        throws org.xml.sax.SAXException
049    {
050    }
051
052    public void serializeURIs(org.jdtaus.mojo.resource.model.impl.runtime.XMLSerializer context)
053        throws org.xml.sax.SAXException
054    {
055    }
056
057    public java.lang.Class getPrimaryInterface() {
058        return (org.jdtaus.mojo.resource.model.TextElement.class);
059    }
060
061    public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
062        if (schemaFragment == null) {
063            schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
064 "\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
065+"\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
066+"grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
067+"\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
068+"msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
069+"ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
070+"mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
071+"\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"
072+"un.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/dataty"
073+"pe/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/String"
074+"Pair;xq\u0000~\u0000\u0004ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
075+"\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomi"
076+"cType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000"
077+"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
078+"\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0013L\u0000\nwhi"
079+"teSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000"
080+" http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.da"
081+"tatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.su"
082+"n.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com."
083+"sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000"
084+"\u0004ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~"
085+"\u0000\u0013L\u0000\fnamespaceURIq\u0000~\u0000\u0013xpq\u0000~\u0000\u0017q\u0000~\u0000\u0016sr\u0000 com.sun.msv.grammar.At"
086+"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"
087+"~\u0000\u000bppsr\u0000%com.sun.msv.datatype.xsd.LanguageType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000"
088+"\"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"
089+"languagesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Col"
090+"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."
091+"grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0013L\u0000\fnamesp"
092+"aceURIq\u0000~\u0000\u0013xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\b"
093+"languaget\u0000&http://jdtaus.org/core/model/containersr\u0000\u001dcom.sun"
094+".msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsq\u0000~\u0000\u001fsr\u0000\u0011java.lang"
095+".Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u000bppsr\u0000\"com.sun.msv.datat"
096+"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"
097+"~\u0000\u001dq\u0000~\u00006q\u0000~\u0000\u0016sq\u0000~\u0000)t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchem"
098+"a-instancesr\u00000com.sun.msv.grammar.Expression$EpsilonExpressi"
099+"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}