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.04.17 at 03:04:48 PDT
006: //
007:
008: package org.jaffa.tools.loadtest.domain.impl;
009:
010: public class UnitTestsImpl implements
011: org.jaffa.tools.loadtest.domain.UnitTests,
012: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
013: com.sun.xml.bind.serializer.XMLSerializable,
014: com.sun.xml.bind.validator.ValidatableObject {
015:
016: protected com.sun.xml.bind.util.ListImpl _UnitTest = new com.sun.xml.bind.util.ListImpl(
017: new java.util.ArrayList());
018: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
019: .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)\u00e3\u0087ppsr\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)\u00e3\u0084pp\u0000sq\u0000~\u0000\u0006\u0000)\u00e3ypp\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)\u00e3nppsq\u0000~\u0000\u0000\u0000)\u00e3csr\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)\u00e3`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\u0000(org.jaffa.tools.loadtest.domain.UnitTestt\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u001bt\u0000\tunit-testt\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\u00bfpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u000eppppppppppq\u0000~\u0000\rppppppppppppppppppppppppq\u0000~\u0000\u0005ppppppppppppppppppp");
020:
021: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
022: return org.jaffa.tools.loadtest.domain.UnitTests.class;
023: }
024:
025: public java.util.List getUnitTest() {
026: return _UnitTest;
027: }
028:
029: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
030: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
031: return new org.jaffa.tools.loadtest.domain.impl.UnitTestsImpl.Unmarshaller(
032: context);
033: }
034:
035: public java.lang.Class getPrimaryInterfaceClass() {
036: return PRIMARY_INTERFACE_CLASS();
037: }
038:
039: public void serializeElements(
040: com.sun.xml.bind.serializer.XMLSerializer context)
041: throws org.xml.sax.SAXException {
042: int idx1 = 0;
043: final int len1 = _UnitTest.size();
044: while (idx1 != len1) {
045: if (_UnitTest.get(idx1) instanceof javax.xml.bind.Element) {
046: context
047: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _UnitTest
048: .get(idx1++)));
049: } else {
050: context.startElement("", "unit-test");
051: int idx_0 = idx1;
052: context
053: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _UnitTest
054: .get(idx_0++)));
055: context.endAttributes();
056: context
057: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _UnitTest
058: .get(idx1++)));
059: context.endElement();
060: }
061: }
062: }
063:
064: public void serializeAttributes(
065: com.sun.xml.bind.serializer.XMLSerializer context)
066: throws org.xml.sax.SAXException {
067: int idx1 = 0;
068: final int len1 = _UnitTest.size();
069: }
070:
071: public void serializeAttributeBodies(
072: com.sun.xml.bind.serializer.XMLSerializer context)
073: throws org.xml.sax.SAXException {
074: int idx1 = 0;
075: final int len1 = _UnitTest.size();
076: }
077:
078: public java.lang.Class getPrimaryInterface() {
079: return (org.jaffa.tools.loadtest.domain.UnitTests.class);
080: }
081:
082: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
083: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
084: schemaFragment);
085: }
086:
087: public class Unmarshaller extends
088: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
089:
090: public Unmarshaller(
091: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
092: super (context, "----");
093: }
094:
095: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
096: return org.jaffa.tools.loadtest.domain.impl.UnitTestsImpl.this ;
097: }
098:
099: public void enterElement(java.lang.String ___uri,
100: java.lang.String ___local, org.xml.sax.Attributes __atts)
101: throws com.sun.xml.bind.unmarshaller.UnreportedException {
102: switch (state) {
103: case 0:
104: if (("" == ___uri) && ("unit-test" == ___local)) {
105: context.pushAttributes(__atts);
106: state = 1;
107: return;
108: }
109: break;
110: case 3:
111: if (("" == ___uri) && ("unit-test" == ___local)) {
112: context.pushAttributes(__atts);
113: state = 1;
114: return;
115: }
116: revertToParentFromEnterElement(___uri, ___local, __atts);
117: return;
118: case 1:
119: if (("" == ___uri) && ("class-name" == ___local)) {
120: _UnitTest
121: .add(((org.jaffa.tools.loadtest.domain.impl.UnitTestImpl) spawnChildFromEnterElement(
122: (org.jaffa.tools.loadtest.domain.impl.UnitTestImpl.class),
123: 2, ___uri, ___local, __atts)));
124: return;
125: }
126: break;
127: }
128: super .enterElement(___uri, ___local, __atts);
129: }
130:
131: public void leaveElement(java.lang.String ___uri,
132: java.lang.String ___local)
133: throws com.sun.xml.bind.unmarshaller.UnreportedException {
134: switch (state) {
135: case 2:
136: if (("" == ___uri) && ("unit-test" == ___local)) {
137: context.popAttributes();
138: state = 3;
139: return;
140: }
141: break;
142: case 3:
143: revertToParentFromLeaveElement(___uri, ___local);
144: return;
145: }
146: super .leaveElement(___uri, ___local);
147: }
148:
149: public void enterAttribute(java.lang.String ___uri,
150: java.lang.String ___local)
151: throws com.sun.xml.bind.unmarshaller.UnreportedException {
152: switch (state) {
153: case 3:
154: revertToParentFromEnterAttribute(___uri, ___local);
155: return;
156: }
157: super .enterAttribute(___uri, ___local);
158: }
159:
160: public void leaveAttribute(java.lang.String ___uri,
161: java.lang.String ___local)
162: throws com.sun.xml.bind.unmarshaller.UnreportedException {
163: switch (state) {
164: case 3:
165: revertToParentFromLeaveAttribute(___uri, ___local);
166: return;
167: }
168: super .leaveAttribute(___uri, ___local);
169: }
170:
171: public void text(java.lang.String value)
172: throws com.sun.xml.bind.unmarshaller.UnreportedException {
173: try {
174: switch (state) {
175: case 3:
176: revertToParentFromText(value);
177: return;
178: }
179: } catch (java.lang.RuntimeException e) {
180: handleUnexpectedTextException(value, e);
181: }
182: }
183:
184: public void leaveChild(int nextState)
185: throws com.sun.xml.bind.unmarshaller.UnreportedException {
186: switch (nextState) {
187: case 2:
188: state = 2;
189: return;
190: }
191: super.leaveChild(nextState);
192: }
193:
194: }
195:
196: }
|