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 DescriptionTypeImpl implements
030: com.nabhinc.portal.config.DescriptionType,
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 java.lang.String _Value;
037: protected java.lang.String _Lang;
038: public final static java.lang.Class version = (com.nabhinc.portal.config.impl.JAXBVersion.class);
039: private static com.sun.msv.grammar.Grammar schemaFragment;
040:
041: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
042: return (com.nabhinc.portal.config.DescriptionType.class);
043: }
044:
045: public java.lang.String getValue() {
046: return _Value;
047: }
048:
049: public void setValue(java.lang.String value) {
050: _Value = value;
051: }
052:
053: public java.lang.String getLang() {
054: return _Lang;
055: }
056:
057: public void setLang(java.lang.String value) {
058: _Lang = value;
059: }
060:
061: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
062: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
063: return new com.nabhinc.portal.config.impl.DescriptionTypeImpl.Unmarshaller(
064: context);
065: }
066:
067: public void serializeBody(
068: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
069: throws org.xml.sax.SAXException {
070: try {
071: context.text(((java.lang.String) _Value), "Value");
072: } catch (java.lang.Exception e) {
073: com.nabhinc.portal.config.impl.runtime.Util
074: .handlePrintConversionException(this , e, context);
075: }
076: }
077:
078: public void serializeAttributes(
079: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
080: throws org.xml.sax.SAXException {
081: if (_Lang != null) {
082: context.startAttribute(
083: "http://www.w3.org/XML/1998/namespace", "lang");
084: try {
085: context.text(((java.lang.String) _Lang), "Lang");
086: } catch (java.lang.Exception e) {
087: com.nabhinc.portal.config.impl.runtime.Util
088: .handlePrintConversionException(this , e,
089: context);
090: }
091: context.endAttribute();
092: }
093: }
094:
095: public void serializeURIs(
096: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
097: throws org.xml.sax.SAXException {
098: if (_Lang != null) {
099: context.getNamespaceContext().declareNamespace(
100: "http://www.w3.org/XML/1998/namespace", null, true);
101: }
102: }
103:
104: public java.lang.Class getPrimaryInterface() {
105: return (com.nabhinc.portal.config.DescriptionType.class);
106: }
107:
108: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
109: if (schemaFragment == null) {
110: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
111: .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"
112: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
113: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
114: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
115: + "expandedExpq\u0000~\u0000\u0002xpppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
116: + "\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004na"
117: + "met\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000#com.sun.msv.da"
118: + "tatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun."
119: + "msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv"
120: + ".datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatyp"
121: + "e.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/"
122: + "String;L\u0000\btypeNameq\u0000~\u0000\u000eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype"
123: + "/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSche"
124: + "mat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$"
125: + "Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpacePr"
126: + "ocessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$Null"
127: + "SetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringP"
128: + "air\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000expq\u0000~\u0000\u0012q\u0000"
129: + "~\u0000\u0011sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 c"
130: + "om.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tname"
131: + "Classt\u0000\u001fLcom/sun/msv/grammar/NameClass;xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.B"
132: + "oolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u0006ppsr\u0000%com.sun.msv.datatyp"
133: + "e.xsd.LanguageType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\"com.sun.msv.datatype.xsd.To"
134: + "kenType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\nq\u0000~\u0000\u0011t\u0000\blanguagesr\u00005com.sun.msv.data"
135: + "type.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0014\u0000q\u0000~\u0000\u0017"
136: + "sq\u0000~\u0000\u0018q\u0000~\u0000%q\u0000~\u0000\u0011sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000"
137: + "\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000exr\u0000\u001dcom.sun.msv.g"
138: + "rammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004langt\u0000$http://www.w3.org/XML"
139: + "/1998/namespacesr\u00000com.sun.msv.grammar.Expression$EpsilonExp"
140: + "ression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u001f\u0001q\u0000~\u0000/sr\u0000\"com.sun.msv.grammar."
141: + "ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/"
142: + "ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expressi"
143: + "onPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006paren"
144: + "tt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0002\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\u001bx"));
145: }
146: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
147: schemaFragment);
148: }
149:
150: public class Unmarshaller
151: extends
152: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
153:
154: public Unmarshaller(
155: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
156: super (context, "-----");
157: }
158:
159: protected Unmarshaller(
160: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
161: int startState) {
162: this (context);
163: state = startState;
164: }
165:
166: public java.lang.Object owner() {
167: return com.nabhinc.portal.config.impl.DescriptionTypeImpl.this ;
168: }
169:
170: public void enterElement(java.lang.String ___uri,
171: java.lang.String ___local, java.lang.String ___qname,
172: org.xml.sax.Attributes __atts)
173: throws org.xml.sax.SAXException {
174: int attIdx;
175: outer: while (true) {
176: switch (state) {
177: case 0:
178: attIdx = context.getAttribute(
179: "http://www.w3.org/XML/1998/namespace",
180: "lang");
181: if (attIdx >= 0) {
182: final java.lang.String v = context
183: .eatAttribute(attIdx);
184: eatText1(v);
185: state = 3;
186: continue outer;
187: }
188: state = 3;
189: continue outer;
190: case 4:
191: revertToParentFromEnterElement(___uri, ___local,
192: ___qname, __atts);
193: return;
194: }
195: super .enterElement(___uri, ___local, ___qname, __atts);
196: break;
197: }
198: }
199:
200: private void eatText1(final java.lang.String value)
201: throws org.xml.sax.SAXException {
202: try {
203: _Lang = com.sun.xml.bind.WhiteSpaceProcessor
204: .collapse(value);
205: } catch (java.lang.Exception e) {
206: handleParseConversionException(e);
207: }
208: }
209:
210: public void leaveElement(java.lang.String ___uri,
211: java.lang.String ___local, java.lang.String ___qname)
212: throws org.xml.sax.SAXException {
213: int attIdx;
214: outer: while (true) {
215: switch (state) {
216: case 0:
217: attIdx = context.getAttribute(
218: "http://www.w3.org/XML/1998/namespace",
219: "lang");
220: if (attIdx >= 0) {
221: final java.lang.String v = context
222: .eatAttribute(attIdx);
223: eatText1(v);
224: state = 3;
225: continue outer;
226: }
227: state = 3;
228: continue outer;
229: case 4:
230: revertToParentFromLeaveElement(___uri, ___local,
231: ___qname);
232: return;
233: }
234: super .leaveElement(___uri, ___local, ___qname);
235: break;
236: }
237: }
238:
239: public void enterAttribute(java.lang.String ___uri,
240: java.lang.String ___local, java.lang.String ___qname)
241: throws org.xml.sax.SAXException {
242: int attIdx;
243: outer: while (true) {
244: switch (state) {
245: case 0:
246: if (("lang" == ___local)
247: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
248: state = 1;
249: return;
250: }
251: state = 3;
252: continue outer;
253: case 4:
254: revertToParentFromEnterAttribute(___uri, ___local,
255: ___qname);
256: return;
257: }
258: super .enterAttribute(___uri, ___local, ___qname);
259: break;
260: }
261: }
262:
263: public void leaveAttribute(java.lang.String ___uri,
264: java.lang.String ___local, java.lang.String ___qname)
265: throws org.xml.sax.SAXException {
266: int attIdx;
267: outer: while (true) {
268: switch (state) {
269: case 0:
270: attIdx = context.getAttribute(
271: "http://www.w3.org/XML/1998/namespace",
272: "lang");
273: if (attIdx >= 0) {
274: final java.lang.String v = context
275: .eatAttribute(attIdx);
276: eatText1(v);
277: state = 3;
278: continue outer;
279: }
280: state = 3;
281: continue outer;
282: case 2:
283: if (("lang" == ___local)
284: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
285: state = 3;
286: return;
287: }
288: break;
289: case 4:
290: revertToParentFromLeaveAttribute(___uri, ___local,
291: ___qname);
292: return;
293: }
294: super .leaveAttribute(___uri, ___local, ___qname);
295: break;
296: }
297: }
298:
299: public void handleText(final java.lang.String value)
300: throws org.xml.sax.SAXException {
301: int attIdx;
302: outer: while (true) {
303: try {
304: switch (state) {
305: case 3:
306: eatText2(value);
307: state = 4;
308: return;
309: case 0:
310: attIdx = context.getAttribute(
311: "http://www.w3.org/XML/1998/namespace",
312: "lang");
313: if (attIdx >= 0) {
314: final java.lang.String v = context
315: .eatAttribute(attIdx);
316: eatText1(v);
317: state = 3;
318: continue outer;
319: }
320: state = 3;
321: continue outer;
322: case 4:
323: revertToParentFromText(value);
324: return;
325: case 1:
326: eatText1(value);
327: state = 2;
328: return;
329: }
330: } catch (java.lang.RuntimeException e) {
331: handleUnexpectedTextException(value, e);
332: }
333: break;
334: }
335: }
336:
337: private void eatText2(final java.lang.String value)
338: throws org.xml.sax.SAXException {
339: try {
340: _Value = value;
341: } catch (java.lang.Exception e) {
342: handleParseConversionException(e);
343: }
344: }
345:
346: }
347:
348: }
|