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 SecurityRoleRefTypeImpl implements
030: com.nabhinc.portal.config.SecurityRoleRefType,
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 _Description;
037: protected com.nabhinc.portal.config.RoleLinkType _RoleLink;
038: protected java.lang.String _RoleName;
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.SecurityRoleRefType.class);
045: }
046:
047: protected com.sun.xml.bind.util.ListImpl _getDescription() {
048: if (_Description == null) {
049: _Description = new com.sun.xml.bind.util.ListImpl(
050: new java.util.ArrayList());
051: }
052: return _Description;
053: }
054:
055: public java.util.List getDescription() {
056: return _getDescription();
057: }
058:
059: public com.nabhinc.portal.config.RoleLinkType getRoleLink() {
060: return _RoleLink;
061: }
062:
063: public void setRoleLink(com.nabhinc.portal.config.RoleLinkType value) {
064: _RoleLink = value;
065: }
066:
067: public java.lang.String getRoleName() {
068: return _RoleName;
069: }
070:
071: public void setRoleName(java.lang.String value) {
072: _RoleName = 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.SecurityRoleRefTypeImpl.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 idx1 = 0;
093: final int len1 = ((_Description == null) ? 0 : _Description
094: .size());
095: while (idx1 != len1) {
096: context
097: .startElement(
098: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
099: "description");
100: int idx_0 = idx1;
101: context.childAsURIs(
102: ((com.sun.xml.bind.JAXBObject) _Description
103: .get(idx_0++)), "Description");
104: context.endNamespaceDecls();
105: int idx_1 = idx1;
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(idx1++)), "Description");
113: context.endElement();
114: }
115: context
116: .startElement(
117: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
118: "role-name");
119: context.endNamespaceDecls();
120: context.endAttributes();
121: try {
122: context.text(((java.lang.String) _RoleName), "RoleName");
123: } catch (java.lang.Exception e) {
124: com.nabhinc.portal.config.impl.runtime.Util
125: .handlePrintConversionException(this , e, context);
126: }
127: context.endElement();
128: if (_RoleLink != null) {
129: context
130: .startElement(
131: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
132: "role-link");
133: context.childAsURIs(
134: ((com.sun.xml.bind.JAXBObject) _RoleLink),
135: "RoleLink");
136: context.endNamespaceDecls();
137: context.childAsAttributes(
138: ((com.sun.xml.bind.JAXBObject) _RoleLink),
139: "RoleLink");
140: context.endAttributes();
141: context.childAsBody(
142: ((com.sun.xml.bind.JAXBObject) _RoleLink),
143: "RoleLink");
144: context.endElement();
145: }
146: }
147:
148: public void serializeAttributes(
149: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
150: throws org.xml.sax.SAXException {
151: int idx1 = 0;
152: final int len1 = ((_Description == null) ? 0 : _Description
153: .size());
154: if (_Id != null) {
155: context.startAttribute("", "id");
156: try {
157: context.text(((java.lang.String) _Id), "Id");
158: } catch (java.lang.Exception e) {
159: com.nabhinc.portal.config.impl.runtime.Util
160: .handlePrintConversionException(this , e,
161: context);
162: }
163: context.endAttribute();
164: }
165: while (idx1 != len1) {
166: idx1 += 1;
167: }
168: }
169:
170: public void serializeURIs(
171: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
172: throws org.xml.sax.SAXException {
173: int idx1 = 0;
174: final int len1 = ((_Description == null) ? 0 : _Description
175: .size());
176: while (idx1 != len1) {
177: idx1 += 1;
178: }
179: }
180:
181: public java.lang.Class getPrimaryInterface() {
182: return (com.nabhinc.portal.config.SecurityRoleRefType.class);
183: }
184:
185: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
186: if (schemaFragment == null) {
187: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
188: .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"
189: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
190: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
191: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
192: + "expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv.grammar."
193: + "ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.OneOrMor"
194: + "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"
195: + "\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000ps"
196: + "r\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tname"
197: + "Classt\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.gramm"
198: + "ar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcont"
199: + "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~"
200: + "\u0000\u000epsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000"
201: + "\u0002L\u0000\tnameClassq\u0000~\u0000\u0010xq\u0000~\u0000\u0003q\u0000~\u0000\u000epsr\u00002com.sun.msv.grammar.Expres"
202: + "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"
203: + ".sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.gram"
204: + "mar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression"
205: + "$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"
206: + ".grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang"
207: + "/String;L\u0000\fnamespaceURIq\u0000~\u0000\"xq\u0000~\u0000\u001dt\u0000)com.nabhinc.portal.conf"
208: + "ig.DescriptionTypet\u0000+http://java.sun.com/jaxb/xjc/dummy-elem"
209: + "entssq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000"
210: + "\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L"
211: + "\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.ms"
212: + "v.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype."
213: + "xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd"
214: + ".ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatat"
215: + "ypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\"L\u0000\btypeNameq\u0000~\u0000\"L\u0000\nwhi"
216: + "teSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000"
217: + " http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.dat"
218: + "atype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun"
219: + ".msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.su"
220: + "n.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003p"
221: + "psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\""
222: + "L\u0000\fnamespaceURIq\u0000~\u0000\"xpq\u0000~\u00003q\u0000~\u00002sq\u0000~\u0000!t\u0000\u0004typet\u0000)http://www.w"
223: + "3.org/2001/XMLSchema-instanceq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u000bdescriptiont\u00006htt"
224: + "p://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsdq\u0000~\u0000 sq\u0000~"
225: + "\u0000\u000fpp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000(ppsr\u0000\'com.sun.msv.datatype.xsd.FinalCompo"
226: + "nent\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\nfinalValuexr\u0000\u001ecom.sun.msv.datatype.xsd.Pro"
227: + "xy\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatat"
228: + "ypeImpl;xq\u0000~\u0000/q\u0000~\u0000@t\u0000\rrole-nameTypeq\u0000~\u00006sr\u0000$com.sun.msv.data"
229: + "type.xsd.NmtokenType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\"com.sun.msv.datatype.xsd."
230: + "TokenType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000#com.sun.msv.datatype.xsd.StringType\u0000"
231: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u0000-q\u0000~\u00002t\u0000\u0007NMTOKENq\u0000~\u00006\u0000\u0000\u0000\u0000\u0000q\u0000~"
232: + "\u00008sq\u0000~\u00009q\u0000~\u0000Mq\u0000~\u0000@sq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000+q\u0000~\u0000;q\u0000~\u0000 sq\u0000~\u0000!t"
233: + "\u0000\trole-nameq\u0000~\u0000@sq\u0000~\u0000\bppsq\u0000~\u0000\u000fq\u0000~\u0000\u000ep\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\b"
234: + "ppsq\u0000~\u0000\nq\u0000~\u0000\u000epsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000&com.nabhin"
235: + "c.portal.config.RoleLinkTypeq\u0000~\u0000%sq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000+q\u0000"
236: + "~\u0000;q\u0000~\u0000 sq\u0000~\u0000!t\u0000\trole-linkq\u0000~\u0000@q\u0000~\u0000 sq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epsq\u0000~"
237: + "\u0000(ppsq\u0000~\u0000Kq\u0000~\u00002t\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSp"
238: + "aceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00005\u0001q\u0000~\u00008sq\u0000~\u00009q\u0000~\u0000dq\u0000~\u00002"
239: + "sq\u0000~\u0000!t\u0000\u0002idt\u0000\u0000q\u0000~\u0000 sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000"
240: + "\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$Cl"
241: + "osedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash"
242: + "\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/"
243: + "grammar/ExpressionPool;xp\u0000\u0000\u0000\u0011\u0001pq\u0000~\u0000\fq\u0000~\u0000&q\u0000~\u0000Oq\u0000~\u0000\\q\u0000~\u0000Bq\u0000~\u0000"
244: + "\u0007q\u0000~\u0000\u0015q\u0000~\u0000Wq\u0000~\u0000`q\u0000~\u0000\u0016q\u0000~\u0000Xq\u0000~\u0000\tq\u0000~\u0000\u0005q\u0000~\u0000\u0013q\u0000~\u0000Uq\u0000~\u0000Sq\u0000~\u0000\u0006x"));
245: }
246: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
247: schemaFragment);
248: }
249:
250: public class Unmarshaller
251: extends
252: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
253:
254: public Unmarshaller(
255: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
256: super (context, "-------------");
257: }
258:
259: protected Unmarshaller(
260: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
261: int startState) {
262: this (context);
263: state = startState;
264: }
265:
266: public java.lang.Object owner() {
267: return com.nabhinc.portal.config.impl.SecurityRoleRefTypeImpl.this ;
268: }
269:
270: public void enterElement(java.lang.String ___uri,
271: java.lang.String ___local, java.lang.String ___qname,
272: org.xml.sax.Attributes __atts)
273: throws org.xml.sax.SAXException {
274: int attIdx;
275: outer: while (true) {
276: switch (state) {
277: case 4:
278: attIdx = context.getAttribute(
279: "http://www.w3.org/XML/1998/namespace",
280: "lang");
281: if (attIdx >= 0) {
282: context.consumeAttribute(attIdx);
283: context.getCurrentHandler().enterElement(
284: ___uri, ___local, ___qname, __atts);
285: return;
286: }
287: break;
288: case 0:
289: attIdx = context.getAttribute("", "id");
290: if (attIdx >= 0) {
291: final java.lang.String v = context
292: .eatAttribute(attIdx);
293: eatText1(v);
294: state = 3;
295: continue outer;
296: }
297: state = 3;
298: continue outer;
299: case 9:
300: if (("role-link" == ___local)
301: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
302: context.pushAttributes(__atts, true);
303: state = 10;
304: return;
305: }
306: state = 12;
307: continue outer;
308: case 6:
309: if (("description" == ___local)
310: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
311: context.pushAttributes(__atts, true);
312: state = 4;
313: return;
314: }
315: if (("role-name" == ___local)
316: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
317: context.pushAttributes(__atts, true);
318: state = 7;
319: return;
320: }
321: break;
322: case 12:
323: revertToParentFromEnterElement(___uri, ___local,
324: ___qname, __atts);
325: return;
326: case 3:
327: if (("description" == ___local)
328: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
329: context.pushAttributes(__atts, true);
330: state = 4;
331: return;
332: }
333: state = 6;
334: continue outer;
335: }
336: super .enterElement(___uri, ___local, ___qname, __atts);
337: break;
338: }
339: }
340:
341: private void eatText1(final java.lang.String value)
342: throws org.xml.sax.SAXException {
343: try {
344: _Id = value;
345: } catch (java.lang.Exception e) {
346: handleParseConversionException(e);
347: }
348: }
349:
350: public void leaveElement(java.lang.String ___uri,
351: java.lang.String ___local, java.lang.String ___qname)
352: throws org.xml.sax.SAXException {
353: int attIdx;
354: outer: while (true) {
355: switch (state) {
356: case 11:
357: if (("role-link" == ___local)
358: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
359: context.popAttributes();
360: state = 12;
361: return;
362: }
363: break;
364: case 8:
365: if (("role-name" == ___local)
366: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
367: context.popAttributes();
368: state = 9;
369: return;
370: }
371: break;
372: case 5:
373: if (("description" == ___local)
374: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
375: context.popAttributes();
376: state = 6;
377: return;
378: }
379: break;
380: case 4:
381: attIdx = context.getAttribute(
382: "http://www.w3.org/XML/1998/namespace",
383: "lang");
384: if (attIdx >= 0) {
385: context.consumeAttribute(attIdx);
386: context.getCurrentHandler().leaveElement(
387: ___uri, ___local, ___qname);
388: return;
389: }
390: break;
391: case 0:
392: attIdx = context.getAttribute("", "id");
393: if (attIdx >= 0) {
394: final java.lang.String v = context
395: .eatAttribute(attIdx);
396: eatText1(v);
397: state = 3;
398: continue outer;
399: }
400: state = 3;
401: continue outer;
402: case 9:
403: state = 12;
404: continue outer;
405: case 12:
406: revertToParentFromLeaveElement(___uri, ___local,
407: ___qname);
408: return;
409: case 3:
410: state = 6;
411: continue outer;
412: }
413: super .leaveElement(___uri, ___local, ___qname);
414: break;
415: }
416: }
417:
418: public void enterAttribute(java.lang.String ___uri,
419: java.lang.String ___local, java.lang.String ___qname)
420: throws org.xml.sax.SAXException {
421: int attIdx;
422: outer: while (true) {
423: switch (state) {
424: case 4:
425: if (("lang" == ___local)
426: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
427: _getDescription()
428: .add(
429: ((com.nabhinc.portal.config.impl.DescriptionTypeImpl) spawnChildFromEnterAttribute(
430: (com.nabhinc.portal.config.impl.DescriptionTypeImpl.class),
431: 5, ___uri, ___local,
432: ___qname)));
433: return;
434: }
435: break;
436: case 0:
437: if (("id" == ___local) && ("" == ___uri)) {
438: state = 1;
439: return;
440: }
441: state = 3;
442: continue outer;
443: case 9:
444: state = 12;
445: continue outer;
446: case 12:
447: revertToParentFromEnterAttribute(___uri, ___local,
448: ___qname);
449: return;
450: case 3:
451: state = 6;
452: continue outer;
453: }
454: super .enterAttribute(___uri, ___local, ___qname);
455: break;
456: }
457: }
458:
459: public void leaveAttribute(java.lang.String ___uri,
460: java.lang.String ___local, java.lang.String ___qname)
461: throws org.xml.sax.SAXException {
462: int attIdx;
463: outer: while (true) {
464: switch (state) {
465: case 4:
466: attIdx = context.getAttribute(
467: "http://www.w3.org/XML/1998/namespace",
468: "lang");
469: if (attIdx >= 0) {
470: context.consumeAttribute(attIdx);
471: context.getCurrentHandler().leaveAttribute(
472: ___uri, ___local, ___qname);
473: return;
474: }
475: break;
476: case 0:
477: attIdx = context.getAttribute("", "id");
478: if (attIdx >= 0) {
479: final java.lang.String v = context
480: .eatAttribute(attIdx);
481: eatText1(v);
482: state = 3;
483: continue outer;
484: }
485: state = 3;
486: continue outer;
487: case 9:
488: state = 12;
489: continue outer;
490: case 12:
491: revertToParentFromLeaveAttribute(___uri, ___local,
492: ___qname);
493: return;
494: case 3:
495: state = 6;
496: continue outer;
497: case 2:
498: if (("id" == ___local) && ("" == ___uri)) {
499: state = 3;
500: return;
501: }
502: break;
503: }
504: super .leaveAttribute(___uri, ___local, ___qname);
505: break;
506: }
507: }
508:
509: public void handleText(final java.lang.String value)
510: throws org.xml.sax.SAXException {
511: int attIdx;
512: outer: while (true) {
513: try {
514: switch (state) {
515: case 4:
516: attIdx = context.getAttribute(
517: "http://www.w3.org/XML/1998/namespace",
518: "lang");
519: if (attIdx >= 0) {
520: context.consumeAttribute(attIdx);
521: context.getCurrentHandler().text(value);
522: return;
523: }
524: _getDescription()
525: .add(
526: ((com.nabhinc.portal.config.impl.DescriptionTypeImpl) spawnChildFromText(
527: (com.nabhinc.portal.config.impl.DescriptionTypeImpl.class),
528: 5, value)));
529: return;
530: case 10:
531: _RoleLink = ((com.nabhinc.portal.config.impl.RoleLinkTypeImpl) spawnChildFromText(
532: (com.nabhinc.portal.config.impl.RoleLinkTypeImpl.class),
533: 11, value));
534: return;
535: case 1:
536: eatText1(value);
537: state = 2;
538: return;
539: case 0:
540: attIdx = context.getAttribute("", "id");
541: if (attIdx >= 0) {
542: final java.lang.String v = context
543: .eatAttribute(attIdx);
544: eatText1(v);
545: state = 3;
546: continue outer;
547: }
548: state = 3;
549: continue outer;
550: case 9:
551: state = 12;
552: continue outer;
553: case 12:
554: revertToParentFromText(value);
555: return;
556: case 3:
557: state = 6;
558: continue outer;
559: case 7:
560: eatText2(value);
561: state = 8;
562: return;
563: }
564: } catch (java.lang.RuntimeException e) {
565: handleUnexpectedTextException(value, e);
566: }
567: break;
568: }
569: }
570:
571: private void eatText2(final java.lang.String value)
572: throws org.xml.sax.SAXException {
573: try {
574: _RoleName = com.sun.xml.bind.WhiteSpaceProcessor
575: .collapse(value);
576: } catch (java.lang.Exception e) {
577: handleParseConversionException(e);
578: }
579: }
580:
581: }
582:
583: }
|