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.21 at 09:16:53 PDT
006: //
007:
008: package org.jaffa.patterns.library.object_viewer_meta_1_0.domain.impl;
009:
010: public class KeyFieldsImpl
011: implements
012: org.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyFields,
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 _KeyField = 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\u0001l\u0098\u0097ppsr\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\u0001l\u0098\u0094pp\u0000sq\u0000~\u0000\u0006\u0001l\u0098\u0089pp\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\u0001l\u0098~ppsq\u0000~\u0000\u0000\u0001l\u0098ssr\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\u0001l\u0098pq\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\u0000Aorg.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyFieldt\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u001bt\u0000\bKeyFieldt\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\u00bfpppppppppppppppppppppppppppppppq\u0000~\u0000\u000eppppppppppq\u0000~\u0000\rppppppppppppppppppppppppq\u0000~\u0000\u0005ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp");
021:
022: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
023: return org.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyFields.class;
024: }
025:
026: public java.util.List getKeyField() {
027: return _KeyField;
028: }
029:
030: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
031: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
032: return new org.jaffa.patterns.library.object_viewer_meta_1_0.domain.impl.KeyFieldsImpl.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 = _KeyField.size();
045: while (idx1 != len1) {
046: if (_KeyField.get(idx1) instanceof javax.xml.bind.Element) {
047: context
048: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _KeyField
049: .get(idx1++)));
050: } else {
051: context.startElement("", "KeyField");
052: int idx_0 = idx1;
053: context
054: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _KeyField
055: .get(idx_0++)));
056: context.endAttributes();
057: context
058: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _KeyField
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 = _KeyField.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 = _KeyField.size();
077: }
078:
079: public java.lang.Class getPrimaryInterface() {
080: return (org.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyFields.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.patterns.library.object_viewer_meta_1_0.domain.impl.KeyFieldsImpl.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 1:
105: if (("" == ___uri)
106: && ("RelatedObjectFieldName" == ___local)) {
107: _KeyField
108: .add(((org.jaffa.patterns.library.object_viewer_meta_1_0.domain.impl.KeyFieldImpl) spawnChildFromEnterElement(
109: (org.jaffa.patterns.library.object_viewer_meta_1_0.domain.impl.KeyFieldImpl.class),
110: 2, ___uri, ___local, __atts)));
111: return;
112: }
113: break;
114: case 3:
115: if (("" == ___uri) && ("KeyField" == ___local)) {
116: context.pushAttributes(__atts);
117: state = 1;
118: return;
119: }
120: revertToParentFromEnterElement(___uri, ___local, __atts);
121: return;
122: case 0:
123: if (("" == ___uri) && ("KeyField" == ___local)) {
124: context.pushAttributes(__atts);
125: state = 1;
126: return;
127: }
128: break;
129: }
130: super .enterElement(___uri, ___local, __atts);
131: }
132:
133: public void leaveElement(java.lang.String ___uri,
134: java.lang.String ___local)
135: throws com.sun.xml.bind.unmarshaller.UnreportedException {
136: switch (state) {
137: case 2:
138: if (("" == ___uri) && ("KeyField" == ___local)) {
139: context.popAttributes();
140: state = 3;
141: return;
142: }
143: break;
144: case 3:
145: revertToParentFromLeaveElement(___uri, ___local);
146: return;
147: }
148: super .leaveElement(___uri, ___local);
149: }
150:
151: public void enterAttribute(java.lang.String ___uri,
152: java.lang.String ___local)
153: throws com.sun.xml.bind.unmarshaller.UnreportedException {
154: switch (state) {
155: case 3:
156: revertToParentFromEnterAttribute(___uri, ___local);
157: return;
158: }
159: super .enterAttribute(___uri, ___local);
160: }
161:
162: public void leaveAttribute(java.lang.String ___uri,
163: java.lang.String ___local)
164: throws com.sun.xml.bind.unmarshaller.UnreportedException {
165: switch (state) {
166: case 3:
167: revertToParentFromLeaveAttribute(___uri, ___local);
168: return;
169: }
170: super .leaveAttribute(___uri, ___local);
171: }
172:
173: public void text(java.lang.String value)
174: throws com.sun.xml.bind.unmarshaller.UnreportedException {
175: try {
176: switch (state) {
177: case 3:
178: revertToParentFromText(value);
179: return;
180: }
181: } catch (java.lang.RuntimeException e) {
182: handleUnexpectedTextException(value, e);
183: }
184: }
185:
186: public void leaveChild(int nextState)
187: throws com.sun.xml.bind.unmarshaller.UnreportedException {
188: switch (nextState) {
189: case 2:
190: state = 2;
191: return;
192: }
193: super.leaveChild(nextState);
194: }
195:
196: }
197:
198: }
|