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 ConfLocationImpl
011: implements
012: org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.ConfLocation,
013: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
014: com.sun.xml.bind.serializer.XMLSerializable,
015: com.sun.xml.bind.validator.ValidatableObject {
016:
017: protected com.sun.xml.bind.util.ListImpl _DirLoc = new com.sun.xml.bind.util.ListImpl(
018: new java.util.ArrayList());
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.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expt\u0000 Lcom/sun/msv/grammar/Expression;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\u0002xp\u0000\u00e9Z\u0086ppsr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u00e9Z\u0083pp\u0000sq\u0000~\u0000\u0006\u0000\u00e9Zxpp\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\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\u0002L\u0000\u0004exp1q\u0000~\u0000\u0002L\u0000\u0004exp2q\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u00e9Zmppsq\u0000~\u0000\u0000\u0000\u00e9Zbsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\u0007xq\u0000~\u0000\u0003\u0000\u00e9Z_q\u0000~\u0000\u0010psr\u00002com.sun.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\bsq\u0000~\u0000\u000f\u0001q\u0000~\u0000\u0014sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\tq\u0000~\u0000\u0015psr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001cxq\u0000~\u0000\u0017t\u0000Horg.jaffa.persistence.engines.jdbcengine.configservice.initdomain.DirLoct\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u001bt\u0000\u0007dir-loct\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\u0003\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u000eppppppppppq\u0000~\u0000\rppppppppppppppppppppppppq\u0000~\u0000\u0005pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp");
021:
022: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
023: return org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.ConfLocation.class;
024: }
025:
026: public java.util.List getDirLoc() {
027: return _DirLoc;
028: }
029:
030: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
031: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
032: return new org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl.ConfLocationImpl.Unmarshaller(
033: context);
034: }
035:
036: public java.lang.Class getPrimaryInterfaceClass() {
037: return PRIMARY_INTERFACE_CLASS();
038: }
039:
040: public void serializeElements(
041: com.sun.xml.bind.serializer.XMLSerializer context)
042: throws org.xml.sax.SAXException {
043: int idx1 = 0;
044: final int len1 = _DirLoc.size();
045: while (idx1 != len1) {
046: if (_DirLoc.get(idx1) instanceof javax.xml.bind.Element) {
047: context
048: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _DirLoc
049: .get(idx1++)));
050: } else {
051: context.startElement("", "dir-loc");
052: int idx_0 = idx1;
053: context
054: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _DirLoc
055: .get(idx_0++)));
056: context.endAttributes();
057: context
058: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _DirLoc
059: .get(idx1++)));
060: context.endElement();
061: }
062: }
063: }
064:
065: public void serializeAttributes(
066: com.sun.xml.bind.serializer.XMLSerializer context)
067: throws org.xml.sax.SAXException {
068: int idx1 = 0;
069: final int len1 = _DirLoc.size();
070: }
071:
072: public void serializeAttributeBodies(
073: com.sun.xml.bind.serializer.XMLSerializer context)
074: throws org.xml.sax.SAXException {
075: int idx1 = 0;
076: final int len1 = _DirLoc.size();
077: }
078:
079: public java.lang.Class getPrimaryInterface() {
080: return (org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.ConfLocation.class);
081: }
082:
083: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
084: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
085: schemaFragment);
086: }
087:
088: public class Unmarshaller extends
089: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
090:
091: public Unmarshaller(
092: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
093: super (context, "----");
094: }
095:
096: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
097: return org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl.ConfLocationImpl.this ;
098: }
099:
100: public void enterElement(java.lang.String ___uri,
101: java.lang.String ___local, org.xml.sax.Attributes __atts)
102: throws com.sun.xml.bind.unmarshaller.UnreportedException {
103: switch (state) {
104: case 0:
105: if (("" == ___uri) && ("dir-loc" == ___local)) {
106: context.pushAttributes(__atts);
107: goto1();
108: return;
109: }
110: break;
111: case 3:
112: if (("" == ___uri) && ("dir-loc" == ___local)) {
113: context.pushAttributes(__atts);
114: goto1();
115: return;
116: }
117: revertToParentFromEnterElement(___uri, ___local, __atts);
118: return;
119: }
120: super .enterElement(___uri, ___local, __atts);
121: }
122:
123: public void leaveElement(java.lang.String ___uri,
124: java.lang.String ___local)
125: throws com.sun.xml.bind.unmarshaller.UnreportedException {
126: switch (state) {
127: case 2:
128: if (("" == ___uri) && ("dir-loc" == ___local)) {
129: context.popAttributes();
130: state = 3;
131: return;
132: }
133: break;
134: case 3:
135: revertToParentFromLeaveElement(___uri, ___local);
136: return;
137: }
138: super .leaveElement(___uri, ___local);
139: }
140:
141: public void enterAttribute(java.lang.String ___uri,
142: java.lang.String ___local)
143: throws com.sun.xml.bind.unmarshaller.UnreportedException {
144: switch (state) {
145: case 1:
146: if (("" == ___uri) && ("dir" == ___local)) {
147: _DirLoc
148: .add(((org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl.DirLocImpl) spawnChildFromEnterAttribute(
149: (org.jaffa.persistence.engines.jdbcengine.configservice.initdomain.impl.DirLocImpl.class),
150: 2, ___uri, ___local)));
151: return;
152: }
153: break;
154: case 3:
155: revertToParentFromEnterAttribute(___uri, ___local);
156: return;
157: }
158: super .enterAttribute(___uri, ___local);
159: }
160:
161: public void leaveAttribute(java.lang.String ___uri,
162: java.lang.String ___local)
163: throws com.sun.xml.bind.unmarshaller.UnreportedException {
164: switch (state) {
165: case 3:
166: revertToParentFromLeaveAttribute(___uri, ___local);
167: return;
168: }
169: super .leaveAttribute(___uri, ___local);
170: }
171:
172: public void text(java.lang.String value)
173: throws com.sun.xml.bind.unmarshaller.UnreportedException {
174: try {
175: switch (state) {
176: case 3:
177: revertToParentFromText(value);
178: return;
179: }
180: } catch (java.lang.RuntimeException e) {
181: handleUnexpectedTextException(value, e);
182: }
183: }
184:
185: public void leaveChild(int nextState)
186: throws com.sun.xml.bind.unmarshaller.UnreportedException {
187: switch (nextState) {
188: case 2:
189: state = 2;
190: return;
191: }
192: super .leaveChild(nextState);
193: }
194:
195: private void goto1()
196: throws com.sun.xml.bind.unmarshaller.UnreportedException {
197: int idx;
198: state = 1;
199: idx = context.getAttribute("", "dir");
200: if (idx >= 0) {
201: context.consumeAttribute(idx);
202: return;
203: }
204: }
205:
206: }
207:
208: }
|