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 ExpirationCacheTypeImpl implements
030: com.nabhinc.portal.config.ExpirationCacheType,
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 boolean has_Value;
037: protected int _Value;
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.ExpirationCacheType.class);
043: }
044:
045: public int getValue() {
046: return _Value;
047: }
048:
049: public void setValue(int value) {
050: _Value = value;
051: has_Value = true;
052: }
053:
054: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
055: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
056: return new com.nabhinc.portal.config.impl.ExpirationCacheTypeImpl.Unmarshaller(
057: context);
058: }
059:
060: public void serializeBody(
061: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
062: throws org.xml.sax.SAXException {
063: if (!has_Value) {
064: context.reportError(com.sun.xml.bind.serializer.Util
065: .createMissingObjectError(this , "Value"));
066: }
067: try {
068: context.text(javax.xml.bind.DatatypeConverter
069: .printInt(((int) _Value)), "Value");
070: } catch (java.lang.Exception e) {
071: com.nabhinc.portal.config.impl.runtime.Util
072: .handlePrintConversionException(this , e, context);
073: }
074: }
075:
076: public void serializeAttributes(
077: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
078: throws org.xml.sax.SAXException {
079: if (!has_Value) {
080: context.reportError(com.sun.xml.bind.serializer.Util
081: .createMissingObjectError(this , "Value"));
082: }
083: }
084:
085: public void serializeURIs(
086: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
087: throws org.xml.sax.SAXException {
088: if (!has_Value) {
089: context.reportError(com.sun.xml.bind.serializer.Util
090: .createMissingObjectError(this , "Value"));
091: }
092: }
093:
094: public java.lang.Class getPrimaryInterface() {
095: return (com.nabhinc.portal.config.ExpirationCacheType.class);
096: }
097:
098: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
099: if (schemaFragment == null) {
100: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
101: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/r"
102: + "elaxng/datatype/Datatype;L\u0000\u0006exceptt\u0000 Lcom/sun/msv/grammar/Ex"
103: + "pression;L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xr\u0000\u001ecom.sun."
104: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
105: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0002xpppsr\u0000 com.sun.msv.data"
106: + "type.xsd.IntType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.msv.datatype.xsd.Inte"
107: + "gerDerivedType\u0099\u00f1]\u0090&6k\u00be\u0002\u0000\u0001L\u0000\nbaseFacetst\u0000)Lcom/sun/msv/dataty"
108: + "pe/xsd/XSDatatypeImpl;xr\u0000*com.sun.msv.datatype.xsd.BuiltinAt"
109: + "omicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType"
110: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000"
111: + "\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\rL\u0000\n"
112: + "whiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;x"
113: + "pt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0003intsr\u00005com.sun.msv.da"
114: + "tatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.su"
115: + "n.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u0000*com.s"
116: + "un.msv.datatype.xsd.MaxInclusiveFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000#com.sun."
117: + "msv.datatype.xsd.RangeFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\nlimitValuet\u0000\u0012Ljava/"
118: + "lang/Object;xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueCo"
119: + "nstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTyp"
120: + "eWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\b"
121: + "baseTypeq\u0000~\u0000\tL\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/Con"
122: + "creteType;L\u0000\tfacetNameq\u0000~\u0000\rxq\u0000~\u0000\fppq\u0000~\u0000\u0014\u0000\u0001sr\u0000*com.sun.msv.da"
123: + "tatype.xsd.MinInclusiveFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0016ppq\u0000~\u0000\u0014\u0000\u0000sr\u0000!co"
124: + "m.sun.msv.datatype.xsd.LongType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bq\u0000~\u0000\u0010t\u0000\u0004long"
125: + "q\u0000~\u0000\u0014sq\u0000~\u0000\u0015ppq\u0000~\u0000\u0014\u0000\u0001sq\u0000~\u0000\u001cppq\u0000~\u0000\u0014\u0000\u0000sr\u0000$com.sun.msv.datatype."
126: + "xsd.IntegerType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bq\u0000~\u0000\u0010t\u0000\u0007integerq\u0000~\u0000\u0014sr\u0000,com."
127: + "sun.msv.datatype.xsd.FractionDigitsFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\u0005scalex"
128: + "r\u0000;com.sun.msv.datatype.xsd.DataTypeWithLexicalConstraintFac"
129: + "etT\u0090\u001c>\u001azb\u00ea\u0002\u0000\u0000xq\u0000~\u0000\u0019ppq\u0000~\u0000\u0014\u0001\u0000sr\u0000#com.sun.msv.datatype.xsd.Num"
130: + "berType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\nq\u0000~\u0000\u0010t\u0000\u0007decimalq\u0000~\u0000\u0014q\u0000~\u0000*t\u0000\u000efraction"
131: + "Digits\u0000\u0000\u0000\u0000q\u0000~\u0000$t\u0000\fminInclusivesr\u0000\u000ejava.lang.Long;\u008b\u00e4\u0090\u00cc\u008f#\u00df\u0002\u0000\u0001J"
132: + "\u0000\u0005valuexr\u0000\u0010java.lang.Number\u0086\u00ac\u0095\u001d\u000b\u0094\u00e0\u008b\u0002\u0000\u0000xp\u0080\u0000\u0000\u0000\u0000\u0000\u0000\u0000q\u0000~\u0000$t\u0000\fmaxI"
133: + "nclusivesq\u0000~\u0000.\u007f\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u00ffq\u0000~\u0000\u001fq\u0000~\u0000-sr\u0000\u0011java.lang.Integer\u0012\u00e2\u00a0\u00a4\u00f7\u0081\u0087"
134: + "8\u0002\u0000\u0001I\u0000\u0005valuexq\u0000~\u0000/\u0080\u0000\u0000\u0000q\u0000~\u0000\u001fq\u0000~\u00001sq\u0000~\u00003\u007f\u00ff\u00ff\u00ffsr\u00000com.sun.msv.gr"
135: + "ammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom"
136: + ".sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\rL\u0000\fnames"
137: + "paceURIq\u0000~\u0000\rxpq\u0000~\u0000\u0011q\u0000~\u0000\u0010sr\u0000\"com.sun.msv.grammar.ExpressionPo"
138: + "ol\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPo"
139: + "ol$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$Close"
140: + "dHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun"
141: + "/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0000\u0001px"));
142: }
143: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
144: schemaFragment);
145: }
146:
147: public class Unmarshaller
148: extends
149: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
150:
151: public Unmarshaller(
152: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
153: super (context, "--");
154: }
155:
156: protected Unmarshaller(
157: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
158: int startState) {
159: this (context);
160: state = startState;
161: }
162:
163: public java.lang.Object owner() {
164: return com.nabhinc.portal.config.impl.ExpirationCacheTypeImpl.this ;
165: }
166:
167: public void enterElement(java.lang.String ___uri,
168: java.lang.String ___local, java.lang.String ___qname,
169: org.xml.sax.Attributes __atts)
170: throws org.xml.sax.SAXException {
171: int attIdx;
172: outer: while (true) {
173: switch (state) {
174: case 1:
175: revertToParentFromEnterElement(___uri, ___local,
176: ___qname, __atts);
177: return;
178: }
179: super .enterElement(___uri, ___local, ___qname, __atts);
180: break;
181: }
182: }
183:
184: public void leaveElement(java.lang.String ___uri,
185: java.lang.String ___local, java.lang.String ___qname)
186: throws org.xml.sax.SAXException {
187: int attIdx;
188: outer: while (true) {
189: switch (state) {
190: case 1:
191: revertToParentFromLeaveElement(___uri, ___local,
192: ___qname);
193: return;
194: }
195: super .leaveElement(___uri, ___local, ___qname);
196: break;
197: }
198: }
199:
200: public void enterAttribute(java.lang.String ___uri,
201: java.lang.String ___local, java.lang.String ___qname)
202: throws org.xml.sax.SAXException {
203: int attIdx;
204: outer: while (true) {
205: switch (state) {
206: case 1:
207: revertToParentFromEnterAttribute(___uri, ___local,
208: ___qname);
209: return;
210: }
211: super .enterAttribute(___uri, ___local, ___qname);
212: break;
213: }
214: }
215:
216: public void leaveAttribute(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 1:
223: revertToParentFromLeaveAttribute(___uri, ___local,
224: ___qname);
225: return;
226: }
227: super .leaveAttribute(___uri, ___local, ___qname);
228: break;
229: }
230: }
231:
232: public void handleText(final java.lang.String value)
233: throws org.xml.sax.SAXException {
234: int attIdx;
235: outer: while (true) {
236: try {
237: switch (state) {
238: case 0:
239: eatText1(value);
240: state = 1;
241: return;
242: case 1:
243: revertToParentFromText(value);
244: return;
245: }
246: } catch (java.lang.RuntimeException e) {
247: handleUnexpectedTextException(value, e);
248: }
249: break;
250: }
251: }
252:
253: private void eatText1(final java.lang.String value)
254: throws org.xml.sax.SAXException {
255: try {
256: _Value = javax.xml.bind.DatatypeConverter
257: .parseInt(com.sun.xml.bind.WhiteSpaceProcessor
258: .collapse(value));
259: has_Value = true;
260: } catch (java.lang.Exception e) {
261: handleParseConversionException(e);
262: }
263: }
264:
265: }
266:
267: }
|