RelatedRecipeImpl.java 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:08 PM(kohsuke)-fcs
  3. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2018.09.10 at 08:01:16 AM PDT
  6. //
  7. package magoffin.matt.ieat.domain.impl;
  8. public class RelatedRecipeImpl implements magoffin.matt.ieat.domain.RelatedRecipe, java.io.Serializable, com.sun.xml.bind.JAXBObject, magoffin.matt.ieat.domain.impl.runtime.UnmarshallableObject, magoffin.matt.ieat.domain.impl.runtime.XMLSerializable, magoffin.matt.ieat.domain.impl.runtime.ValidatableObject
  9. {
  10. private final static long serialVersionUID = 200905041L;
  11. protected magoffin.matt.ieat.domain.Recipe _Recipe;
  12. protected magoffin.matt.ieat.domain.RelationKind _Kind;
  13. public final static java.lang.Class version = (magoffin.matt.ieat.domain.impl.JAXBVersion.class);
  14. private static com.sun.msv.grammar.Grammar schemaFragment;
  15. protected boolean has_Hjid;
  16. protected java.lang.Long _Hjid;
  17. private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
  18. return (magoffin.matt.ieat.domain.RelatedRecipe.class);
  19. }
  20. public magoffin.matt.ieat.domain.Recipe getRecipe() {
  21. return _Recipe;
  22. }
  23. public void setRecipe(magoffin.matt.ieat.domain.Recipe value) {
  24. _Recipe = value;
  25. }
  26. public magoffin.matt.ieat.domain.RelationKind getKind() {
  27. return _Kind;
  28. }
  29. public void setKind(magoffin.matt.ieat.domain.RelationKind value) {
  30. _Kind = value;
  31. }
  32. public magoffin.matt.ieat.domain.impl.runtime.UnmarshallingEventHandler createUnmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  33. return new magoffin.matt.ieat.domain.impl.RelatedRecipeImpl.Unmarshaller(context);
  34. }
  35. public void serializeBody(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  36. throws org.xml.sax.SAXException
  37. {
  38. context.startElement("http://msqr.us/xsd/ieat", "kind");
  39. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Kind), "Kind");
  40. context.endNamespaceDecls();
  41. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Kind), "Kind");
  42. context.endAttributes();
  43. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Kind), "Kind");
  44. context.endElement();
  45. context.startElement("http://msqr.us/xsd/ieat", "recipe");
  46. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  47. context.endNamespaceDecls();
  48. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  49. context.endAttributes();
  50. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  51. context.endElement();
  52. }
  53. public void serializeAttributes(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  54. throws org.xml.sax.SAXException
  55. {
  56. }
  57. public void serializeURIs(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  58. throws org.xml.sax.SAXException
  59. {
  60. }
  61. public java.lang.Class getPrimaryInterface() {
  62. return (magoffin.matt.ieat.domain.RelatedRecipe.class);
  63. }
  64. public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
  65. if (schemaFragment == null) {
  66. schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
  67. "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
  68. +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
  69. +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
  70. +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
  71. +"expandedExpq\u0000~\u0000\u0002xpppsr\u0000\'com.sun.msv.grammar.trex.ElementPatt"
  72. +"ern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;"
  73. +"xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndecl"
  74. +"aredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0006pp\u0000"
  75. +"sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com."
  76. +"sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.gramm"
  77. +"ar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean"
  78. +"\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.msv.grammar.AttributeExp\u0000"
  79. +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\u0007xq\u0000~\u0000\u0003q\u0000~\u0000\u0012psr\u00002com.su"
  80. +"n.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000"
  81. +"\u0003sq\u0000~\u0000\u0011\u0001q\u0000~\u0000\u0016sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
  82. +"xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.ms"
  83. +"v.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u0017"
  84. +"q\u0000~\u0000\u001csr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlo"
  85. +"calNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001exq\u0000~\u0000\u0019t\u0000&mag"
  86. +"offin.matt.ieat.domain.RelationKindt\u0000+http://java.sun.com/ja"
  87. +"xb/xjc/dummy-elementssq\u0000~\u0000\fppsq\u0000~\u0000\u0013q\u0000~\u0000\u0012psr\u0000\u001bcom.sun.msv.gra"
  88. +"mmar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatyp"
  89. +"e;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000"
  90. +"\u0003ppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com."
  91. +"sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun"
  92. +".msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.dat"
  93. +"atype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001eL\u0000\bty"
  94. +"peNameq\u0000~\u0000\u001eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSp"
  95. +"aceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr"
  96. +"\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000"
  97. +"\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000"
  98. +"\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpression\u0000"
  99. +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002"
  100. +"L\u0000\tlocalNameq\u0000~\u0000\u001eL\u0000\fnamespaceURIq\u0000~\u0000\u001expq\u0000~\u0000/q\u0000~\u0000.sq\u0000~\u0000\u001dt\u0000\u0004ty"
  101. +"pet\u0000)http://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001csq\u0000~\u0000\u001dt\u0000\u0004"
  102. +"kindt\u0000\u0017http://msqr.us/xsd/ieatsq\u0000~\u0000\u0006pp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0006pp\u0000sq\u0000~"
  103. +"\u0000\fppsq\u0000~\u0000\u000eq\u0000~\u0000\u0012psq\u0000~\u0000\u0013q\u0000~\u0000\u0012pq\u0000~\u0000\u0016q\u0000~\u0000\u001aq\u0000~\u0000\u001csq\u0000~\u0000\u001dt\u0000 magoffin"
  104. +".matt.ieat.domain.Recipeq\u0000~\u0000!sq\u0000~\u0000\fppsq\u0000~\u0000\u0013q\u0000~\u0000\u0012pq\u0000~\u0000\'q\u0000~\u00007q"
  105. +"\u0000~\u0000\u001csq\u0000~\u0000\u001dt\u0000\u0006recipeq\u0000~\u0000<sr\u0000\"com.sun.msv.grammar.ExpressionPo"
  106. +"ol\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPo"
  107. +"ol$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$Close"
  108. +"dHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun"
  109. +"/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\t\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\nq\u0000~\u0000>q\u0000~\u0000\rq\u0000~\u0000"
  110. +"@q\u0000~\u0000\u0010q\u0000~\u0000Aq\u0000~\u0000\"q\u0000~\u0000Ex"));
  111. }
  112. return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
  113. }
  114. public boolean equals(java.lang.Object obj) {
  115. if (this == obj) {
  116. return true;
  117. }
  118. if ((null == obj)||(!(obj instanceof magoffin.matt.ieat.domain.RelatedRecipe))) {
  119. return false;
  120. }
  121. magoffin.matt.ieat.domain.impl.RelatedRecipeImpl target = ((magoffin.matt.ieat.domain.impl.RelatedRecipeImpl) obj);
  122. {
  123. magoffin.matt.ieat.domain.Recipe value = this.getRecipe();
  124. magoffin.matt.ieat.domain.Recipe targetValue = target.getRecipe();
  125. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  126. return false;
  127. }
  128. }
  129. {
  130. magoffin.matt.ieat.domain.RelationKind value = this.getKind();
  131. magoffin.matt.ieat.domain.RelationKind targetValue = target.getKind();
  132. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  133. return false;
  134. }
  135. }
  136. return true;
  137. }
  138. public int hashCode() {
  139. int hash = 7;
  140. {
  141. magoffin.matt.ieat.domain.Recipe value = this.getRecipe();
  142. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  143. }
  144. {
  145. magoffin.matt.ieat.domain.RelationKind value = this.getKind();
  146. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  147. }
  148. return hash;
  149. }
  150. public java.lang.Long getHjid() {
  151. return _Hjid;
  152. }
  153. public void setHjid(java.lang.Long value) {
  154. _Hjid = value;
  155. has_Hjid = true;
  156. }
  157. public class Unmarshaller
  158. extends magoffin.matt.ieat.domain.impl.runtime.AbstractUnmarshallingEventHandlerImpl
  159. {
  160. public Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  161. super(context, "-------");
  162. }
  163. protected Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context, int startState) {
  164. this(context);
  165. state = startState;
  166. }
  167. public java.lang.Object owner() {
  168. return magoffin.matt.ieat.domain.impl.RelatedRecipeImpl.this;
  169. }
  170. public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
  171. throws org.xml.sax.SAXException
  172. {
  173. int attIdx;
  174. outer:
  175. while (true) {
  176. switch (state) {
  177. case 0 :
  178. if (("kind" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  179. context.pushAttributes(__atts, true);
  180. state = 1;
  181. return ;
  182. }
  183. break;
  184. case 4 :
  185. attIdx = context.getAttribute("", "createdDate");
  186. if (attIdx >= 0) {
  187. context.consumeAttribute(attIdx);
  188. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  189. return ;
  190. }
  191. attIdx = context.getAttribute("", "modifiedDate");
  192. if (attIdx >= 0) {
  193. context.consumeAttribute(attIdx);
  194. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  195. return ;
  196. }
  197. attIdx = context.getAttribute("", "recipeId");
  198. if (attIdx >= 0) {
  199. context.consumeAttribute(attIdx);
  200. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  201. return ;
  202. }
  203. attIdx = context.getAttribute("", "servingSize");
  204. if (attIdx >= 0) {
  205. context.consumeAttribute(attIdx);
  206. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  207. return ;
  208. }
  209. if (("name" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  210. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterElement((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname, __atts));
  211. return ;
  212. }
  213. break;
  214. case 1 :
  215. attIdx = context.getAttribute("", "relationKindId");
  216. if (attIdx >= 0) {
  217. context.consumeAttribute(attIdx);
  218. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  219. return ;
  220. }
  221. break;
  222. case 3 :
  223. if (("recipe" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  224. context.pushAttributes(__atts, false);
  225. state = 4;
  226. return ;
  227. }
  228. break;
  229. case 6 :
  230. revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
  231. return ;
  232. }
  233. super.enterElement(___uri, ___local, ___qname, __atts);
  234. break;
  235. }
  236. }
  237. public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  238. throws org.xml.sax.SAXException
  239. {
  240. int attIdx;
  241. outer:
  242. while (true) {
  243. switch (state) {
  244. case 2 :
  245. if (("kind" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  246. context.popAttributes();
  247. state = 3;
  248. return ;
  249. }
  250. break;
  251. case 5 :
  252. if (("recipe" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  253. context.popAttributes();
  254. state = 6;
  255. return ;
  256. }
  257. break;
  258. case 4 :
  259. attIdx = context.getAttribute("", "createdDate");
  260. if (attIdx >= 0) {
  261. context.consumeAttribute(attIdx);
  262. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  263. return ;
  264. }
  265. attIdx = context.getAttribute("", "modifiedDate");
  266. if (attIdx >= 0) {
  267. context.consumeAttribute(attIdx);
  268. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  269. return ;
  270. }
  271. attIdx = context.getAttribute("", "recipeId");
  272. if (attIdx >= 0) {
  273. context.consumeAttribute(attIdx);
  274. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  275. return ;
  276. }
  277. attIdx = context.getAttribute("", "servingSize");
  278. if (attIdx >= 0) {
  279. context.consumeAttribute(attIdx);
  280. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  281. return ;
  282. }
  283. break;
  284. case 1 :
  285. attIdx = context.getAttribute("", "relationKindId");
  286. if (attIdx >= 0) {
  287. context.consumeAttribute(attIdx);
  288. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  289. return ;
  290. }
  291. break;
  292. case 6 :
  293. revertToParentFromLeaveElement(___uri, ___local, ___qname);
  294. return ;
  295. }
  296. super.leaveElement(___uri, ___local, ___qname);
  297. break;
  298. }
  299. }
  300. public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  301. throws org.xml.sax.SAXException
  302. {
  303. int attIdx;
  304. outer:
  305. while (true) {
  306. switch (state) {
  307. case 4 :
  308. if (("createdDate" == ___local)&&("" == ___uri)) {
  309. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  310. return ;
  311. }
  312. if (("modifiedDate" == ___local)&&("" == ___uri)) {
  313. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  314. return ;
  315. }
  316. if (("recipeId" == ___local)&&("" == ___uri)) {
  317. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  318. return ;
  319. }
  320. if (("servingSize" == ___local)&&("" == ___uri)) {
  321. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  322. return ;
  323. }
  324. break;
  325. case 1 :
  326. if (("relationKindId" == ___local)&&("" == ___uri)) {
  327. _Kind = ((magoffin.matt.ieat.domain.impl.RelationKindImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RelationKindImpl.class), 2, ___uri, ___local, ___qname));
  328. return ;
  329. }
  330. break;
  331. case 6 :
  332. revertToParentFromEnterAttribute(___uri, ___local, ___qname);
  333. return ;
  334. }
  335. super.enterAttribute(___uri, ___local, ___qname);
  336. break;
  337. }
  338. }
  339. public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  340. throws org.xml.sax.SAXException
  341. {
  342. int attIdx;
  343. outer:
  344. while (true) {
  345. switch (state) {
  346. case 4 :
  347. attIdx = context.getAttribute("", "createdDate");
  348. if (attIdx >= 0) {
  349. context.consumeAttribute(attIdx);
  350. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  351. return ;
  352. }
  353. attIdx = context.getAttribute("", "modifiedDate");
  354. if (attIdx >= 0) {
  355. context.consumeAttribute(attIdx);
  356. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  357. return ;
  358. }
  359. attIdx = context.getAttribute("", "recipeId");
  360. if (attIdx >= 0) {
  361. context.consumeAttribute(attIdx);
  362. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  363. return ;
  364. }
  365. attIdx = context.getAttribute("", "servingSize");
  366. if (attIdx >= 0) {
  367. context.consumeAttribute(attIdx);
  368. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  369. return ;
  370. }
  371. break;
  372. case 1 :
  373. attIdx = context.getAttribute("", "relationKindId");
  374. if (attIdx >= 0) {
  375. context.consumeAttribute(attIdx);
  376. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  377. return ;
  378. }
  379. break;
  380. case 6 :
  381. revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
  382. return ;
  383. }
  384. super.leaveAttribute(___uri, ___local, ___qname);
  385. break;
  386. }
  387. }
  388. public void handleText(final java.lang.String value)
  389. throws org.xml.sax.SAXException
  390. {
  391. int attIdx;
  392. outer:
  393. while (true) {
  394. try {
  395. switch (state) {
  396. case 4 :
  397. attIdx = context.getAttribute("", "createdDate");
  398. if (attIdx >= 0) {
  399. context.consumeAttribute(attIdx);
  400. context.getCurrentHandler().text(value);
  401. return ;
  402. }
  403. attIdx = context.getAttribute("", "modifiedDate");
  404. if (attIdx >= 0) {
  405. context.consumeAttribute(attIdx);
  406. context.getCurrentHandler().text(value);
  407. return ;
  408. }
  409. attIdx = context.getAttribute("", "recipeId");
  410. if (attIdx >= 0) {
  411. context.consumeAttribute(attIdx);
  412. context.getCurrentHandler().text(value);
  413. return ;
  414. }
  415. attIdx = context.getAttribute("", "servingSize");
  416. if (attIdx >= 0) {
  417. context.consumeAttribute(attIdx);
  418. context.getCurrentHandler().text(value);
  419. return ;
  420. }
  421. break;
  422. case 1 :
  423. attIdx = context.getAttribute("", "relationKindId");
  424. if (attIdx >= 0) {
  425. context.consumeAttribute(attIdx);
  426. context.getCurrentHandler().text(value);
  427. return ;
  428. }
  429. _Kind = ((magoffin.matt.ieat.domain.impl.RelationKindImpl) spawnChildFromText((magoffin.matt.ieat.domain.impl.RelationKindImpl.class), 2, value));
  430. return ;
  431. case 6 :
  432. revertToParentFromText(value);
  433. return ;
  434. }
  435. } catch (java.lang.RuntimeException e) {
  436. handleUnexpectedTextException(value, e);
  437. }
  438. break;
  439. }
  440. }
  441. }
  442. }