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 KeyFieldImpl
011: implements
012: org.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyField,
013: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
014: com.sun.xml.bind.serializer.XMLSerializable,
015: com.sun.xml.bind.validator.ValidatableObject {
016:
017: protected java.lang.String _DataType;
018: protected java.lang.String _RelatedObjectFieldName;
019: protected java.lang.String _FieldNameInTargetComponent;
020: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
021: .deserialize("\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\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\u0004exp1t\u0000 Lcom/sun/msv/grammar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\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\u0005\u00cbJ\u00e6ppsq\u0000~\u0000\u0000\u0003\u00da\'kppsr\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\u0001\u00f1#vpp\u0000sr\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\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0001\u00f1#kppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\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\u0013L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u0000.com.sun.msv.datatype.xsd.WhiteSpaceProcessor$1\u0013JMoI\u00db\u00a4G\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\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\u0013L\u0000\fnamespaceURIq\u0000~\u0000\u0013xpq\u0000~\u0000\u0017q\u0000~\u0000\u0016sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0013L\u0000\fnamespaceURIq\u0000~\u0000\u0013xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0016RelatedObjectFieldNamet\u0000\u0000sq\u0000~\u0000\u0007\u0001\u00e9\u0003\u00f0pp\u0000sq\u0000~\u0000\u000b\u0001\u00e9\u0003\u00e5ppsr\u0000)com.sun.msv.datatype.xsd.EnumerationFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0006valuest\u0000\u000fLjava/util/Set;xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueConstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;L\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteType;L\u0000\tfacetNameq\u0000~\u0000\u0013xq\u0000~\u0000\u0012q\u0000~\u0000#t\u0000\tdataTypesq\u0000~\u0000\u001a\u0000\u0000q\u0000~\u0000\u0015q\u0000~\u0000\u0015t\u0000\u000benumerationsr\u0000\u0011java.util.HashSet\u00baD\u0085\u0095\u0096\u00b8\u00b74\u0003\u0000\u0000xpw\f\u0000\u0000\u0000@?@\u0000\u0000\u0000\u0000\u0000*t\u0000\u0007LongRawt\u0000\bDateOnlyt\u0000\u0003Rawt\u0000\u0004clobt\u0000\bdateonlyt\u0000\tDATE_ONLYt\u0000\bcurrencyt\u0000\u0007longrawt\u0000\u0004BLOBt\u0000\u0007LONGRAWt\u0000\tdate_timet\u0000\tDate_Timet\u0000\bCurrencyt\u0000\nLongStringt\u0000\u0007booleant\u0000\u0006STRINGt\u0000\bDateTimet\u0000\u0007decimalt\u0000\u0006stringt\u0000\u0004Blobt\u0000\nlongstringt\u0000\u0007DECIMALt\u0000\u0007Decimalt\u0000\u0004Clobt\u0000\u0006Stringt\u0000\u0004blobt\u0000\u0007INTEGERt\u0000\u0004CLOBt\u0000\tdate_onlyt\u0000\u0007BOOLEANt\u0000\u0007integert\u0000\bCURRENCYt\u0000\bDATETIMEt\u0000\tDATE_TIMEt\u0000\u0003rawt\u0000\u0007Integert\u0000\tDate_Onlyt\u0000\u0003RAWt\u0000\nLONGSTRINGt\u0000\u0007Booleant\u0000\bdatetimet\u0000\bDATEONLYxq\u0000~\u0000\u001csq\u0000~\u0000\u001dq\u0000~\u0000-q\u0000~\u0000#sq\u0000~\u0000\u001ft\u0000\bDataTypeq\u0000~\u0000#sq\u0000~\u0000\u0007\u0001\u00f1#vpp\u0000q\u0000~\u0000\u000esq\u0000~\u0000\u001ft\u0000\u001aFieldNameInTargetComponentq\u0000~\u0000#sr\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~\u0000b[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0002\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0006ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0005ppppp");
022:
023: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
024: return org.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyField.class;
025: }
026:
027: public java.lang.String getDataType() {
028: return _DataType;
029: }
030:
031: public void setDataType(java.lang.String value) {
032: _DataType = value;
033: }
034:
035: public java.lang.String getRelatedObjectFieldName() {
036: return _RelatedObjectFieldName;
037: }
038:
039: public void setRelatedObjectFieldName(java.lang.String value) {
040: _RelatedObjectFieldName = value;
041: }
042:
043: public java.lang.String getFieldNameInTargetComponent() {
044: return _FieldNameInTargetComponent;
045: }
046:
047: public void setFieldNameInTargetComponent(java.lang.String value) {
048: _FieldNameInTargetComponent = value;
049: }
050:
051: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
052: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
053: return new org.jaffa.patterns.library.object_viewer_meta_1_0.domain.impl.KeyFieldImpl.Unmarshaller(
054: context);
055: }
056:
057: public java.lang.Class getPrimaryInterfaceClass() {
058: return PRIMARY_INTERFACE_CLASS();
059: }
060:
061: public void serializeElements(
062: com.sun.xml.bind.serializer.XMLSerializer context)
063: throws org.xml.sax.SAXException {
064: context.startElement("", "RelatedObjectFieldName");
065: context.endAttributes();
066: try {
067: context.text(((java.lang.String) _RelatedObjectFieldName));
068: } catch (java.lang.Exception e) {
069: com.sun.xml.bind.marshaller.Util
070: .handlePrintConversionException(this , e, context);
071: }
072: context.endElement();
073: context.startElement("", "DataType");
074: context.endAttributes();
075: try {
076: context.text(((java.lang.String) _DataType));
077: } catch (java.lang.Exception e) {
078: com.sun.xml.bind.marshaller.Util
079: .handlePrintConversionException(this , e, context);
080: }
081: context.endElement();
082: context.startElement("", "FieldNameInTargetComponent");
083: context.endAttributes();
084: try {
085: context
086: .text(((java.lang.String) _FieldNameInTargetComponent));
087: } catch (java.lang.Exception e) {
088: com.sun.xml.bind.marshaller.Util
089: .handlePrintConversionException(this , e, context);
090: }
091: context.endElement();
092: }
093:
094: public void serializeAttributes(
095: com.sun.xml.bind.serializer.XMLSerializer context)
096: throws org.xml.sax.SAXException {
097: }
098:
099: public void serializeAttributeBodies(
100: com.sun.xml.bind.serializer.XMLSerializer context)
101: throws org.xml.sax.SAXException {
102: }
103:
104: public java.lang.Class getPrimaryInterface() {
105: return (org.jaffa.patterns.library.object_viewer_meta_1_0.domain.KeyField.class);
106: }
107:
108: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
109: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
110: schemaFragment);
111: }
112:
113: public class Unmarshaller extends
114: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
115:
116: public Unmarshaller(
117: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
118: super (context, "----------");
119: }
120:
121: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
122: return org.jaffa.patterns.library.object_viewer_meta_1_0.domain.impl.KeyFieldImpl.this ;
123: }
124:
125: public void enterElement(java.lang.String ___uri,
126: java.lang.String ___local, org.xml.sax.Attributes __atts)
127: throws com.sun.xml.bind.unmarshaller.UnreportedException {
128: switch (state) {
129: case 6:
130: if (("" == ___uri)
131: && ("FieldNameInTargetComponent" == ___local)) {
132: context.pushAttributes(__atts);
133: state = 7;
134: return;
135: }
136: break;
137: case 9:
138: revertToParentFromEnterElement(___uri, ___local, __atts);
139: return;
140: case 3:
141: if (("" == ___uri) && ("DataType" == ___local)) {
142: context.pushAttributes(__atts);
143: state = 4;
144: return;
145: }
146: break;
147: case 0:
148: if (("" == ___uri)
149: && ("RelatedObjectFieldName" == ___local)) {
150: context.pushAttributes(__atts);
151: state = 1;
152: return;
153: }
154: break;
155: }
156: super .enterElement(___uri, ___local, __atts);
157: }
158:
159: public void leaveElement(java.lang.String ___uri,
160: java.lang.String ___local)
161: throws com.sun.xml.bind.unmarshaller.UnreportedException {
162: switch (state) {
163: case 9:
164: revertToParentFromLeaveElement(___uri, ___local);
165: return;
166: case 5:
167: if (("" == ___uri) && ("DataType" == ___local)) {
168: context.popAttributes();
169: state = 6;
170: return;
171: }
172: break;
173: case 2:
174: if (("" == ___uri)
175: && ("RelatedObjectFieldName" == ___local)) {
176: context.popAttributes();
177: state = 3;
178: return;
179: }
180: break;
181: case 8:
182: if (("" == ___uri)
183: && ("FieldNameInTargetComponent" == ___local)) {
184: context.popAttributes();
185: state = 9;
186: return;
187: }
188: break;
189: }
190: super .leaveElement(___uri, ___local);
191: }
192:
193: public void enterAttribute(java.lang.String ___uri,
194: java.lang.String ___local)
195: throws com.sun.xml.bind.unmarshaller.UnreportedException {
196: switch (state) {
197: case 9:
198: revertToParentFromEnterAttribute(___uri, ___local);
199: return;
200: }
201: super .enterAttribute(___uri, ___local);
202: }
203:
204: public void leaveAttribute(java.lang.String ___uri,
205: java.lang.String ___local)
206: throws com.sun.xml.bind.unmarshaller.UnreportedException {
207: switch (state) {
208: case 9:
209: revertToParentFromLeaveAttribute(___uri, ___local);
210: return;
211: }
212: super .leaveAttribute(___uri, ___local);
213: }
214:
215: public void text(java.lang.String value)
216: throws com.sun.xml.bind.unmarshaller.UnreportedException {
217: try {
218: switch (state) {
219: case 1:
220: try {
221: _RelatedObjectFieldName = value;
222: } catch (java.lang.Exception e) {
223: handleParseConversionException(e);
224: }
225: state = 2;
226: return;
227: case 9:
228: revertToParentFromText(value);
229: return;
230: case 7:
231: try {
232: _FieldNameInTargetComponent = value;
233: } catch (java.lang.Exception e) {
234: handleParseConversionException(e);
235: }
236: state = 8;
237: return;
238: case 4:
239: try {
240: _DataType = value;
241: } catch (java.lang.Exception e) {
242: handleParseConversionException(e);
243: }
244: state = 5;
245: return;
246: }
247: } catch (java.lang.RuntimeException e) {
248: handleUnexpectedTextException(value, e);
249: }
250: }
251:
252: }
253:
254: }
|