001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2003.09.05 at 11:10:40 PDT
006: //
007:
008: package org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl;
009:
010: public class UsePreparedStatementImpl
011: implements
012: org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.UsePreparedStatement,
013: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
014: com.sun.xml.bind.serializer.XMLSerializable,
015: com.sun.xml.bind.validator.ValidatableObject {
016:
017: protected boolean has_Value;
018: protected boolean _Value;
019: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
020: .deserialize("\u00ac\u00ed\u0000\u0005sr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expt\u0000 Lcom/sun/msv/grammar/Expression;L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0003I\u0000\u000ecachedHashCodeL\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0001xp\u0001E\u00a8\u00c1ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0001L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0000^\u0010\u0087ppsr\u0000$com.sun.msv.datatype.xsd.BooleanType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u000eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0007booleansr\u0000.com.sun.msv.datatype.xsd.WhiteSpaceProcessor$2\u0087z9\u00ee\u00f8,N\u0005\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\nppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000expq\u0000~\u0000\u0012q\u0000~\u0000\u0011sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000exr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0005valuet\u0000\u0000sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthresholdL\u0000\u0006parentq\u0000~\u0000 [\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0000\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp");
021:
022: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
023: return org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.UsePreparedStatement.class;
024: }
025:
026: public boolean isValue() {
027: return _Value;
028: }
029:
030: public void setValue(boolean value) {
031: _Value = value;
032: has_Value = true;
033: }
034:
035: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
036: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
037: return new org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl.UsePreparedStatementImpl.Unmarshaller(
038: context);
039: }
040:
041: public java.lang.Class getPrimaryInterfaceClass() {
042: return PRIMARY_INTERFACE_CLASS();
043: }
044:
045: public void serializeElements(
046: com.sun.xml.bind.serializer.XMLSerializer context)
047: throws org.xml.sax.SAXException {
048: }
049:
050: public void serializeAttributes(
051: com.sun.xml.bind.serializer.XMLSerializer context)
052: throws org.xml.sax.SAXException {
053: context.startAttribute("", "value");
054: try {
055: context.text(javax.xml.bind.DatatypeConverter
056: .printBoolean(((boolean) _Value)));
057: } catch (java.lang.Exception e) {
058: com.sun.xml.bind.marshaller.Util
059: .handlePrintConversionException(this , e, context);
060: }
061: context.endAttribute();
062: }
063:
064: public void serializeAttributeBodies(
065: com.sun.xml.bind.serializer.XMLSerializer context)
066: throws org.xml.sax.SAXException {
067: }
068:
069: public java.lang.Class getPrimaryInterface() {
070: return (org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.UsePreparedStatement.class);
071: }
072:
073: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
074: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
075: schemaFragment);
076: }
077:
078: public class Unmarshaller extends
079: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
080:
081: public Unmarshaller(
082: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
083: super (context, "---");
084: }
085:
086: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
087: return org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl.UsePreparedStatementImpl.this ;
088: }
089:
090: public void enterElement(java.lang.String ___uri,
091: java.lang.String ___local, org.xml.sax.Attributes __atts)
092: throws com.sun.xml.bind.unmarshaller.UnreportedException {
093: switch (state) {
094: case 0:
095: revertToParentFromEnterElement(___uri, ___local, __atts);
096: return;
097: }
098: super .enterElement(___uri, ___local, __atts);
099: }
100:
101: public void leaveElement(java.lang.String ___uri,
102: java.lang.String ___local)
103: throws com.sun.xml.bind.unmarshaller.UnreportedException {
104: switch (state) {
105: case 0:
106: revertToParentFromLeaveElement(___uri, ___local);
107: return;
108: }
109: super .leaveElement(___uri, ___local);
110: }
111:
112: public void enterAttribute(java.lang.String ___uri,
113: java.lang.String ___local)
114: throws com.sun.xml.bind.unmarshaller.UnreportedException {
115: switch (state) {
116: case 0:
117: if (("" == ___uri) && ("value" == ___local)) {
118: state = 1;
119: return;
120: }
121: revertToParentFromEnterAttribute(___uri, ___local);
122: return;
123: }
124: super .enterAttribute(___uri, ___local);
125: }
126:
127: public void leaveAttribute(java.lang.String ___uri,
128: java.lang.String ___local)
129: throws com.sun.xml.bind.unmarshaller.UnreportedException {
130: switch (state) {
131: case 0:
132: revertToParentFromLeaveAttribute(___uri, ___local);
133: return;
134: case 2:
135: if (("" == ___uri) && ("value" == ___local)) {
136: goto0();
137: return;
138: }
139: break;
140: }
141: super .leaveAttribute(___uri, ___local);
142: }
143:
144: public void text(java.lang.String value)
145: throws com.sun.xml.bind.unmarshaller.UnreportedException {
146: try {
147: switch (state) {
148: case 0:
149: revertToParentFromText(value);
150: return;
151: case 1:
152: try {
153: _Value = javax.xml.bind.DatatypeConverter
154: .parseBoolean(com.sun.xml.bind.WhiteSpaceProcessor
155: .collapse(value));
156: has_Value = true;
157: } catch (java.lang.Exception e) {
158: handleParseConversionException(e);
159: }
160: state = 2;
161: return;
162: }
163: } catch (java.lang.RuntimeException e) {
164: handleUnexpectedTextException(value, e);
165: }
166: }
167:
168: private void goto0()
169: throws com.sun.xml.bind.unmarshaller.UnreportedException {
170: int idx;
171: state = 0;
172: idx = context.getAttribute("", "value");
173: if (idx >= 0) {
174: context.consumeAttribute(idx);
175: return;
176: }
177: }
178:
179: }
180:
181: }
|