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 DisplayNameTypeImpl implements
030: com.nabhinc.portal.config.DisplayNameType,
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.DisplayNameType.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.DisplayNameTypeImpl.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.DisplayNameType.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.WhiteSpaceFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatyp"
119: + "e.xsd.DataTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValu"
120: + "eCheckFlagL\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatype"
121: + "Impl;L\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteTyp"
122: + "e;L\u0000\tfacetNamet\u0000\u0012Ljava/lang/String;xr\u0000\'com.sun.msv.datatype."
123: + "xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u000eL\u0000\btypeName"
124: + "q\u0000~\u0000\u000eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpacePro"
125: + "cessor;xpt\u00006http://java.sun.com/xml/ns/portlet/portlet-app_1"
126: + "_0.xsdt\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProces"
127: + "sor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpa"
128: + "ceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0000\u0000sr\u0000#com.sun.msv.datatype.xsd.Strin"
129: + "gType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd"
130: + ".BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.Co"
131: + "ncreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000ft\u0000 http://www.w3.org/2001/XMLSche"
132: + "mat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$"
133: + "Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0015\u0001q\u0000~\u0000\u001at\u0000\nwhiteSpacesr\u00000com.sun.msv."
134: + "grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bc"
135: + "om.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnam"
136: + "espaceURIq\u0000~\u0000\u000expq\u0000~\u0000\u0013q\u0000~\u0000\u0012sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000"
137: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000"
138: + "\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClas"
139: + "s;xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u0006pp"
140: + "sr\u0000%com.sun.msv.datatype.xsd.LanguageType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\"com."
141: + "sun.msv.datatype.xsd.TokenType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0017q\u0000~\u0000\u001bt\u0000\blangu"
142: + "ageq\u0000~\u0000\u0016\u0000q\u0000~\u0000!sq\u0000~\u0000\"q\u0000~\u0000/q\u0000~\u0000\u001bsr\u0000#com.sun.msv.grammar.Simple"
143: + "NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000exr\u0000"
144: + "\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004langt\u0000$http://"
145: + "www.w3.org/XML/1998/namespacesr\u00000com.sun.msv.grammar.Express"
146: + "ion$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000)\u0001q\u0000~\u00007sr\u0000\"com.su"
147: + "n.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/su"
148: + "n/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.gr"
149: + "ammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamV"
150: + "ersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0002"
151: + "\u0001pq\u0000~\u0000%q\u0000~\u0000\u0005x"));
152: }
153: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
154: schemaFragment);
155: }
156:
157: public class Unmarshaller
158: extends
159: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
160:
161: public Unmarshaller(
162: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
163: super (context, "-----");
164: }
165:
166: protected Unmarshaller(
167: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
168: int startState) {
169: this (context);
170: state = startState;
171: }
172:
173: public java.lang.Object owner() {
174: return com.nabhinc.portal.config.impl.DisplayNameTypeImpl.this ;
175: }
176:
177: public void enterElement(java.lang.String ___uri,
178: java.lang.String ___local, java.lang.String ___qname,
179: org.xml.sax.Attributes __atts)
180: throws org.xml.sax.SAXException {
181: int attIdx;
182: outer: while (true) {
183: switch (state) {
184: case 0:
185: attIdx = context.getAttribute(
186: "http://www.w3.org/XML/1998/namespace",
187: "lang");
188: if (attIdx >= 0) {
189: final java.lang.String v = context
190: .eatAttribute(attIdx);
191: eatText1(v);
192: state = 3;
193: continue outer;
194: }
195: state = 3;
196: continue outer;
197: case 4:
198: revertToParentFromEnterElement(___uri, ___local,
199: ___qname, __atts);
200: return;
201: }
202: super .enterElement(___uri, ___local, ___qname, __atts);
203: break;
204: }
205: }
206:
207: private void eatText1(final java.lang.String value)
208: throws org.xml.sax.SAXException {
209: try {
210: _Lang = com.sun.xml.bind.WhiteSpaceProcessor
211: .collapse(value);
212: } catch (java.lang.Exception e) {
213: handleParseConversionException(e);
214: }
215: }
216:
217: public void leaveElement(java.lang.String ___uri,
218: java.lang.String ___local, java.lang.String ___qname)
219: throws org.xml.sax.SAXException {
220: int attIdx;
221: outer: while (true) {
222: switch (state) {
223: case 0:
224: attIdx = context.getAttribute(
225: "http://www.w3.org/XML/1998/namespace",
226: "lang");
227: if (attIdx >= 0) {
228: final java.lang.String v = context
229: .eatAttribute(attIdx);
230: eatText1(v);
231: state = 3;
232: continue outer;
233: }
234: state = 3;
235: continue outer;
236: case 4:
237: revertToParentFromLeaveElement(___uri, ___local,
238: ___qname);
239: return;
240: }
241: super .leaveElement(___uri, ___local, ___qname);
242: break;
243: }
244: }
245:
246: public void enterAttribute(java.lang.String ___uri,
247: java.lang.String ___local, java.lang.String ___qname)
248: throws org.xml.sax.SAXException {
249: int attIdx;
250: outer: while (true) {
251: switch (state) {
252: case 0:
253: if (("lang" == ___local)
254: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
255: state = 1;
256: return;
257: }
258: state = 3;
259: continue outer;
260: case 4:
261: revertToParentFromEnterAttribute(___uri, ___local,
262: ___qname);
263: return;
264: }
265: super .enterAttribute(___uri, ___local, ___qname);
266: break;
267: }
268: }
269:
270: public void leaveAttribute(java.lang.String ___uri,
271: java.lang.String ___local, java.lang.String ___qname)
272: throws org.xml.sax.SAXException {
273: int attIdx;
274: outer: while (true) {
275: switch (state) {
276: case 0:
277: attIdx = context.getAttribute(
278: "http://www.w3.org/XML/1998/namespace",
279: "lang");
280: if (attIdx >= 0) {
281: final java.lang.String v = context
282: .eatAttribute(attIdx);
283: eatText1(v);
284: state = 3;
285: continue outer;
286: }
287: state = 3;
288: continue outer;
289: case 4:
290: revertToParentFromLeaveAttribute(___uri, ___local,
291: ___qname);
292: return;
293: case 2:
294: if (("lang" == ___local)
295: && ("http://www.w3.org/XML/1998/namespace" == ___uri)) {
296: state = 3;
297: return;
298: }
299: break;
300: }
301: super .leaveAttribute(___uri, ___local, ___qname);
302: break;
303: }
304: }
305:
306: public void handleText(final java.lang.String value)
307: throws org.xml.sax.SAXException {
308: int attIdx;
309: outer: while (true) {
310: try {
311: switch (state) {
312: case 1:
313: eatText1(value);
314: state = 2;
315: return;
316: case 0:
317: attIdx = context.getAttribute(
318: "http://www.w3.org/XML/1998/namespace",
319: "lang");
320: if (attIdx >= 0) {
321: final java.lang.String v = context
322: .eatAttribute(attIdx);
323: eatText1(v);
324: state = 3;
325: continue outer;
326: }
327: state = 3;
328: continue outer;
329: case 3:
330: eatText2(value);
331: state = 4;
332: return;
333: case 4:
334: revertToParentFromText(value);
335: return;
336: }
337: } catch (java.lang.RuntimeException e) {
338: handleUnexpectedTextException(value, e);
339: }
340: break;
341: }
342: }
343:
344: private void eatText2(final java.lang.String value)
345: throws org.xml.sax.SAXException {
346: try {
347: _Value = com.sun.xml.bind.WhiteSpaceProcessor
348: .collapse(value);
349: } catch (java.lang.Exception e) {
350: handleParseConversionException(e);
351: }
352: }
353:
354: }
355:
356: }
|