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:44 EST 
6   //
7   
8   
9   package net.sf.jour.rt.view.config.impl;
10  
11  public class TrimImpl
12      extends net.sf.jour.rt.view.config.impl.TrimTypeImpl
13      implements net.sf.jour.rt.view.config.Trim, com.sun.xml.bind.RIElement, com.sun.xml.bind.JAXBObject, net.sf.jour.rt.view.config.impl.runtime.UnmarshallableObject, net.sf.jour.rt.view.config.impl.runtime.XMLSerializable, net.sf.jour.rt.view.config.impl.runtime.ValidatableObject
14  {
15  
16      public final static java.lang.Class version = (net.sf.jour.rt.view.config.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 (net.sf.jour.rt.view.config.Trim.class);
21      }
22  
23      public java.lang.String ____jaxb_ri____getNamespaceURI() {
24          return "";
25      }
26  
27      public java.lang.String ____jaxb_ri____getLocalName() {
28          return "trim";
29      }
30  
31      public net.sf.jour.rt.view.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(net.sf.jour.rt.view.config.impl.runtime.UnmarshallingContext context) {
32          return new net.sf.jour.rt.view.config.impl.TrimImpl.Unmarshaller(context);
33      }
34  
35      public void serializeBody(net.sf.jour.rt.view.config.impl.runtime.XMLSerializer context)
36          throws org.xml.sax.SAXException
37      {
38          context.startElement("", "trim");
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(net.sf.jour.rt.view.config.impl.runtime.XMLSerializer context)
48          throws org.xml.sax.SAXException
49      {
50      }
51  
52      public void serializeURIs(net.sf.jour.rt.view.config.impl.runtime.XMLSerializer context)
53          throws org.xml.sax.SAXException
54      {
55      }
56  
57      public java.lang.Class getPrimaryInterface() {
58          return (net.sf.jour.rt.view.config.Trim.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 com.s"
72  +"un.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClas"
73  +"sq\u0000~\u0000\u0001xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002d"
74  +"tt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dL"
75  +"com/sun/msv/util/StringPair;xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5"
76  +"\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000"
77  +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.Builtin"
78  +"AtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteTy"
79  +"pe\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000"
80  +"\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0017L"
81  +"\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor"
82  +";xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.m"
83  +"sv.datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,c"
84  +"om.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u0000"
85  +"0com.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
86  +"xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNa"
87  +"meq\u0000~\u0000\u0017L\u0000\fnamespaceURIq\u0000~\u0000\u0017xpq\u0000~\u0000\u001bq\u0000~\u0000\u001asr\u0000#com.sun.msv.gramm"
88  +"ar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0017L\u0000\fnamespaceUR"
89  +"Iq\u0000~\u0000\u0017xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004namet"
90  +"\u0000\u0000sq\u0000~\u0000\u000bppq\u0000~\u0000\u0010sq\u0000~\u0000#t\u0000\u0005valueq\u0000~\u0000\'sr\u0000\u001dcom.sun.msv.grammar.Ch"
91  +"oiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsq\u0000~\u0000\u000bq\u0000~\u0000\u0012psq\u0000~\u0000\rppsr\u0000\"com.sun.ms"
92  +"v.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0014q\u0000~\u0000\u001at\u0000\u0005QNamesr\u00005co"
93  +"m.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
94  +"\u0000\u0000xq\u0000~\u0000\u001dq\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u00001q\u0000~\u0000\u001asq\u0000~\u0000#t\u0000\u0004typet\u0000)http://www.w3.o"
95  +"rg/2001/XMLSchema-instancesr\u00000com.sun.msv.grammar.Expression"
96  +"$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u0011\u0001psq\u0000~\u0000#t\u0000\u0004trimq\u0000~\u0000"
97  +"\'sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTabl"
98  +"et\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com"
99  +".sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005coun"
100 +"tB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/Expression"
101 +"Pool;xp\u0000\u0000\u0000\u0003\u0001pq\u0000~\u0000\tq\u0000~\u0000\nq\u0000~\u0000,x"));
102         }
103         return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
104     }
105 
106     public class Unmarshaller
107         extends net.sf.jour.rt.view.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl
108     {
109 
110 
111         public Unmarshaller(net.sf.jour.rt.view.config.impl.runtime.UnmarshallingContext context) {
112             super(context, "----");
113         }
114 
115         protected Unmarshaller(net.sf.jour.rt.view.config.impl.runtime.UnmarshallingContext context, int startState) {
116             this(context);
117             state = startState;
118         }
119 
120         public java.lang.Object owner() {
121             return net.sf.jour.rt.view.config.impl.TrimImpl.this;
122         }
123 
124         public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
125             throws org.xml.sax.SAXException
126         {
127             int attIdx;
128             outer:
129             while (true) {
130                 switch (state) {
131                     case  0 :
132                         if (("trim" == ___local)&&("" == ___uri)) {
133                             context.pushAttributes(__atts, false);
134                             state = 1;
135                             return ;
136                         }
137                         break;
138                     case  3 :
139                         revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
140                         return ;
141                     case  1 :
142                         attIdx = context.getAttribute("", "name");
143                         if (attIdx >= 0) {
144                             context.consumeAttribute(attIdx);
145                             context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
146                             return ;
147                         }
148                         break;
149                 }
150                 super.enterElement(___uri, ___local, ___qname, __atts);
151                 break;
152             }
153         }
154 
155         public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
156             throws org.xml.sax.SAXException
157         {
158             int attIdx;
159             outer:
160             while (true) {
161                 switch (state) {
162                     case  2 :
163                         if (("trim" == ___local)&&("" == ___uri)) {
164                             context.popAttributes();
165                             state = 3;
166                             return ;
167                         }
168                         break;
169                     case  3 :
170                         revertToParentFromLeaveElement(___uri, ___local, ___qname);
171                         return ;
172                     case  1 :
173                         attIdx = context.getAttribute("", "name");
174                         if (attIdx >= 0) {
175                             context.consumeAttribute(attIdx);
176                             context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
177                             return ;
178                         }
179                         break;
180                 }
181                 super.leaveElement(___uri, ___local, ___qname);
182                 break;
183             }
184         }
185 
186         public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
187             throws org.xml.sax.SAXException
188         {
189             int attIdx;
190             outer:
191             while (true) {
192                 switch (state) {
193                     case  3 :
194                         revertToParentFromEnterAttribute(___uri, ___local, ___qname);
195                         return ;
196                     case  1 :
197                         if (("name" == ___local)&&("" == ___uri)) {
198                             spawnHandlerFromEnterAttribute((((net.sf.jour.rt.view.config.impl.TrimTypeImpl)net.sf.jour.rt.view.config.impl.TrimImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
199                             return ;
200                         }
201                         break;
202                 }
203                 super.enterAttribute(___uri, ___local, ___qname);
204                 break;
205             }
206         }
207 
208         public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
209             throws org.xml.sax.SAXException
210         {
211             int attIdx;
212             outer:
213             while (true) {
214                 switch (state) {
215                     case  3 :
216                         revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
217                         return ;
218                     case  1 :
219                         attIdx = context.getAttribute("", "name");
220                         if (attIdx >= 0) {
221                             context.consumeAttribute(attIdx);
222                             context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
223                             return ;
224                         }
225                         break;
226                 }
227                 super.leaveAttribute(___uri, ___local, ___qname);
228                 break;
229             }
230         }
231 
232         public void handleText(final java.lang.String value)
233             throws org.xml.sax.SAXException
234         {
235             int attIdx;
236             outer:
237             while (true) {
238                 try {
239                     switch (state) {
240                         case  3 :
241                             revertToParentFromText(value);
242                             return ;
243                         case  1 :
244                             attIdx = context.getAttribute("", "name");
245                             if (attIdx >= 0) {
246                                 context.consumeAttribute(attIdx);
247                                 context.getCurrentHandler().text(value);
248                                 return ;
249                             }
250                             break;
251                     }
252                 } catch (java.lang.RuntimeException e) {
253                     handleUnexpectedTextException(value, e);
254                 }
255                 break;
256             }
257         }
258 
259     }
260 
261 }