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 PortletPreferencesTypeImpl implements
030: com.nabhinc.portal.config.PortletPreferencesType,
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.sun.xml.bind.util.ListImpl _Preference;
037: protected java.lang.String _PreferencesValidator;
038: protected java.lang.String _Id;
039: public final static java.lang.Class version = (com.nabhinc.portal.config.impl.JAXBVersion.class);
040: private static com.sun.msv.grammar.Grammar schemaFragment;
041:
042: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
043: return (com.nabhinc.portal.config.PortletPreferencesType.class);
044: }
045:
046: protected com.sun.xml.bind.util.ListImpl _getPreference() {
047: if (_Preference == null) {
048: _Preference = new com.sun.xml.bind.util.ListImpl(
049: new java.util.ArrayList());
050: }
051: return _Preference;
052: }
053:
054: public java.util.List getPreference() {
055: return _getPreference();
056: }
057:
058: public java.lang.String getPreferencesValidator() {
059: return _PreferencesValidator;
060: }
061:
062: public void setPreferencesValidator(java.lang.String value) {
063: _PreferencesValidator = value;
064: }
065:
066: public java.lang.String getId() {
067: return _Id;
068: }
069:
070: public void setId(java.lang.String value) {
071: _Id = value;
072: }
073:
074: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
075: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
076: return new com.nabhinc.portal.config.impl.PortletPreferencesTypeImpl.Unmarshaller(
077: context);
078: }
079:
080: public void serializeBody(
081: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
082: throws org.xml.sax.SAXException {
083: int idx1 = 0;
084: final int len1 = ((_Preference == null) ? 0 : _Preference
085: .size());
086: while (idx1 != len1) {
087: context
088: .startElement(
089: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
090: "preference");
091: int idx_0 = idx1;
092: context.childAsURIs(
093: ((com.sun.xml.bind.JAXBObject) _Preference
094: .get(idx_0++)), "Preference");
095: context.endNamespaceDecls();
096: int idx_1 = idx1;
097: context.childAsAttributes(
098: ((com.sun.xml.bind.JAXBObject) _Preference
099: .get(idx_1++)), "Preference");
100: context.endAttributes();
101: context.childAsBody(
102: ((com.sun.xml.bind.JAXBObject) _Preference
103: .get(idx1++)), "Preference");
104: context.endElement();
105: }
106: if (_PreferencesValidator != null) {
107: context
108: .startElement(
109: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
110: "preferences-validator");
111: context.endNamespaceDecls();
112: context.endAttributes();
113: try {
114: context.text(
115: ((java.lang.String) _PreferencesValidator),
116: "PreferencesValidator");
117: } catch (java.lang.Exception e) {
118: com.nabhinc.portal.config.impl.runtime.Util
119: .handlePrintConversionException(this , e,
120: context);
121: }
122: context.endElement();
123: }
124: }
125:
126: public void serializeAttributes(
127: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
128: throws org.xml.sax.SAXException {
129: int idx1 = 0;
130: final int len1 = ((_Preference == null) ? 0 : _Preference
131: .size());
132: if (_Id != null) {
133: context.startAttribute("", "id");
134: try {
135: context.text(((java.lang.String) _Id), "Id");
136: } catch (java.lang.Exception e) {
137: com.nabhinc.portal.config.impl.runtime.Util
138: .handlePrintConversionException(this , e,
139: context);
140: }
141: context.endAttribute();
142: }
143: while (idx1 != len1) {
144: idx1 += 1;
145: }
146: }
147:
148: public void serializeURIs(
149: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
150: throws org.xml.sax.SAXException {
151: int idx1 = 0;
152: final int len1 = ((_Preference == null) ? 0 : _Preference
153: .size());
154: while (idx1 != len1) {
155: idx1 += 1;
156: }
157: }
158:
159: public java.lang.Class getPrimaryInterface() {
160: return (com.nabhinc.portal.config.PortletPreferencesType.class);
161: }
162:
163: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
164: if (schemaFragment == null) {
165: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
166: .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"
167: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
168: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
169: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
170: + "expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv.grammar.ChoiceEx"
171: + "p\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000"
172: + "\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\u0003expq\u0000~\u0000"
173: + "\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\'com.s"
174: + "un.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001f"
175: + "Lcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.Eleme"
176: + "ntExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModel"
177: + "q\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\rp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000epp\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\tq\u0000~\u0000\rpsr\u0000 c"
178: + "om.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tname"
179: + "Classq\u0000~\u0000\u000fxq\u0000~\u0000\u0003q\u0000~\u0000\rpsr\u00002com.sun.msv.grammar.Expression$Any"
180: + "StringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\f\u0001q\u0000~\u0000\u0019sr\u0000 com.sun.msv"
181: + ".grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.Name"
182: + "Class\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$Epsilon"
183: + "Expression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001aq\u0000~\u0000\u001fsr\u0000#com.sun.msv.grammar"
184: + ".SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;"
185: + "L\u0000\fnamespaceURIq\u0000~\u0000!xq\u0000~\u0000\u001ct\u0000(com.nabhinc.portal.config.Prefe"
186: + "renceTypet\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000"
187: + "\u0007ppsq\u0000~\u0000\u0016q\u0000~\u0000\rpsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002"
188: + "dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001d"
189: + "Lcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datatyp"
190: + "e.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.Built"
191: + "inAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.Concrete"
192: + "Type\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000"
193: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000!L\u0000\btypeNameq\u0000~\u0000!L\u0000\nwhiteSpacet\u0000"
194: + ".Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://w"
195: + "ww.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd"
196: + ".WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.data"
197: + "type.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.gra"
198: + "mmar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom."
199: + "sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000!L\u0000\fnamesp"
200: + "aceURIq\u0000~\u0000!xpq\u0000~\u00002q\u0000~\u00001sq\u0000~\u0000 t\u0000\u0004typet\u0000)http://www.w3.org/200"
201: + "1/XMLSchema-instanceq\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\npreferencet\u00006http://java.s"
202: + "un.com/xml/ns/portlet/portlet-app_1_0.xsdq\u0000~\u0000\u001fsq\u0000~\u0000\u0007ppsq\u0000~\u0000\u000e"
203: + "q\u0000~\u0000\rp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\'ppsr\u0000\'com.sun.msv.datatype.xsd.FinalCom"
204: + "ponent\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\nfinalValuexr\u0000\u001ecom.sun.msv.datatype.xsd.P"
205: + "roxy\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDat"
206: + "atypeImpl;xq\u0000~\u0000.q\u0000~\u0000?t\u0000\u0019preferences-validatorTypeq\u0000~\u00005sq\u0000~\u0000D"
207: + "q\u0000~\u0000?t\u0000\u0019fully-qualified-classTypeq\u0000~\u00005sr\u0000(com.sun.msv.dataty"
208: + "pe.xsd.WhiteSpaceFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xs"
209: + "d.DataTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueChe"
210: + "ckFlagL\u0000\bbaseTypeq\u0000~\u0000FL\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatyp"
211: + "e/xsd/ConcreteType;L\u0000\tfacetNameq\u0000~\u0000!xq\u0000~\u0000.q\u0000~\u0000?t\u0000\u0006stringq\u0000~\u0000"
212: + "5\u0000\u0000sr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAl"
213: + "waysValidxq\u0000~\u0000,q\u0000~\u00001t\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.Wh"
214: + "iteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00004\u0001q\u0000~\u0000Qt\u0000\nwhiteSpa"
215: + "ce\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000q\u0000~\u00007sq\u0000~\u00008q\u0000~\u0000Oq\u0000~\u0000?sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0016q\u0000~\u0000\rpq\u0000~\u0000*q\u0000~\u0000"
216: + ":q\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\u0015preferences-validatorq\u0000~\u0000?q\u0000~\u0000\u001fsq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0016"
217: + "q\u0000~\u0000\rpsq\u0000~\u0000\'ppq\u0000~\u0000Qq\u0000~\u00007sq\u0000~\u00008q\u0000~\u0000Rq\u0000~\u00001sq\u0000~\u0000 t\u0000\u0002idt\u0000\u0000q\u0000~\u0000\u001fs"
218: + "r\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet"
219: + "\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.s"
220: + "un.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB"
221: + "\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPo"
222: + "ol;xp\u0000\u0000\u0000\f\u0001pq\u0000~\u0000\u000bq\u0000~\u0000%q\u0000~\u0000Wq\u0000~\u0000\u0014q\u0000~\u0000\u0015q\u0000~\u0000Bq\u0000~\u0000\u0005q\u0000~\u0000\bq\u0000~\u0000@q\u0000~\u0000"
223: + "[q\u0000~\u0000\u0012q\u0000~\u0000\u0006x"));
224: }
225: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
226: schemaFragment);
227: }
228:
229: public class Unmarshaller
230: extends
231: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
232:
233: public Unmarshaller(
234: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
235: super (context, "----------");
236: }
237:
238: protected Unmarshaller(
239: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
240: int startState) {
241: this (context);
242: state = startState;
243: }
244:
245: public java.lang.Object owner() {
246: return com.nabhinc.portal.config.impl.PortletPreferencesTypeImpl.this ;
247: }
248:
249: public void enterElement(java.lang.String ___uri,
250: java.lang.String ___local, java.lang.String ___qname,
251: org.xml.sax.Attributes __atts)
252: throws org.xml.sax.SAXException {
253: int attIdx;
254: outer: while (true) {
255: switch (state) {
256: case 0:
257: attIdx = context.getAttribute("", "id");
258: if (attIdx >= 0) {
259: final java.lang.String v = context
260: .eatAttribute(attIdx);
261: eatText1(v);
262: state = 3;
263: continue outer;
264: }
265: state = 3;
266: continue outer;
267: case 3:
268: if (("preference" == ___local)
269: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
270: context.pushAttributes(__atts, false);
271: state = 4;
272: return;
273: }
274: state = 6;
275: continue outer;
276: case 9:
277: revertToParentFromEnterElement(___uri, ___local,
278: ___qname, __atts);
279: return;
280: case 6:
281: if (("preference" == ___local)
282: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
283: context.pushAttributes(__atts, false);
284: state = 4;
285: return;
286: }
287: if (("preferences-validator" == ___local)
288: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
289: context.pushAttributes(__atts, true);
290: state = 7;
291: return;
292: }
293: state = 9;
294: continue outer;
295: case 4:
296: attIdx = context.getAttribute("", "id");
297: if (attIdx >= 0) {
298: context.consumeAttribute(attIdx);
299: context.getCurrentHandler().enterElement(
300: ___uri, ___local, ___qname, __atts);
301: return;
302: }
303: if (("name" == ___local)
304: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
305: _getPreference()
306: .add(
307: ((com.nabhinc.portal.config.impl.PreferenceTypeImpl) spawnChildFromEnterElement(
308: (com.nabhinc.portal.config.impl.PreferenceTypeImpl.class),
309: 5, ___uri, ___local,
310: ___qname, __atts)));
311: return;
312: }
313: break;
314: }
315: super .enterElement(___uri, ___local, ___qname, __atts);
316: break;
317: }
318: }
319:
320: private void eatText1(final java.lang.String value)
321: throws org.xml.sax.SAXException {
322: try {
323: _Id = value;
324: } catch (java.lang.Exception e) {
325: handleParseConversionException(e);
326: }
327: }
328:
329: public void leaveElement(java.lang.String ___uri,
330: java.lang.String ___local, java.lang.String ___qname)
331: throws org.xml.sax.SAXException {
332: int attIdx;
333: outer: while (true) {
334: switch (state) {
335: case 0:
336: attIdx = context.getAttribute("", "id");
337: if (attIdx >= 0) {
338: final java.lang.String v = context
339: .eatAttribute(attIdx);
340: eatText1(v);
341: state = 3;
342: continue outer;
343: }
344: state = 3;
345: continue outer;
346: case 5:
347: if (("preference" == ___local)
348: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
349: context.popAttributes();
350: state = 6;
351: return;
352: }
353: break;
354: case 3:
355: state = 6;
356: continue outer;
357: case 8:
358: if (("preferences-validator" == ___local)
359: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
360: context.popAttributes();
361: state = 9;
362: return;
363: }
364: break;
365: case 9:
366: revertToParentFromLeaveElement(___uri, ___local,
367: ___qname);
368: return;
369: case 6:
370: state = 9;
371: continue outer;
372: case 4:
373: attIdx = context.getAttribute("", "id");
374: if (attIdx >= 0) {
375: context.consumeAttribute(attIdx);
376: context.getCurrentHandler().leaveElement(
377: ___uri, ___local, ___qname);
378: return;
379: }
380: break;
381: }
382: super .leaveElement(___uri, ___local, ___qname);
383: break;
384: }
385: }
386:
387: public void enterAttribute(java.lang.String ___uri,
388: java.lang.String ___local, java.lang.String ___qname)
389: throws org.xml.sax.SAXException {
390: int attIdx;
391: outer: while (true) {
392: switch (state) {
393: case 0:
394: if (("id" == ___local) && ("" == ___uri)) {
395: state = 1;
396: return;
397: }
398: state = 3;
399: continue outer;
400: case 3:
401: state = 6;
402: continue outer;
403: case 9:
404: revertToParentFromEnterAttribute(___uri, ___local,
405: ___qname);
406: return;
407: case 6:
408: state = 9;
409: continue outer;
410: case 4:
411: if (("id" == ___local) && ("" == ___uri)) {
412: _getPreference()
413: .add(
414: ((com.nabhinc.portal.config.impl.PreferenceTypeImpl) spawnChildFromEnterAttribute(
415: (com.nabhinc.portal.config.impl.PreferenceTypeImpl.class),
416: 5, ___uri, ___local,
417: ___qname)));
418: return;
419: }
420: break;
421: }
422: super .enterAttribute(___uri, ___local, ___qname);
423: break;
424: }
425: }
426:
427: public void leaveAttribute(java.lang.String ___uri,
428: java.lang.String ___local, java.lang.String ___qname)
429: throws org.xml.sax.SAXException {
430: int attIdx;
431: outer: while (true) {
432: switch (state) {
433: case 0:
434: attIdx = context.getAttribute("", "id");
435: if (attIdx >= 0) {
436: final java.lang.String v = context
437: .eatAttribute(attIdx);
438: eatText1(v);
439: state = 3;
440: continue outer;
441: }
442: state = 3;
443: continue outer;
444: case 3:
445: state = 6;
446: continue outer;
447: case 2:
448: if (("id" == ___local) && ("" == ___uri)) {
449: state = 3;
450: return;
451: }
452: break;
453: case 9:
454: revertToParentFromLeaveAttribute(___uri, ___local,
455: ___qname);
456: return;
457: case 6:
458: state = 9;
459: continue outer;
460: case 4:
461: attIdx = context.getAttribute("", "id");
462: if (attIdx >= 0) {
463: context.consumeAttribute(attIdx);
464: context.getCurrentHandler().leaveAttribute(
465: ___uri, ___local, ___qname);
466: return;
467: }
468: break;
469: }
470: super .leaveAttribute(___uri, ___local, ___qname);
471: break;
472: }
473: }
474:
475: public void handleText(final java.lang.String value)
476: throws org.xml.sax.SAXException {
477: int attIdx;
478: outer: while (true) {
479: try {
480: switch (state) {
481: case 0:
482: attIdx = context.getAttribute("", "id");
483: if (attIdx >= 0) {
484: final java.lang.String v = context
485: .eatAttribute(attIdx);
486: eatText1(v);
487: state = 3;
488: continue outer;
489: }
490: state = 3;
491: continue outer;
492: case 3:
493: state = 6;
494: continue outer;
495: case 9:
496: revertToParentFromText(value);
497: return;
498: case 6:
499: state = 9;
500: continue outer;
501: case 7:
502: eatText2(value);
503: state = 8;
504: return;
505: case 4:
506: attIdx = context.getAttribute("", "id");
507: if (attIdx >= 0) {
508: context.consumeAttribute(attIdx);
509: context.getCurrentHandler().text(value);
510: return;
511: }
512: break;
513: case 1:
514: eatText1(value);
515: state = 2;
516: return;
517: }
518: } catch (java.lang.RuntimeException e) {
519: handleUnexpectedTextException(value, e);
520: }
521: break;
522: }
523: }
524:
525: private void eatText2(final java.lang.String value)
526: throws org.xml.sax.SAXException {
527: try {
528: _PreferencesValidator = com.sun.xml.bind.WhiteSpaceProcessor
529: .collapse(value);
530: } catch (java.lang.Exception e) {
531: handleParseConversionException(e);
532: }
533: }
534:
535: }
536:
537: }
|