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 SecurityConstraintTypeImpl implements
030: com.nabhinc.portal.config.SecurityConstraintType,
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 _DisplayName;
037: protected com.nabhinc.portal.config.PortletCollectionType _PortletCollection;
038: protected com.nabhinc.portal.config.UserDataConstraintType _UserDataConstraint;
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.SecurityConstraintType.class);
045: }
046:
047: protected com.sun.xml.bind.util.ListImpl _getDisplayName() {
048: if (_DisplayName == null) {
049: _DisplayName = new com.sun.xml.bind.util.ListImpl(
050: new java.util.ArrayList());
051: }
052: return _DisplayName;
053: }
054:
055: public java.util.List getDisplayName() {
056: return _getDisplayName();
057: }
058:
059: public com.nabhinc.portal.config.PortletCollectionType getPortletCollection() {
060: return _PortletCollection;
061: }
062:
063: public void setPortletCollection(
064: com.nabhinc.portal.config.PortletCollectionType value) {
065: _PortletCollection = value;
066: }
067:
068: public com.nabhinc.portal.config.UserDataConstraintType getUserDataConstraint() {
069: return _UserDataConstraint;
070: }
071:
072: public void setUserDataConstraint(
073: com.nabhinc.portal.config.UserDataConstraintType value) {
074: _UserDataConstraint = value;
075: }
076:
077: public java.lang.String getId() {
078: return _Id;
079: }
080:
081: public void setId(java.lang.String value) {
082: _Id = value;
083: }
084:
085: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
086: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
087: return new com.nabhinc.portal.config.impl.SecurityConstraintTypeImpl.Unmarshaller(
088: context);
089: }
090:
091: public void serializeBody(
092: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
093: throws org.xml.sax.SAXException {
094: int idx1 = 0;
095: final int len1 = ((_DisplayName == null) ? 0 : _DisplayName
096: .size());
097: while (idx1 != len1) {
098: context
099: .startElement(
100: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
101: "display-name");
102: int idx_0 = idx1;
103: context.childAsURIs(
104: ((com.sun.xml.bind.JAXBObject) _DisplayName
105: .get(idx_0++)), "DisplayName");
106: context.endNamespaceDecls();
107: int idx_1 = idx1;
108: context.childAsAttributes(
109: ((com.sun.xml.bind.JAXBObject) _DisplayName
110: .get(idx_1++)), "DisplayName");
111: context.endAttributes();
112: context.childAsBody(
113: ((com.sun.xml.bind.JAXBObject) _DisplayName
114: .get(idx1++)), "DisplayName");
115: context.endElement();
116: }
117: context
118: .startElement(
119: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
120: "portlet-collection");
121: context.childAsURIs(
122: ((com.sun.xml.bind.JAXBObject) _PortletCollection),
123: "PortletCollection");
124: context.endNamespaceDecls();
125: context.childAsAttributes(
126: ((com.sun.xml.bind.JAXBObject) _PortletCollection),
127: "PortletCollection");
128: context.endAttributes();
129: context.childAsBody(
130: ((com.sun.xml.bind.JAXBObject) _PortletCollection),
131: "PortletCollection");
132: context.endElement();
133: context
134: .startElement(
135: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
136: "user-data-constraint");
137: context.childAsURIs(
138: ((com.sun.xml.bind.JAXBObject) _UserDataConstraint),
139: "UserDataConstraint");
140: context.endNamespaceDecls();
141: context.childAsAttributes(
142: ((com.sun.xml.bind.JAXBObject) _UserDataConstraint),
143: "UserDataConstraint");
144: context.endAttributes();
145: context.childAsBody(
146: ((com.sun.xml.bind.JAXBObject) _UserDataConstraint),
147: "UserDataConstraint");
148: context.endElement();
149: }
150:
151: public void serializeAttributes(
152: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
153: throws org.xml.sax.SAXException {
154: int idx1 = 0;
155: final int len1 = ((_DisplayName == null) ? 0 : _DisplayName
156: .size());
157: if (_Id != null) {
158: context.startAttribute("", "id");
159: try {
160: context.text(((java.lang.String) _Id), "Id");
161: } catch (java.lang.Exception e) {
162: com.nabhinc.portal.config.impl.runtime.Util
163: .handlePrintConversionException(this , e,
164: context);
165: }
166: context.endAttribute();
167: }
168: while (idx1 != len1) {
169: idx1 += 1;
170: }
171: }
172:
173: public void serializeURIs(
174: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
175: throws org.xml.sax.SAXException {
176: int idx1 = 0;
177: final int len1 = ((_DisplayName == null) ? 0 : _DisplayName
178: .size());
179: while (idx1 != len1) {
180: idx1 += 1;
181: }
182: }
183:
184: public java.lang.Class getPrimaryInterface() {
185: return (com.nabhinc.portal.config.SecurityConstraintType.class);
186: }
187:
188: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
189: if (schemaFragment == null) {
190: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
191: .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"
192: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
193: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
194: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
195: + "expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv.grammar."
196: + "ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.OneOrMor"
197: + "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"
198: + "\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000ps"
199: + "r\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tname"
200: + "Classt\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.gramm"
201: + "ar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcont"
202: + "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~"
203: + "\u0000\u000epsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000"
204: + "\u0002L\u0000\tnameClassq\u0000~\u0000\u0010xq\u0000~\u0000\u0003q\u0000~\u0000\u000epsr\u00002com.sun.msv.grammar.Expres"
205: + "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"
206: + ".sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.gram"
207: + "mar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression"
208: + "$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"
209: + ".grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang"
210: + "/String;L\u0000\fnamespaceURIq\u0000~\u0000\"xq\u0000~\u0000\u001dt\u0000)com.nabhinc.portal.conf"
211: + "ig.DisplayNameTypet\u0000+http://java.sun.com/jaxb/xjc/dummy-elem"
212: + "entssq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000"
213: + "\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L"
214: + "\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.ms"
215: + "v.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype."
216: + "xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd"
217: + ".ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatat"
218: + "ypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\"L\u0000\btypeNameq\u0000~\u0000\"L\u0000\nwhi"
219: + "teSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000"
220: + " http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.dat"
221: + "atype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun"
222: + ".msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.su"
223: + "n.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003p"
224: + "psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\""
225: + "L\u0000\fnamespaceURIq\u0000~\u0000\"xpq\u0000~\u00003q\u0000~\u00002sq\u0000~\u0000!t\u0000\u0004typet\u0000)http://www.w"
226: + "3.org/2001/XMLSchema-instanceq\u0000~\u0000 sq\u0000~\u0000!t\u0000\fdisplay-namet\u00006ht"
227: + "tp://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsdq\u0000~\u0000 sq\u0000"
228: + "~\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\u001a"
229: + "q\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000/com.nabhinc.portal.config.PortletCollecti"
230: + "onTypeq\u0000~\u0000%sq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000+q\u0000~\u0000;q\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0012portl"
231: + "et-collectionq\u0000~\u0000@sq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\bppsq\u0000~\u0000\nq\u0000"
232: + "~\u0000\u000epsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u00000com.nabhinc.portal.c"
233: + "onfig.UserDataConstraintTypeq\u0000~\u0000%sq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epq\u0000~\u0000+q\u0000"
234: + "~\u0000;q\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0014user-data-constraintq\u0000~\u0000@sq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000"
235: + "\u000epsq\u0000~\u0000(ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001"
236: + "Z\u0000\risAlwaysValidxq\u0000~\u0000-q\u0000~\u00002t\u0000\u0006stringsr\u00005com.sun.msv.datatype"
237: + ".xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00005\u0001q\u0000~\u00008sq\u0000~"
238: + "\u00009q\u0000~\u0000^q\u0000~\u00002sq\u0000~\u0000!t\u0000\u0002idt\u0000\u0000q\u0000~\u0000 sr\u0000\"com.sun.msv.grammar.Expre"
239: + "ssionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Expre"
240: + "ssionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPoo"
241: + "l$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$L"
242: + "com/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0012\u0001pq\u0000~\u0000\fq\u0000~\u0000&q\u0000~\u0000Iq\u0000"
243: + "~\u0000Uq\u0000~\u0000\u0015q\u0000~\u0000Dq\u0000~\u0000Pq\u0000~\u0000\u0016q\u0000~\u0000Eq\u0000~\u0000Qq\u0000~\u0000\u0006q\u0000~\u0000\tq\u0000~\u0000\u0005q\u0000~\u0000\u0013q\u0000~\u0000Bq\u0000"
244: + "~\u0000Nq\u0000~\u0000Yq\u0000~\u0000\u0007x"));
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.SecurityConstraintTypeImpl.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 10:
278: attIdx = context.getAttribute("", "id");
279: if (attIdx >= 0) {
280: context.consumeAttribute(attIdx);
281: context.getCurrentHandler().enterElement(
282: ___uri, ___local, ___qname, __atts);
283: return;
284: }
285: if (("description" == ___local)
286: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
287: _UserDataConstraint = ((com.nabhinc.portal.config.impl.UserDataConstraintTypeImpl) spawnChildFromEnterElement(
288: (com.nabhinc.portal.config.impl.UserDataConstraintTypeImpl.class),
289: 11, ___uri, ___local, ___qname, __atts));
290: return;
291: }
292: if (("transport-guarantee" == ___local)
293: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
294: _UserDataConstraint = ((com.nabhinc.portal.config.impl.UserDataConstraintTypeImpl) spawnChildFromEnterElement(
295: (com.nabhinc.portal.config.impl.UserDataConstraintTypeImpl.class),
296: 11, ___uri, ___local, ___qname, __atts));
297: return;
298: }
299: break;
300: case 3:
301: if (("display-name" == ___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: state = 6;
308: continue outer;
309: case 9:
310: if (("user-data-constraint" == ___local)
311: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
312: context.pushAttributes(__atts, false);
313: state = 10;
314: return;
315: }
316: break;
317: case 12:
318: revertToParentFromEnterElement(___uri, ___local,
319: ___qname, __atts);
320: return;
321: case 6:
322: if (("display-name" == ___local)
323: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
324: context.pushAttributes(__atts, true);
325: state = 4;
326: return;
327: }
328: if (("portlet-collection" == ___local)
329: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
330: context.pushAttributes(__atts, false);
331: state = 7;
332: return;
333: }
334: break;
335: case 4:
336: attIdx = context.getAttribute(
337: "http://www.w3.org/XML/1998/namespace",
338: "lang");
339: if (attIdx >= 0) {
340: context.consumeAttribute(attIdx);
341: context.getCurrentHandler().enterElement(
342: ___uri, ___local, ___qname, __atts);
343: return;
344: }
345: break;
346: case 0:
347: attIdx = context.getAttribute("", "id");
348: if (attIdx >= 0) {
349: final java.lang.String v = context
350: .eatAttribute(attIdx);
351: eatText1(v);
352: state = 3;
353: continue outer;
354: }
355: state = 3;
356: continue outer;
357: case 7:
358: if (("portlet-name" == ___local)
359: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
360: _PortletCollection = ((com.nabhinc.portal.config.impl.PortletCollectionTypeImpl) spawnChildFromEnterElement(
361: (com.nabhinc.portal.config.impl.PortletCollectionTypeImpl.class),
362: 8, ___uri, ___local, ___qname, __atts));
363: return;
364: }
365: break;
366: }
367: super .enterElement(___uri, ___local, ___qname, __atts);
368: break;
369: }
370: }
371:
372: private void eatText1(final java.lang.String value)
373: throws org.xml.sax.SAXException {
374: try {
375: _Id = value;
376: } catch (java.lang.Exception e) {
377: handleParseConversionException(e);
378: }
379: }
380:
381: public void leaveElement(java.lang.String ___uri,
382: java.lang.String ___local, java.lang.String ___qname)
383: throws org.xml.sax.SAXException {
384: int attIdx;
385: outer: while (true) {
386: switch (state) {
387: case 10:
388: attIdx = context.getAttribute("", "id");
389: if (attIdx >= 0) {
390: context.consumeAttribute(attIdx);
391: context.getCurrentHandler().leaveElement(
392: ___uri, ___local, ___qname);
393: return;
394: }
395: break;
396: case 3:
397: state = 6;
398: continue outer;
399: case 11:
400: if (("user-data-constraint" == ___local)
401: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
402: context.popAttributes();
403: state = 12;
404: return;
405: }
406: break;
407: case 12:
408: revertToParentFromLeaveElement(___uri, ___local,
409: ___qname);
410: return;
411: case 5:
412: if (("display-name" == ___local)
413: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
414: context.popAttributes();
415: state = 6;
416: return;
417: }
418: break;
419: case 4:
420: attIdx = context.getAttribute(
421: "http://www.w3.org/XML/1998/namespace",
422: "lang");
423: if (attIdx >= 0) {
424: context.consumeAttribute(attIdx);
425: context.getCurrentHandler().leaveElement(
426: ___uri, ___local, ___qname);
427: return;
428: }
429: break;
430: case 8:
431: if (("portlet-collection" == ___local)
432: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
433: context.popAttributes();
434: state = 9;
435: return;
436: }
437: break;
438: case 0:
439: attIdx = context.getAttribute("", "id");
440: if (attIdx >= 0) {
441: final java.lang.String v = context
442: .eatAttribute(attIdx);
443: eatText1(v);
444: state = 3;
445: continue outer;
446: }
447: state = 3;
448: continue outer;
449: }
450: super .leaveElement(___uri, ___local, ___qname);
451: break;
452: }
453: }
454:
455: public void enterAttribute(java.lang.String ___uri,
456: java.lang.String ___local, java.lang.String ___qname)
457: throws org.xml.sax.SAXException {
458: int attIdx;
459: outer: while (true) {
460: switch (state) {
461: case 10:
462: if (("id" == ___local) && ("" == ___uri)) {
463: _UserDataConstraint = ((com.nabhinc.portal.config.impl.UserDataConstraintTypeImpl) spawnChildFromEnterAttribute(
464: (com.nabhinc.portal.config.impl.UserDataConstraintTypeImpl.class),
465: 11, ___uri, ___local, ___qname));
466: return;
467: }
468: break;
469: case 3:
470: state = 6;
471: continue outer;
472: case 12:
473: revertToParentFromEnterAttribute(___uri, ___local,
474: ___qname);
475: return;
476: case 4:
477: if (("lang" == ___local)
478: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
479: _getDisplayName()
480: .add(
481: ((com.nabhinc.portal.config.impl.DisplayNameTypeImpl) spawnChildFromEnterAttribute(
482: (com.nabhinc.portal.config.impl.DisplayNameTypeImpl.class),
483: 5, ___uri, ___local,
484: ___qname)));
485: return;
486: }
487: break;
488: case 0:
489: if (("id" == ___local) && ("" == ___uri)) {
490: state = 1;
491: return;
492: }
493: state = 3;
494: continue outer;
495: }
496: super .enterAttribute(___uri, ___local, ___qname);
497: break;
498: }
499: }
500:
501: public void leaveAttribute(java.lang.String ___uri,
502: java.lang.String ___local, java.lang.String ___qname)
503: throws org.xml.sax.SAXException {
504: int attIdx;
505: outer: while (true) {
506: switch (state) {
507: case 10:
508: attIdx = context.getAttribute("", "id");
509: if (attIdx >= 0) {
510: context.consumeAttribute(attIdx);
511: context.getCurrentHandler().leaveAttribute(
512: ___uri, ___local, ___qname);
513: return;
514: }
515: break;
516: case 3:
517: state = 6;
518: continue outer;
519: case 12:
520: revertToParentFromLeaveAttribute(___uri, ___local,
521: ___qname);
522: return;
523: case 4:
524: attIdx = context.getAttribute(
525: "http://www.w3.org/XML/1998/namespace",
526: "lang");
527: if (attIdx >= 0) {
528: context.consumeAttribute(attIdx);
529: context.getCurrentHandler().leaveAttribute(
530: ___uri, ___local, ___qname);
531: return;
532: }
533: break;
534: case 0:
535: attIdx = context.getAttribute("", "id");
536: if (attIdx >= 0) {
537: final java.lang.String v = context
538: .eatAttribute(attIdx);
539: eatText1(v);
540: state = 3;
541: continue outer;
542: }
543: state = 3;
544: continue outer;
545: case 2:
546: if (("id" == ___local) && ("" == ___uri)) {
547: state = 3;
548: return;
549: }
550: break;
551: }
552: super .leaveAttribute(___uri, ___local, ___qname);
553: break;
554: }
555: }
556:
557: public void handleText(final java.lang.String value)
558: throws org.xml.sax.SAXException {
559: int attIdx;
560: outer: while (true) {
561: try {
562: switch (state) {
563: case 10:
564: attIdx = context.getAttribute("", "id");
565: if (attIdx >= 0) {
566: context.consumeAttribute(attIdx);
567: context.getCurrentHandler().text(value);
568: return;
569: }
570: break;
571: case 3:
572: state = 6;
573: continue outer;
574: case 12:
575: revertToParentFromText(value);
576: return;
577: case 4:
578: attIdx = context.getAttribute(
579: "http://www.w3.org/XML/1998/namespace",
580: "lang");
581: if (attIdx >= 0) {
582: context.consumeAttribute(attIdx);
583: context.getCurrentHandler().text(value);
584: return;
585: }
586: _getDisplayName()
587: .add(
588: ((com.nabhinc.portal.config.impl.DisplayNameTypeImpl) spawnChildFromText(
589: (com.nabhinc.portal.config.impl.DisplayNameTypeImpl.class),
590: 5, value)));
591: return;
592: case 0:
593: attIdx = context.getAttribute("", "id");
594: if (attIdx >= 0) {
595: final java.lang.String v = context
596: .eatAttribute(attIdx);
597: eatText1(v);
598: state = 3;
599: continue outer;
600: }
601: state = 3;
602: continue outer;
603: case 1:
604: eatText1(value);
605: state = 2;
606: return;
607: }
608: } catch (java.lang.RuntimeException e) {
609: handleUnexpectedTextException(value, e);
610: }
611: break;
612: }
613: }
614:
615: }
616:
617: }
|