View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.3-b18-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: 2004.12.16 at 07:09:42 EST 
6   //
7   
8   
9   package net.sf.jour.config.impl;
10  
11  public class TypedefImpl implements net.sf.jour.config.Typedef, com.sun.xml.bind.RIElement, com.sun.xml.bind.JAXBObject, net.sf.jour.config.impl.runtime.UnmarshallableObject, net.sf.jour.config.impl.runtime.XMLSerializable, net.sf.jour.config.impl.runtime.ValidatableObject
12  {
13  
14      protected java.lang.String _Value;
15      public final static java.lang.Class version = (net.sf.jour.config.impl.JAXBVersion.class);
16      private static com.sun.msv.grammar.Grammar schemaFragment;
17  
18      public TypedefImpl() {
19      }
20  
21      public TypedefImpl(java.lang.String value) {
22          _Value = value;
23      }
24  
25      private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
26          return (net.sf.jour.config.Typedef.class);
27      }
28  
29      public java.lang.String ____jaxb_ri____getNamespaceURI() {
30          return "";
31      }
32  
33      public java.lang.String ____jaxb_ri____getLocalName() {
34          return "typedef";
35      }
36  
37      public java.lang.String getValue() {
38          return _Value;
39      }
40  
41      public void setValue(java.lang.String value) {
42          _Value = value;
43      }
44  
45      public net.sf.jour.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(net.sf.jour.config.impl.runtime.UnmarshallingContext context) {
46          return new net.sf.jour.config.impl.TypedefImpl.Unmarshaller(context);
47      }
48  
49      public void serializeBody(net.sf.jour.config.impl.runtime.XMLSerializer context)
50          throws org.xml.sax.SAXException
51      {
52          context.startElement("", "typedef");
53          context.endNamespaceDecls();
54          context.endAttributes();
55          try {
56              context.text(((java.lang.String) _Value), "Value");
57          } catch (java.lang.Exception e) {
58              net.sf.jour.config.impl.runtime.Util.handlePrintConversionException(this, e, context);
59          }
60          context.endElement();
61      }
62  
63      public void serializeAttributes(net.sf.jour.config.impl.runtime.XMLSerializer context)
64          throws org.xml.sax.SAXException
65      {
66      }
67  
68      public void serializeURIs(net.sf.jour.config.impl.runtime.XMLSerializer context)
69          throws org.xml.sax.SAXException
70      {
71      }
72  
73      public java.lang.Class getPrimaryInterface() {
74          return (net.sf.jour.config.Typedef.class);
75      }
76  
77      public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
78          if (schemaFragment == null) {
79              schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
80   "\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
81  +"\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
82  +"grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
83  +"\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
84  +"msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
85  +"ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
86  +"mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
87  +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.g"
88  +"rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat"
89  +"ype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000"
90  +"~\u0000\u0004ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\ris"
91  +"AlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000"
92  +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
93  +"xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnam"
94  +"espaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0012L\u0000\nwhiteSpacet"
95  +"\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://"
96  +"www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.datatype.x"
97  +"sd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.da"
98  +"tatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv."
99  +"grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bc"
100 +"om.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnam"
101 +"espaceURIq\u0000~\u0000\u0012xpq\u0000~\u0000\u0016q\u0000~\u0000\u0015sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000"
102 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000"
103 +"\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean"
104 +"\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\nppsr\u0000\"com.sun.msv.datatype.xsd."
105 +"QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000fq\u0000~\u0000\u0015t\u0000\u0005QNamesr\u00005com.sun.msv.datat"
106 +"ype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0018q\u0000~\u0000\u001bsq"
107 +"\u0000~\u0000\u001cq\u0000~\u0000\'q\u0000~\u0000\u0015sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
108 +"\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnamespaceURIq\u0000~\u0000\u0012xr\u0000\u001dcom.sun.msv.gra"
109 +"mmar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/"
110 +"XMLSchema-instancesr\u00000com.sun.msv.grammar.Expression$Epsilon"
111 +"Expression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\"\u0001psq\u0000~\u0000+t\u0000\u0007typedeft\u0000\u0000sr\u0000\"co"
112 +"m.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lco"
113 +"m/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.ms"
114 +"v.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstr"
115 +"eamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp"
116 +"\u0000\u0000\u0000\u0002\u0001pq\u0000~\u0000\tq\u0000~\u0000\u001fx"));
117         }
118         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
119     }
120 
121     public class Unmarshaller
122         extends net.sf.jour.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl
123     {
124 
125 
126         public Unmarshaller(net.sf.jour.config.impl.runtime.UnmarshallingContext context) {
127             super(context, "----");
128         }
129 
130         protected Unmarshaller(net.sf.jour.config.impl.runtime.UnmarshallingContext context, int startState) {
131             this(context);
132             state = startState;
133         }
134 
135         public java.lang.Object owner() {
136             return net.sf.jour.config.impl.TypedefImpl.this;
137         }
138 
139         public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
140             throws org.xml.sax.SAXException
141         {
142             int attIdx;
143             outer:
144             while (true) {
145                 switch (state) {
146                     case  3 :
147                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
148                         return ;
149                     case  0 :
150                         if (("typedef" == ___local)&&("" == ___uri)) {
151                             context.pushAttributes(__atts, true);
152                             state = 1;
153                             return ;
154                         }
155                         break;
156                 }
157                 super.enterElement(___uri, ___local, ___qname, __atts);
158                 break;
159             }
160         }
161 
162         public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
163             throws org.xml.sax.SAXException
164         {
165             int attIdx;
166             outer:
167             while (true) {
168                 switch (state) {
169                     case  3 :
170                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
171                         return ;
172                     case  2 :
173                         if (("typedef" == ___local)&&("" == ___uri)) {
174                             context.popAttributes();
175                             state = 3;
176                             return ;
177                         }
178                         break;
179                 }
180                 super.leaveElement(___uri, ___local, ___qname);
181                 break;
182             }
183         }
184 
185         public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
186             throws org.xml.sax.SAXException
187         {
188             int attIdx;
189             outer:
190             while (true) {
191                 switch (state) {
192                     case  3 :
193                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
194                         return ;
195                 }
196                 super.enterAttribute(___uri, ___local, ___qname);
197                 break;
198             }
199         }
200 
201         public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
202             throws org.xml.sax.SAXException
203         {
204             int attIdx;
205             outer:
206             while (true) {
207                 switch (state) {
208                     case  3 :
209                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
210                         return ;
211                 }
212                 super.leaveAttribute(___uri, ___local, ___qname);
213                 break;
214             }
215         }
216 
217         public void handleText(final java.lang.String value)
218             throws org.xml.sax.SAXException
219         {
220             int attIdx;
221             outer:
222             while (true) {
223                 try {
224                     switch (state) {
225                         case  3 :
226                             revertToParentFromText(value);
227                             return ;
228                         case  1 :
229                             eatText1(value);
230                             state = 2;
231                             return ;
232                     }
233                 } catch (java.lang.RuntimeException e) {
234                     handleUnexpectedTextException(value, e);
235                 }
236                 break;
237             }
238         }
239 
240         private void eatText1(final java.lang.String value)
241             throws org.xml.sax.SAXException
242         {
243             try {
244                 _Value = value;
245             } catch (java.lang.Exception e) {
246                 handleParseConversionException(e);
247             }
248         }
249 
250     }
251 
252 }