1
2
3
4
5
6
7
8
9 package net.sf.jour.rt.view.config.impl;
10
11 public class IncludeImpl
12 extends net.sf.jour.rt.view.config.impl.IncludeTypeImpl
13 implements net.sf.jour.rt.view.config.Include, 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.Include.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 "include";
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.IncludeImpl.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("", "include");
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.Include.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\u0007ppsq\u0000~\u0000\u0007pps"
72 +"r\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxn"
73 +"g/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/uti"
74 +"l/StringPair;xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuex"
75 +"p\u0000psr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAl"
76 +"waysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000"
77 +"\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr"
78 +"\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnames"
79 +"paceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0016L\u0000\nwhiteSpacet\u0000."
80 +"Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://ww"
81 +"w.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd"
82 +".WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.data"
83 +"type.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.gr"
84 +"ammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom"
85 +".sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0016L\u0000\fnames"
86 +"paceURIq\u0000~\u0000\u0016xpq\u0000~\u0000\u001aq\u0000~\u0000\u0019sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000"
87 +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
88 +"\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004q\u0000~\u0000\u0011psq\u0000~\u0000\fppsr\u0000$com.s"
89 +"un.msv.datatype.xsd.BooleanType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0013q\u0000~\u0000\u0019t\u0000\u0007bool"
90 +"eansr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse"
91 +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001cq\u0000~\u0000\u001fsq\u0000~\u0000 q\u0000~\u0000)q\u0000~\u0000\u0019sr\u0000#com.sun.msv.gramma"
92 +"r.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0016L\u0000\fnamespaceURI"
93 +"q\u0000~\u0000\u0016xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0007enable"
94 +"dt\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000"
95 +"\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u0010\u0001psq\u0000~\u0000\"ppsq\u0000~\u0000$q\u0000~\u0000\u0011pq\u0000~\u0000\u000fsq\u0000~\u0000-t\u0000\u0005names"
96 +"q\u0000~\u00001q\u0000~\u00003sq\u0000~\u0000\"ppsq\u0000~\u0000$q\u0000~\u0000\u0011psq\u0000~\u0000\fppsr\u0000\"com.sun.msv.dataty"
97 +"pe.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0013q\u0000~\u0000\u0019t\u0000\u0005QNameq\u0000~\u0000+q\u0000~\u0000\u001fsq\u0000~"
98 +"\u0000 q\u0000~\u0000>q\u0000~\u0000\u0019sq\u0000~\u0000-t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema"
99 +"-instanceq\u0000~\u00003sq\u0000~\u0000-t\u0000\u0007includeq\u0000~\u00001sr\u0000\"com.sun.msv.grammar.E"
100 +"xpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/E"
101 +"xpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expressio"
102 +"nPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parent"
103 +"t\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0006\u0001pq\u0000~\u0000\nq\u0000~\u0000\tq\u0000~"
104 +"\u0000\u000bq\u0000~\u00009q\u0000~\u00005q\u0000~\u0000#x"));
105 }
106 return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
107 }
108
109 public class Unmarshaller
110 extends net.sf.jour.rt.view.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl
111 {
112
113
114 public Unmarshaller(net.sf.jour.rt.view.config.impl.runtime.UnmarshallingContext context) {
115 super(context, "----");
116 }
117
118 protected Unmarshaller(net.sf.jour.rt.view.config.impl.runtime.UnmarshallingContext context, int startState) {
119 this(context);
120 state = startState;
121 }
122
123 public java.lang.Object owner() {
124 return net.sf.jour.rt.view.config.impl.IncludeImpl.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 0 :
135 if (("include" == ___local)&&("" == ___uri)) {
136 context.pushAttributes(__atts, true);
137 state = 1;
138 return ;
139 }
140 break;
141 case 1 :
142 attIdx = context.getAttribute("", "enabled");
143 if (attIdx >= 0) {
144 context.consumeAttribute(attIdx);
145 context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
146 return ;
147 }
148 attIdx = context.getAttribute("", "names");
149 if (attIdx >= 0) {
150 context.consumeAttribute(attIdx);
151 context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
152 return ;
153 }
154 break;
155 case 3 :
156 revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
157 return ;
158 }
159 super.enterElement(___uri, ___local, ___qname, __atts);
160 break;
161 }
162 }
163
164 public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
165 throws org.xml.sax.SAXException
166 {
167 int attIdx;
168 outer:
169 while (true) {
170 switch (state) {
171 case 2 :
172 if (("include" == ___local)&&("" == ___uri)) {
173 context.popAttributes();
174 state = 3;
175 return ;
176 }
177 break;
178 case 1 :
179 attIdx = context.getAttribute("", "enabled");
180 if (attIdx >= 0) {
181 context.consumeAttribute(attIdx);
182 context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
183 return ;
184 }
185 attIdx = context.getAttribute("", "names");
186 if (attIdx >= 0) {
187 context.consumeAttribute(attIdx);
188 context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
189 return ;
190 }
191 break;
192 case 3 :
193 revertToParentFromLeaveElement(___uri, ___local, ___qname);
194 return ;
195 }
196 super.leaveElement(___uri, ___local, ___qname);
197 break;
198 }
199 }
200
201 public void enterAttribute(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 1 :
209 if (("enabled" == ___local)&&("" == ___uri)) {
210 spawnHandlerFromEnterAttribute((((net.sf.jour.rt.view.config.impl.IncludeTypeImpl)net.sf.jour.rt.view.config.impl.IncludeImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
211 return ;
212 }
213 if (("names" == ___local)&&("" == ___uri)) {
214 spawnHandlerFromEnterAttribute((((net.sf.jour.rt.view.config.impl.IncludeTypeImpl)net.sf.jour.rt.view.config.impl.IncludeImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
215 return ;
216 }
217 break;
218 case 3 :
219 revertToParentFromEnterAttribute(___uri, ___local, ___qname);
220 return ;
221 }
222 super.enterAttribute(___uri, ___local, ___qname);
223 break;
224 }
225 }
226
227 public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
228 throws org.xml.sax.SAXException
229 {
230 int attIdx;
231 outer:
232 while (true) {
233 switch (state) {
234 case 1 :
235 attIdx = context.getAttribute("", "enabled");
236 if (attIdx >= 0) {
237 context.consumeAttribute(attIdx);
238 context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
239 return ;
240 }
241 attIdx = context.getAttribute("", "names");
242 if (attIdx >= 0) {
243 context.consumeAttribute(attIdx);
244 context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
245 return ;
246 }
247 break;
248 case 3 :
249 revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
250 return ;
251 }
252 super.leaveAttribute(___uri, ___local, ___qname);
253 break;
254 }
255 }
256
257 public void handleText(final java.lang.String value)
258 throws org.xml.sax.SAXException
259 {
260 int attIdx;
261 outer:
262 while (true) {
263 try {
264 switch (state) {
265 case 1 :
266 attIdx = context.getAttribute("", "enabled");
267 if (attIdx >= 0) {
268 context.consumeAttribute(attIdx);
269 context.getCurrentHandler().text(value);
270 return ;
271 }
272 attIdx = context.getAttribute("", "names");
273 if (attIdx >= 0) {
274 context.consumeAttribute(attIdx);
275 context.getCurrentHandler().text(value);
276 return ;
277 }
278 spawnHandlerFromText((((net.sf.jour.rt.view.config.impl.IncludeTypeImpl)net.sf.jour.rt.view.config.impl.IncludeImpl.this).new Unmarshaller(context)), 2, value);
279 return ;
280 case 3 :
281 revertToParentFromText(value);
282 return ;
283 }
284 } catch (java.lang.RuntimeException e) {
285 handleUnexpectedTextException(value, e);
286 }
287 break;
288 }
289 }
290
291 }
292
293 }