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: 2004.02.20 at 03:56:47 PST
006: //
007:
008: package org.jaffa.patterns.library.domain_creator_1_1.domain.impl;
009:
010: public class RelationshipFieldImpl
011: implements
012: org.jaffa.patterns.library.domain_creator_1_1.domain.RelationshipField,
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 _Name;
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.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\fcontentModelt\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\u0003xp\u0000\u00c6#\u00capp\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\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0004\u0000\u00c6#\u00bfppsr\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\u000fL\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\u0004\u0000\u0000\u0000\nppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000fL\u0000\fnamespaceURIq\u0000~\u0000\u000fxpq\u0000~\u0000\u0013q\u0000~\u0000\u0012sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000fL\u0000\fnamespaceURIq\u0000~\u0000\u000fxr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004Namet\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");
020:
021: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
022: return org.jaffa.patterns.library.domain_creator_1_1.domain.RelationshipField.class;
023: }
024:
025: public java.lang.String getName() {
026: return _Name;
027: }
028:
029: public void setName(java.lang.String value) {
030: _Name = value;
031: }
032:
033: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
034: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
035: return new org.jaffa.patterns.library.domain_creator_1_1.domain.impl.RelationshipFieldImpl.Unmarshaller(
036: context);
037: }
038:
039: public java.lang.Class getPrimaryInterfaceClass() {
040: return PRIMARY_INTERFACE_CLASS();
041: }
042:
043: public void serializeElements(
044: com.sun.xml.bind.serializer.XMLSerializer context)
045: throws org.xml.sax.SAXException {
046: context.startElement("", "Name");
047: context.endAttributes();
048: try {
049: context.text(((java.lang.String) _Name));
050: } catch (java.lang.Exception e) {
051: com.sun.xml.bind.marshaller.Util
052: .handlePrintConversionException(this , e, context);
053: }
054: context.endElement();
055: }
056:
057: public void serializeAttributes(
058: com.sun.xml.bind.serializer.XMLSerializer context)
059: throws org.xml.sax.SAXException {
060: }
061:
062: public void serializeAttributeBodies(
063: com.sun.xml.bind.serializer.XMLSerializer context)
064: throws org.xml.sax.SAXException {
065: }
066:
067: public java.lang.Class getPrimaryInterface() {
068: return (org.jaffa.patterns.library.domain_creator_1_1.domain.RelationshipField.class);
069: }
070:
071: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
072: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
073: schemaFragment);
074: }
075:
076: public class Unmarshaller extends
077: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
078:
079: public Unmarshaller(
080: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
081: super (context, "----");
082: }
083:
084: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
085: return org.jaffa.patterns.library.domain_creator_1_1.domain.impl.RelationshipFieldImpl.this ;
086: }
087:
088: public void enterElement(java.lang.String ___uri,
089: java.lang.String ___local, org.xml.sax.Attributes __atts)
090: throws com.sun.xml.bind.unmarshaller.UnreportedException {
091: switch (state) {
092: case 3:
093: revertToParentFromEnterElement(___uri, ___local, __atts);
094: return;
095: case 0:
096: if (("" == ___uri) && ("Name" == ___local)) {
097: context.pushAttributes(__atts);
098: state = 1;
099: return;
100: }
101: break;
102: }
103: super .enterElement(___uri, ___local, __atts);
104: }
105:
106: public void leaveElement(java.lang.String ___uri,
107: java.lang.String ___local)
108: throws com.sun.xml.bind.unmarshaller.UnreportedException {
109: switch (state) {
110: case 3:
111: revertToParentFromLeaveElement(___uri, ___local);
112: return;
113: case 2:
114: if (("" == ___uri) && ("Name" == ___local)) {
115: context.popAttributes();
116: state = 3;
117: return;
118: }
119: break;
120: }
121: super .leaveElement(___uri, ___local);
122: }
123:
124: public void enterAttribute(java.lang.String ___uri,
125: java.lang.String ___local)
126: throws com.sun.xml.bind.unmarshaller.UnreportedException {
127: switch (state) {
128: case 3:
129: revertToParentFromEnterAttribute(___uri, ___local);
130: return;
131: }
132: super .enterAttribute(___uri, ___local);
133: }
134:
135: public void leaveAttribute(java.lang.String ___uri,
136: java.lang.String ___local)
137: throws com.sun.xml.bind.unmarshaller.UnreportedException {
138: switch (state) {
139: case 3:
140: revertToParentFromLeaveAttribute(___uri, ___local);
141: return;
142: }
143: super .leaveAttribute(___uri, ___local);
144: }
145:
146: public void text(java.lang.String value)
147: throws com.sun.xml.bind.unmarshaller.UnreportedException {
148: try {
149: switch (state) {
150: case 1:
151: try {
152: _Name = value;
153: } catch (java.lang.Exception e) {
154: handleParseConversionException(e);
155: }
156: state = 2;
157: return;
158: case 3:
159: revertToParentFromText(value);
160: return;
161: }
162: } catch (java.lang.RuntimeException e) {
163: handleUnexpectedTextException(value, e);
164: }
165: }
166:
167: }
168:
169: }
|