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 PortletCollectionTypeImpl implements
030: com.nabhinc.portal.config.PortletCollectionType,
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 _PortletName;
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.PortletCollectionType.class);
042: }
043:
044: protected com.sun.xml.bind.util.ListImpl _getPortletName() {
045: if (_PortletName == null) {
046: _PortletName = new com.sun.xml.bind.util.ListImpl(
047: new java.util.ArrayList());
048: }
049: return _PortletName;
050: }
051:
052: public java.util.List getPortletName() {
053: return _getPortletName();
054: }
055:
056: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
057: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
058: return new com.nabhinc.portal.config.impl.PortletCollectionTypeImpl.Unmarshaller(
059: context);
060: }
061:
062: public void serializeBody(
063: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
064: throws org.xml.sax.SAXException {
065: int idx1 = 0;
066: final int len1 = ((_PortletName == null) ? 0 : _PortletName
067: .size());
068: while (idx1 != len1) {
069: context
070: .startElement(
071: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
072: "portlet-name");
073: int idx_0 = idx1;
074: context.childAsURIs(
075: ((com.sun.xml.bind.JAXBObject) _PortletName
076: .get(idx_0++)), "PortletName");
077: context.endNamespaceDecls();
078: int idx_1 = idx1;
079: context.childAsAttributes(
080: ((com.sun.xml.bind.JAXBObject) _PortletName
081: .get(idx_1++)), "PortletName");
082: context.endAttributes();
083: context.childAsBody(
084: ((com.sun.xml.bind.JAXBObject) _PortletName
085: .get(idx1++)), "PortletName");
086: context.endElement();
087: }
088: }
089:
090: public void serializeAttributes(
091: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
092: throws org.xml.sax.SAXException {
093: int idx1 = 0;
094: final int len1 = ((_PortletName == null) ? 0 : _PortletName
095: .size());
096: while (idx1 != len1) {
097: idx1 += 1;
098: }
099: }
100:
101: public void serializeURIs(
102: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
103: throws org.xml.sax.SAXException {
104: int idx1 = 0;
105: final int len1 = ((_PortletName == null) ? 0 : _PortletName
106: .size());
107: while (idx1 != len1) {
108: idx1 += 1;
109: }
110: }
111:
112: public java.lang.Class getPrimaryInterface() {
113: return (com.nabhinc.portal.config.PortletCollectionType.class);
114: }
115:
116: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
117: if (schemaFragment == null) {
118: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
119: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.s"
120: + "un.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expt\u0000 Lcom/sun/msv/gram"
121: + "mar/Expression;xr\u0000\u001ecom.sun.msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002"
122: + "L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000"
123: + "~\u0000\u0002xpppsr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
124: + "\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.m"
125: + "sv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttribute"
126: + "sL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sr\u0000\u001fcom.sun.msv.grammar.Sequen"
127: + "ceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002"
128: + "L\u0000\u0004exp1q\u0000~\u0000\u0002L\u0000\u0004exp2q\u0000~\u0000\u0002xq\u0000~\u0000\u0003ppsq\u0000~\u0000\u0006pp\u0000sr\u0000\u001dcom.sun.msv.gra"
129: + "mmar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000bppsq\u0000~\u0000\u0000sr\u0000\u0011java.lang.Boolean"
130: + "\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.msv.grammar.AttributeExp\u0000"
131: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\u0007xq\u0000~\u0000\u0003q\u0000~\u0000\u0012psr\u00002com.su"
132: + "n.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000"
133: + "\u0003sq\u0000~\u0000\u0011\u0001q\u0000~\u0000\u0016sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
134: + "xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.ms"
135: + "v.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u0017"
136: + "q\u0000~\u0000\u001csr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlo"
137: + "calNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001exq\u0000~\u0000\u0019t\u0000)com"
138: + ".nabhinc.portal.config.PortletNameTypet\u0000+http://java.sun.com"
139: + "/jaxb/xjc/dummy-elementssq\u0000~\u0000\u000eppsq\u0000~\u0000\u0013q\u0000~\u0000\u0012psr\u0000\u001bcom.sun.msv."
140: + "grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Data"
141: + "type;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq"
142: + "\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*c"
143: + "om.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com."
144: + "sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv."
145: + "datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001eL\u0000"
146: + "\btypeNameq\u0000~\u0000\u001eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/Whit"
147: + "eSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QNam"
148: + "esr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000"
149: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000"
150: + "\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpressi"
151: + "on\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0"
152: + "\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001eL\u0000\fnamespaceURIq\u0000~\u0000\u001expq\u0000~\u0000/q\u0000~\u0000.sq\u0000~\u0000\u001dt\u0000"
153: + "\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001csq\u0000~\u0000\u001d"
154: + "t\u0000\fportlet-namet\u00006http://java.sun.com/xml/ns/portlet/portlet"
155: + "-app_1_0.xsdsr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
156: + "\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHas"
157: + "h;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed"
158: + "\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar"
159: + "/ExpressionPool;xp\u0000\u0000\u0000\u0005\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\"q\u0000~\u0000\u000fq\u0000~\u0000\u0010q\u0000~\u0000\fx"));
160: }
161: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
162: schemaFragment);
163: }
164:
165: public class Unmarshaller
166: extends
167: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
168:
169: public Unmarshaller(
170: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
171: super (context, "----");
172: }
173:
174: protected Unmarshaller(
175: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
176: int startState) {
177: this (context);
178: state = startState;
179: }
180:
181: public java.lang.Object owner() {
182: return com.nabhinc.portal.config.impl.PortletCollectionTypeImpl.this ;
183: }
184:
185: public void enterElement(java.lang.String ___uri,
186: java.lang.String ___local, java.lang.String ___qname,
187: org.xml.sax.Attributes __atts)
188: throws org.xml.sax.SAXException {
189: int attIdx;
190: outer: while (true) {
191: switch (state) {
192: case 3:
193: if (("portlet-name" == ___local)
194: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
195: context.pushAttributes(__atts, true);
196: state = 1;
197: return;
198: }
199: revertToParentFromEnterElement(___uri, ___local,
200: ___qname, __atts);
201: return;
202: case 0:
203: if (("portlet-name" == ___local)
204: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
205: context.pushAttributes(__atts, true);
206: state = 1;
207: return;
208: }
209: break;
210: }
211: super .enterElement(___uri, ___local, ___qname, __atts);
212: break;
213: }
214: }
215:
216: public void leaveElement(java.lang.String ___uri,
217: java.lang.String ___local, java.lang.String ___qname)
218: throws org.xml.sax.SAXException {
219: int attIdx;
220: outer: while (true) {
221: switch (state) {
222: case 3:
223: revertToParentFromLeaveElement(___uri, ___local,
224: ___qname);
225: return;
226: case 2:
227: if (("portlet-name" == ___local)
228: && ("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" == ___uri)) {
229: context.popAttributes();
230: state = 3;
231: return;
232: }
233: break;
234: }
235: super .leaveElement(___uri, ___local, ___qname);
236: break;
237: }
238: }
239:
240: public void enterAttribute(java.lang.String ___uri,
241: java.lang.String ___local, java.lang.String ___qname)
242: throws org.xml.sax.SAXException {
243: int attIdx;
244: outer: while (true) {
245: switch (state) {
246: case 3:
247: revertToParentFromEnterAttribute(___uri, ___local,
248: ___qname);
249: return;
250: }
251: super .enterAttribute(___uri, ___local, ___qname);
252: break;
253: }
254: }
255:
256: public void leaveAttribute(java.lang.String ___uri,
257: java.lang.String ___local, java.lang.String ___qname)
258: throws org.xml.sax.SAXException {
259: int attIdx;
260: outer: while (true) {
261: switch (state) {
262: case 3:
263: revertToParentFromLeaveAttribute(___uri, ___local,
264: ___qname);
265: return;
266: }
267: super .leaveAttribute(___uri, ___local, ___qname);
268: break;
269: }
270: }
271:
272: public void handleText(final java.lang.String value)
273: throws org.xml.sax.SAXException {
274: int attIdx;
275: outer: while (true) {
276: try {
277: switch (state) {
278: case 3:
279: revertToParentFromText(value);
280: return;
281: case 1:
282: _getPortletName()
283: .add(
284: ((com.nabhinc.portal.config.impl.PortletNameTypeImpl) spawnChildFromText(
285: (com.nabhinc.portal.config.impl.PortletNameTypeImpl.class),
286: 2, value)));
287: return;
288: }
289: } catch (java.lang.RuntimeException e) {
290: handleUnexpectedTextException(value, e);
291: }
292: break;
293: }
294: }
295:
296: }
297:
298: }
|