001: /*
002: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
003: *
004: * This program is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU General Public License
006: * as published by the Free Software Foundation; either version 2
007: * of the License, or (at your option) any later version.
008: *
009: * This program is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: * GNU General Public License for more details.
013: *
014: * You should have received a copy of the GNU General Public License
015: * along with this program; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
017: *
018: */
019:
020: //
021: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.4-b18-fcs
022: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
023: // Any modifications to this file will be lost upon recompilation of the source schema.
024: // Generated on: 2005.03.04 at 10:20:40 PST
025: //
026:
027: package com.nabhinc.portal.config.impl;
028:
029: public class InitParamTypeImpl implements
030: com.nabhinc.portal.config.InitParamType,
031: com.sun.xml.bind.JAXBObject,
032: com.nabhinc.portal.config.impl.runtime.UnmarshallableObject,
033: com.nabhinc.portal.config.impl.runtime.XMLSerializable,
034: com.nabhinc.portal.config.impl.runtime.ValidatableObject {
035:
036: protected com.nabhinc.portal.config.ValueType _Value;
037: protected com.sun.xml.bind.util.ListImpl _Description;
038: protected com.nabhinc.portal.config.NameType _Name;
039: protected java.lang.String _Id;
040: public final static java.lang.Class version = (com.nabhinc.portal.config.impl.JAXBVersion.class);
041: private static com.sun.msv.grammar.Grammar schemaFragment;
042:
043: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
044: return (com.nabhinc.portal.config.InitParamType.class);
045: }
046:
047: public com.nabhinc.portal.config.ValueType getValue() {
048: return _Value;
049: }
050:
051: public void setValue(com.nabhinc.portal.config.ValueType value) {
052: _Value = value;
053: }
054:
055: protected com.sun.xml.bind.util.ListImpl _getDescription() {
056: if (_Description == null) {
057: _Description = new com.sun.xml.bind.util.ListImpl(
058: new java.util.ArrayList());
059: }
060: return _Description;
061: }
062:
063: public java.util.List getDescription() {
064: return _getDescription();
065: }
066:
067: public com.nabhinc.portal.config.NameType getName() {
068: return _Name;
069: }
070:
071: public void setName(com.nabhinc.portal.config.NameType value) {
072: _Name = value;
073: }
074:
075: public java.lang.String getId() {
076: return _Id;
077: }
078:
079: public void setId(java.lang.String value) {
080: _Id = value;
081: }
082:
083: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
084: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
085: return new com.nabhinc.portal.config.impl.InitParamTypeImpl.Unmarshaller(
086: context);
087: }
088:
089: public void serializeBody(
090: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
091: throws org.xml.sax.SAXException {
092: int idx2 = 0;
093: final int len2 = ((_Description == null) ? 0 : _Description
094: .size());
095: while (idx2 != len2) {
096: context
097: .startElement(
098: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
099: "description");
100: int idx_0 = idx2;
101: context.childAsURIs(
102: ((com.sun.xml.bind.JAXBObject) _Description
103: .get(idx_0++)), "Description");
104: context.endNamespaceDecls();
105: int idx_1 = idx2;
106: context.childAsAttributes(
107: ((com.sun.xml.bind.JAXBObject) _Description
108: .get(idx_1++)), "Description");
109: context.endAttributes();
110: context.childAsBody(
111: ((com.sun.xml.bind.JAXBObject) _Description
112: .get(idx2++)), "Description");
113: context.endElement();
114: }
115: context
116: .startElement(
117: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
118: "name");
119: context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Name),
120: "Name");
121: context.endNamespaceDecls();
122: context.childAsAttributes(
123: ((com.sun.xml.bind.JAXBObject) _Name), "Name");
124: context.endAttributes();
125: context.childAsBody(((com.sun.xml.bind.JAXBObject) _Name),
126: "Name");
127: context.endElement();
128: context
129: .startElement(
130: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
131: "value");
132: context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Value),
133: "Value");
134: context.endNamespaceDecls();
135: context.childAsAttributes(
136: ((com.sun.xml.bind.JAXBObject) _Value), "Value");
137: context.endAttributes();
138: context.childAsBody(((com.sun.xml.bind.JAXBObject) _Value),
139: "Value");
140: context.endElement();
141: }
142:
143: public void serializeAttributes(
144: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
145: throws org.xml.sax.SAXException {
146: int idx2 = 0;
147: final int len2 = ((_Description == null) ? 0 : _Description
148: .size());
149: if (_Id != null) {
150: context.startAttribute("", "id");
151: try {
152: context.text(((java.lang.String) _Id), "Id");
153: } catch (java.lang.Exception e) {
154: com.nabhinc.portal.config.impl.runtime.Util
155: .handlePrintConversionException(this , e,
156: context);
157: }
158: context.endAttribute();
159: }
160: while (idx2 != len2) {
161: idx2 += 1;
162: }
163: }
164:
165: public void serializeURIs(
166: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
167: throws org.xml.sax.SAXException {
168: int idx2 = 0;
169: final int len2 = ((_Description == null) ? 0 : _Description
170: .size());
171: while (idx2 != len2) {
172: idx2 += 1;
173: }
174: }
175:
176: public java.lang.Class getPrimaryInterface() {
177: return (com.nabhinc.portal.config.InitParamType.class);
178: }
179:
180: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
181: if (schemaFragment == null) {
182: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
183: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
184: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
185: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
186: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
187: + "expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv.grammar."
188: + "ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.OneOrMor"
189: + "eExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
190: + "\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000ps"
191: + "r\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tname"
192: + "Classt\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.gramm"
193: + "ar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcont"
194: + "entModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\u000ep\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\bppsq\u0000~\u0000\nq\u0000~"
195: + "\u0000\u000epsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000"
196: + "\u0002L\u0000\tnameClassq\u0000~\u0000\u0010xq\u0000~\u0000\u0003q\u0000~\u0000\u000epsr\u00002com.sun.msv.grammar.Expres"
197: + "sion$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\r\u0001q\u0000~\u0000\u001asr\u0000 com"
198: + ".sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.gram"
199: + "mar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression"
200: + "$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001bq\u0000~\u0000 sr\u0000#com.sun.msv"
201: + ".grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang"
202: + "/String;L\u0000\fnamespaceURIq\u0000~\u0000\"xq\u0000~\u0000\u001dt\u0000)com.nabhinc.portal.conf"
203: + "ig.DescriptionTypet\u0000+http://java.sun.com/jaxb/xjc/dummy-elem"
204: + "entssq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000"
205: + "\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L"
206: + "\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.ms"
207: + "v.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype."
208: + "xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd"
209: + ".ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatat"
210: + "ypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\"L\u0000\btypeNameq\u0000~\u0000\"L\u0000\nwhi"
211: + "teSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000"
212: + " http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.dat"
213: + "atype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun"
214: + ".msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.su"
215: + "n.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003p"
216: + "psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\""
217: + "L\u0000\fnamespaceURIq\u0000~\u0000\"xpq\u0000~\u00003q\u0000~\u00002sq\u0000~\u0000!t\u0000\u0004typet\u0000)http://www.w"
218: + "3.org/2001/XMLSchema-instanceq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u000bdescriptiont\u00006htt"
219: + "p://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsdq\u0000~\u0000 sq\u0000~"
220: + "\u0000\u000fpp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\bppsq\u0000~\u0000\nq\u0000~\u0000\u000epsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000\u001aq"
221: + "\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000\"com.nabhinc.portal.config.NameTypeq\u0000~\u0000%sq\u0000"
222: + "~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000+q\u0000~\u0000;q\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0004nameq\u0000~\u0000@sq\u0000~\u0000\u000fpp\u0000s"
223: + "q\u0000~\u0000\u0000ppsq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\bppsq\u0000~\u0000\nq\u0000~\u0000\u000epsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000"
224: + "~\u0000 sq\u0000~\u0000!t\u0000#com.nabhinc.portal.config.ValueTypeq\u0000~\u0000%sq\u0000~\u0000\bpp"
225: + "sq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000+q\u0000~\u0000;q\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0005valueq\u0000~\u0000@sq\u0000~\u0000\bppsq\u0000~\u0000\u0017"
226: + "q\u0000~\u0000\u000epsq\u0000~\u0000(ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
227: + "\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u0000-q\u0000~\u00002t\u0000\u0006stringsr\u00005com.sun.msv.data"
228: + "type.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00005\u0001q\u0000~\u00008"
229: + "sq\u0000~\u00009q\u0000~\u0000^q\u0000~\u00002sq\u0000~\u0000!t\u0000\u0002idt\u0000\u0000q\u0000~\u0000 sr\u0000\"com.sun.msv.grammar.E"
230: + "xpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/E"
231: + "xpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expressio"
232: + "nPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parent"
233: + "t\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0012\u0001pq\u0000~\u0000\fq\u0000~\u0000&q\u0000~"
234: + "\u0000Iq\u0000~\u0000Uq\u0000~\u0000Yq\u0000~\u0000\u0015q\u0000~\u0000Dq\u0000~\u0000Pq\u0000~\u0000\u0016q\u0000~\u0000Eq\u0000~\u0000Qq\u0000~\u0000\u0006q\u0000~\u0000\tq\u0000~\u0000\u0005q\u0000~"
235: + "\u0000\u0013q\u0000~\u0000Bq\u0000~\u0000Nq\u0000~\u0000\u0007x"));
236: }
237: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
238: schemaFragment);
239: }
240:
241: public class Unmarshaller
242: extends
243: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
244:
245: public Unmarshaller(
246: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
247: super (context, "-------------");
248: }
249:
250: protected Unmarshaller(
251: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
252: int startState) {
253: this (context);
254: state = startState;
255: }
256:
257: public java.lang.Object owner() {
258: return com.nabhinc.portal.config.impl.InitParamTypeImpl.this ;
259: }
260:
261: public void enterElement(java.lang.String ___uri,
262: java.lang.String ___local, java.lang.String ___qname,
263: org.xml.sax.Attributes __atts)
264: throws org.xml.sax.SAXException {
265: int attIdx;
266: outer: while (true) {
267: switch (state) {
268: case 4:
269: attIdx = context.getAttribute(
270: "http://www.w3.org/XML/1998/namespace",
271: "lang");
272: if (attIdx >= 0) {
273: context.consumeAttribute(attIdx);
274: context.getCurrentHandler().enterElement(
275: ___uri, ___local, ___qname, __atts);
276: return;
277: }
278: break;
279: case 3:
280: if (("description" == ___local)
281: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
282: context.pushAttributes(__atts, true);
283: state = 4;
284: return;
285: }
286: state = 6;
287: continue outer;
288: case 12:
289: revertToParentFromEnterElement(___uri, ___local,
290: ___qname, __atts);
291: return;
292: case 9:
293: if (("value" == ___local)
294: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
295: context.pushAttributes(__atts, true);
296: state = 10;
297: return;
298: }
299: break;
300: case 6:
301: if (("description" == ___local)
302: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
303: context.pushAttributes(__atts, true);
304: state = 4;
305: return;
306: }
307: if (("name" == ___local)
308: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
309: context.pushAttributes(__atts, true);
310: state = 7;
311: return;
312: }
313: break;
314: case 0:
315: attIdx = context.getAttribute("", "id");
316: if (attIdx >= 0) {
317: final java.lang.String v = context
318: .eatAttribute(attIdx);
319: eatText1(v);
320: state = 3;
321: continue outer;
322: }
323: state = 3;
324: continue outer;
325: }
326: super .enterElement(___uri, ___local, ___qname, __atts);
327: break;
328: }
329: }
330:
331: private void eatText1(final java.lang.String value)
332: throws org.xml.sax.SAXException {
333: try {
334: _Id = value;
335: } catch (java.lang.Exception e) {
336: handleParseConversionException(e);
337: }
338: }
339:
340: public void leaveElement(java.lang.String ___uri,
341: java.lang.String ___local, java.lang.String ___qname)
342: throws org.xml.sax.SAXException {
343: int attIdx;
344: outer: while (true) {
345: switch (state) {
346: case 4:
347: attIdx = context.getAttribute(
348: "http://www.w3.org/XML/1998/namespace",
349: "lang");
350: if (attIdx >= 0) {
351: context.consumeAttribute(attIdx);
352: context.getCurrentHandler().leaveElement(
353: ___uri, ___local, ___qname);
354: return;
355: }
356: break;
357: case 3:
358: state = 6;
359: continue outer;
360: case 12:
361: revertToParentFromLeaveElement(___uri, ___local,
362: ___qname);
363: return;
364: case 5:
365: if (("description" == ___local)
366: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
367: context.popAttributes();
368: state = 6;
369: return;
370: }
371: break;
372: case 11:
373: if (("value" == ___local)
374: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
375: context.popAttributes();
376: state = 12;
377: return;
378: }
379: break;
380: case 8:
381: if (("name" == ___local)
382: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
383: context.popAttributes();
384: state = 9;
385: return;
386: }
387: break;
388: case 0:
389: attIdx = context.getAttribute("", "id");
390: if (attIdx >= 0) {
391: final java.lang.String v = context
392: .eatAttribute(attIdx);
393: eatText1(v);
394: state = 3;
395: continue outer;
396: }
397: state = 3;
398: continue outer;
399: }
400: super .leaveElement(___uri, ___local, ___qname);
401: break;
402: }
403: }
404:
405: public void enterAttribute(java.lang.String ___uri,
406: java.lang.String ___local, java.lang.String ___qname)
407: throws org.xml.sax.SAXException {
408: int attIdx;
409: outer: while (true) {
410: switch (state) {
411: case 4:
412: if (("lang" == ___local)
413: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
414: _getDescription()
415: .add(
416: ((com.nabhinc.portal.config.impl.DescriptionTypeImpl) spawnChildFromEnterAttribute(
417: (com.nabhinc.portal.config.impl.DescriptionTypeImpl.class),
418: 5, ___uri, ___local,
419: ___qname)));
420: return;
421: }
422: break;
423: case 3:
424: state = 6;
425: continue outer;
426: case 12:
427: revertToParentFromEnterAttribute(___uri, ___local,
428: ___qname);
429: return;
430: case 0:
431: if (("id" == ___local) && ("" == ___uri)) {
432: state = 1;
433: return;
434: }
435: state = 3;
436: continue outer;
437: }
438: super .enterAttribute(___uri, ___local, ___qname);
439: break;
440: }
441: }
442:
443: public void leaveAttribute(java.lang.String ___uri,
444: java.lang.String ___local, java.lang.String ___qname)
445: throws org.xml.sax.SAXException {
446: int attIdx;
447: outer: while (true) {
448: switch (state) {
449: case 4:
450: attIdx = context.getAttribute(
451: "http://www.w3.org/XML/1998/namespace",
452: "lang");
453: if (attIdx >= 0) {
454: context.consumeAttribute(attIdx);
455: context.getCurrentHandler().leaveAttribute(
456: ___uri, ___local, ___qname);
457: return;
458: }
459: break;
460: case 3:
461: state = 6;
462: continue outer;
463: case 12:
464: revertToParentFromLeaveAttribute(___uri, ___local,
465: ___qname);
466: return;
467: case 2:
468: if (("id" == ___local) && ("" == ___uri)) {
469: state = 3;
470: return;
471: }
472: break;
473: case 0:
474: attIdx = context.getAttribute("", "id");
475: if (attIdx >= 0) {
476: final java.lang.String v = context
477: .eatAttribute(attIdx);
478: eatText1(v);
479: state = 3;
480: continue outer;
481: }
482: state = 3;
483: continue outer;
484: }
485: super .leaveAttribute(___uri, ___local, ___qname);
486: break;
487: }
488: }
489:
490: public void handleText(final java.lang.String value)
491: throws org.xml.sax.SAXException {
492: int attIdx;
493: outer: while (true) {
494: try {
495: switch (state) {
496: case 4:
497: attIdx = context.getAttribute(
498: "http://www.w3.org/XML/1998/namespace",
499: "lang");
500: if (attIdx >= 0) {
501: context.consumeAttribute(attIdx);
502: context.getCurrentHandler().text(value);
503: return;
504: }
505: _getDescription()
506: .add(
507: ((com.nabhinc.portal.config.impl.DescriptionTypeImpl) spawnChildFromText(
508: (com.nabhinc.portal.config.impl.DescriptionTypeImpl.class),
509: 5, value)));
510: return;
511: case 3:
512: state = 6;
513: continue outer;
514: case 12:
515: revertToParentFromText(value);
516: return;
517: case 10:
518: _Value = ((com.nabhinc.portal.config.impl.ValueTypeImpl) spawnChildFromText(
519: (com.nabhinc.portal.config.impl.ValueTypeImpl.class),
520: 11, value));
521: return;
522: case 1:
523: eatText1(value);
524: state = 2;
525: return;
526: case 7:
527: _Name = ((com.nabhinc.portal.config.impl.NameTypeImpl) spawnChildFromText(
528: (com.nabhinc.portal.config.impl.NameTypeImpl.class),
529: 8, value));
530: return;
531: case 0:
532: attIdx = context.getAttribute("", "id");
533: if (attIdx >= 0) {
534: final java.lang.String v = context
535: .eatAttribute(attIdx);
536: eatText1(v);
537: state = 3;
538: continue outer;
539: }
540: state = 3;
541: continue outer;
542: }
543: } catch (java.lang.RuntimeException e) {
544: handleUnexpectedTextException(value, e);
545: }
546: break;
547: }
548: }
549:
550: }
551:
552: }
|