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 PortletAppImpl extends
030: com.nabhinc.portal.config.impl.PortletAppTypeImpl implements
031: com.nabhinc.portal.config.PortletApp,
032: com.sun.xml.bind.RIElement, com.sun.xml.bind.JAXBObject,
033: com.nabhinc.portal.config.impl.runtime.UnmarshallableObject,
034: com.nabhinc.portal.config.impl.runtime.XMLSerializable,
035: com.nabhinc.portal.config.impl.runtime.ValidatableObject {
036:
037: public final static java.lang.Class version = (com.nabhinc.portal.config.impl.JAXBVersion.class);
038: private static com.sun.msv.grammar.Grammar schemaFragment;
039:
040: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
041: return (com.nabhinc.portal.config.PortletApp.class);
042: }
043:
044: public java.lang.String ____jaxb_ri____getNamespaceURI() {
045: return "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
046: }
047:
048: public java.lang.String ____jaxb_ri____getLocalName() {
049: return "portlet-app";
050: }
051:
052: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
053: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
054: return new com.nabhinc.portal.config.impl.PortletAppImpl.Unmarshaller(
055: context);
056: }
057:
058: public void serializeBody(
059: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
060: throws org.xml.sax.SAXException {
061: context
062: .startElement(
063: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
064: "portlet-app");
065: super .serializeURIs(context);
066: context.endNamespaceDecls();
067: super .serializeAttributes(context);
068: context.endAttributes();
069: super .serializeBody(context);
070: context.endElement();
071: }
072:
073: public void serializeAttributes(
074: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
075: throws org.xml.sax.SAXException {
076: }
077:
078: public void serializeURIs(
079: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
080: throws org.xml.sax.SAXException {
081: }
082:
083: public java.lang.Class getPrimaryInterface() {
084: return (com.nabhinc.portal.config.PortletApp.class);
085: }
086:
087: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
088: if (schemaFragment == null) {
089: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
090: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
091: + "\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
092: + "grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
093: + "\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
094: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
095: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
096: + "mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
097: + "\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"
098: + "q\u0000~\u0000\u0007ppsq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0007ppsr\u0000\u001dcom.sun.msv.grammar.Choic"
099: + "eExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000"
100: + "\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\u0003expq"
101: + "\u0000~\u0000\u0003xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u0000"
102: + "q\u0000~\u0000\u0016p\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psr\u0000 com.sun.msv."
103: + "grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001x"
104: + "q\u0000~\u0000\u0004q\u0000~\u0000\u0016psr\u00002com.sun.msv.grammar.Expression$AnyStringExpre"
105: + "ssion\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u0015\u0001q\u0000~\u0000\u001fsr\u0000 com.sun.msv.grammar.An"
106: + "yNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000"
107: + "\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000"
108: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000 q\u0000~\u0000%sr\u0000#com.sun.msv.grammar.SimpleName"
109: + "Class\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespac"
110: + "eURIq\u0000~\u0000\'xq\u0000~\u0000\"t\u0000%com.nabhinc.portal.config.PortletTypet\u0000+ht"
111: + "tp://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq\u0000~\u0000\u0016"
112: + "psr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/rela"
113: + "xng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/u"
114: + "til/StringPair;xq\u0000~\u0000\u0004ppsr\u0000\"com.sun.msv.datatype.xsd.QnameTyp"
115: + "e\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000"
116: + "\u0000\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"
117: + "\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fna"
118: + "mespaceUriq\u0000~\u0000\'L\u0000\btypeNameq\u0000~\u0000\'L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/"
119: + "datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001"
120: + "/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd.WhiteSpacePro"
121: + "cessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.White"
122: + "SpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expressio"
123: + "n$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.util.S"
124: + "tringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\'L\u0000\fnamespaceURIq\u0000~\u0000\'xpq"
125: + "\u0000~\u00008q\u0000~\u00007sq\u0000~\u0000&t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-in"
126: + "stanceq\u0000~\u0000%sq\u0000~\u0000&t\u0000\u0007portlett\u00006http://java.sun.com/xml/ns/por"
127: + "tlet/portlet-app_1_0.xsdq\u0000~\u0000%sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u0000q\u0000~\u0000\u0016"
128: + "p\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u0000\u001fq\u0000~\u0000"
129: + "#q\u0000~\u0000%sq\u0000~\u0000&t\u0000/com.nabhinc.portal.config.CustomPortletModeTy"
130: + "peq\u0000~\u0000*sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u00000q\u0000~\u0000@q\u0000~\u0000%sq\u0000~\u0000&t\u0000\u0013custom-po"
131: + "rtlet-modeq\u0000~\u0000Eq\u0000~\u0000%sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u0000q\u0000~\u0000\u0016p\u0000sq\u0000~\u0000\u0007p"
132: + "psq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u0000\u001fq\u0000~\u0000#q\u0000~\u0000%sq\u0000"
133: + "~\u0000&t\u0000/com.nabhinc.portal.config.CustomWindowStateTypeq\u0000~\u0000*sq"
134: + "\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u00000q\u0000~\u0000@q\u0000~\u0000%sq\u0000~\u0000&t\u0000\u0013custom-window-stat"
135: + "eq\u0000~\u0000Eq\u0000~\u0000%sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u0000q\u0000~\u0000\u0016p\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0000pp"
136: + "\u0000sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u0000\u001fq\u0000~\u0000#q\u0000~\u0000%sq\u0000~\u0000&t\u0000+com"
137: + ".nabhinc.portal.config.UserAttributeTypeq\u0000~\u0000*sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq"
138: + "\u0000~\u0000\u0016pq\u0000~\u00000q\u0000~\u0000@q\u0000~\u0000%sq\u0000~\u0000&t\u0000\u000euser-attributeq\u0000~\u0000Eq\u0000~\u0000%sq\u0000~\u0000\u0010p"
139: + "psq\u0000~\u0000\u0012q\u0000~\u0000\u0016psq\u0000~\u0000\u0000q\u0000~\u0000\u0016p\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u0012q\u0000~"
140: + "\u0000\u0016psq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u0000\u001fq\u0000~\u0000#q\u0000~\u0000%sq\u0000~\u0000&t\u00000com.nabhinc.portal.co"
141: + "nfig.SecurityConstraintTypeq\u0000~\u0000*sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u00000q\u0000~"
142: + "\u0000@q\u0000~\u0000%sq\u0000~\u0000&t\u0000\u0013security-constraintq\u0000~\u0000Eq\u0000~\u0000%sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq"
143: + "\u0000~\u0000\u0016psq\u0000~\u0000-ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
144: + "\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u00002q\u0000~\u00007t\u0000\u0006stringsr\u00005com.sun.msv.datat"
145: + "ype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000:\u0001q\u0000~\u0000=s"
146: + "q\u0000~\u0000>q\u0000~\u0000\u0083q\u0000~\u00007sq\u0000~\u0000&t\u0000\u0002idt\u0000\u0000q\u0000~\u0000%sq\u0000~\u0000\u001cppq\u0000~\u0000\u0080sq\u0000~\u0000&t\u0000\u0007vers"
147: + "ionq\u0000~\u0000\u0089sq\u0000~\u0000\u0010ppsq\u0000~\u0000\u001cq\u0000~\u0000\u0016pq\u0000~\u00000q\u0000~\u0000@q\u0000~\u0000%sq\u0000~\u0000&t\u0000\u000bportlet-"
148: + "appq\u0000~\u0000Esr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\b"
149: + "expTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xp"
150: + "sr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003"
151: + "I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/Exp"
152: + "ressionPool;xp\u0000\u0000\u0000\'\u0001pq\u0000~\u0000\u0014q\u0000~\u0000Gq\u0000~\u0000Uq\u0000~\u0000cq\u0000~\u0000qq\u0000~\u0000+q\u0000~\u0000Pq\u0000~\u0000^"
153: + "q\u0000~\u0000lq\u0000~\u0000zq\u0000~\u0000\u008dq\u0000~\u0000\nq\u0000~\u0000\u000eq\u0000~\u0000\u001aq\u0000~\u0000Kq\u0000~\u0000Yq\u0000~\u0000gq\u0000~\u0000uq\u0000~\u0000\u001bq\u0000~\u0000L"
154: + "q\u0000~\u0000Zq\u0000~\u0000hq\u0000~\u0000vq\u0000~\u0000\u0011q\u0000~\u0000Fq\u0000~\u0000Tq\u0000~\u0000bq\u0000~\u0000pq\u0000~\u0000~q\u0000~\u0000\u000bq\u0000~\u0000\tq\u0000~\u0000\f"
155: + "q\u0000~\u0000\u0018q\u0000~\u0000Iq\u0000~\u0000Wq\u0000~\u0000eq\u0000~\u0000sq\u0000~\u0000\rq\u0000~\u0000\u000fx"));
156: }
157: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
158: schemaFragment);
159: }
160:
161: public class Unmarshaller
162: extends
163: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
164:
165: public Unmarshaller(
166: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
167: super (context, "----");
168: }
169:
170: protected Unmarshaller(
171: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
172: int startState) {
173: this (context);
174: state = startState;
175: }
176:
177: public java.lang.Object owner() {
178: return com.nabhinc.portal.config.impl.PortletAppImpl.this ;
179: }
180:
181: public void enterElement(java.lang.String ___uri,
182: java.lang.String ___local, java.lang.String ___qname,
183: org.xml.sax.Attributes __atts)
184: throws org.xml.sax.SAXException {
185: int attIdx;
186: outer: while (true) {
187: switch (state) {
188: case 1:
189: attIdx = context.getAttribute("", "id");
190: if (attIdx >= 0) {
191: context.consumeAttribute(attIdx);
192: context.getCurrentHandler().enterElement(
193: ___uri, ___local, ___qname, __atts);
194: return;
195: }
196: attIdx = context.getAttribute("", "version");
197: if (attIdx >= 0) {
198: context.consumeAttribute(attIdx);
199: context.getCurrentHandler().enterElement(
200: ___uri, ___local, ___qname, __atts);
201: return;
202: }
203: break;
204: case 3:
205: revertToParentFromEnterElement(___uri, ___local,
206: ___qname, __atts);
207: return;
208: case 0:
209: if (("portlet-app" == ___local)
210: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
211: context.pushAttributes(__atts, false);
212: state = 1;
213: return;
214: }
215: break;
216: }
217: super .enterElement(___uri, ___local, ___qname, __atts);
218: break;
219: }
220: }
221:
222: public void leaveElement(java.lang.String ___uri,
223: java.lang.String ___local, java.lang.String ___qname)
224: throws org.xml.sax.SAXException {
225: int attIdx;
226: outer: while (true) {
227: switch (state) {
228: case 1:
229: attIdx = context.getAttribute("", "id");
230: if (attIdx >= 0) {
231: context.consumeAttribute(attIdx);
232: context.getCurrentHandler().leaveElement(
233: ___uri, ___local, ___qname);
234: return;
235: }
236: attIdx = context.getAttribute("", "version");
237: if (attIdx >= 0) {
238: context.consumeAttribute(attIdx);
239: context.getCurrentHandler().leaveElement(
240: ___uri, ___local, ___qname);
241: return;
242: }
243: break;
244: case 3:
245: revertToParentFromLeaveElement(___uri, ___local,
246: ___qname);
247: return;
248: case 2:
249: if (("portlet-app" == ___local)
250: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
251: context.popAttributes();
252: state = 3;
253: return;
254: }
255: break;
256: }
257: super .leaveElement(___uri, ___local, ___qname);
258: break;
259: }
260: }
261:
262: public void enterAttribute(java.lang.String ___uri,
263: java.lang.String ___local, java.lang.String ___qname)
264: throws org.xml.sax.SAXException {
265: int attIdx;
266: outer: while (true) {
267: switch (state) {
268: case 1:
269: if (("id" == ___local) && ("" == ___uri)) {
270: spawnHandlerFromEnterAttribute(
271: (((com.nabhinc.portal.config.impl.PortletAppTypeImpl) com.nabhinc.portal.config.impl.PortletAppImpl.this ).new Unmarshaller(
272: context)), 2, ___uri, ___local,
273: ___qname);
274: return;
275: }
276: if (("version" == ___local) && ("" == ___uri)) {
277: spawnHandlerFromEnterAttribute(
278: (((com.nabhinc.portal.config.impl.PortletAppTypeImpl) com.nabhinc.portal.config.impl.PortletAppImpl.this ).new Unmarshaller(
279: context)), 2, ___uri, ___local,
280: ___qname);
281: return;
282: }
283: break;
284: case 3:
285: revertToParentFromEnterAttribute(___uri, ___local,
286: ___qname);
287: return;
288: }
289: super .enterAttribute(___uri, ___local, ___qname);
290: break;
291: }
292: }
293:
294: public void leaveAttribute(java.lang.String ___uri,
295: java.lang.String ___local, java.lang.String ___qname)
296: throws org.xml.sax.SAXException {
297: int attIdx;
298: outer: while (true) {
299: switch (state) {
300: case 1:
301: attIdx = context.getAttribute("", "id");
302: if (attIdx >= 0) {
303: context.consumeAttribute(attIdx);
304: context.getCurrentHandler().leaveAttribute(
305: ___uri, ___local, ___qname);
306: return;
307: }
308: attIdx = context.getAttribute("", "version");
309: if (attIdx >= 0) {
310: context.consumeAttribute(attIdx);
311: context.getCurrentHandler().leaveAttribute(
312: ___uri, ___local, ___qname);
313: return;
314: }
315: break;
316: case 3:
317: revertToParentFromLeaveAttribute(___uri, ___local,
318: ___qname);
319: return;
320: }
321: super .leaveAttribute(___uri, ___local, ___qname);
322: break;
323: }
324: }
325:
326: public void handleText(final java.lang.String value)
327: throws org.xml.sax.SAXException {
328: int attIdx;
329: outer: while (true) {
330: try {
331: switch (state) {
332: case 1:
333: attIdx = context.getAttribute("", "id");
334: if (attIdx >= 0) {
335: context.consumeAttribute(attIdx);
336: context.getCurrentHandler().text(value);
337: return;
338: }
339: attIdx = context.getAttribute("", "version");
340: if (attIdx >= 0) {
341: context.consumeAttribute(attIdx);
342: context.getCurrentHandler().text(value);
343: return;
344: }
345: break;
346: case 3:
347: revertToParentFromText(value);
348: return;
349: }
350: } catch (java.lang.RuntimeException e) {
351: handleUnexpectedTextException(value, e);
352: }
353: break;
354: }
355: }
356:
357: }
358:
359: }
|