MealRecipeImpl.java 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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 MealRecipeImpl implements magoffin.matt.ieat.domain.MealRecipe, 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 boolean has_Quantity;
  13. protected double _Quantity;
  14. protected magoffin.matt.ieat.domain.Course _Course;
  15. public final static java.lang.Class version = (magoffin.matt.ieat.domain.impl.JAXBVersion.class);
  16. private static com.sun.msv.grammar.Grammar schemaFragment;
  17. protected boolean has_Hjid;
  18. protected java.lang.Long _Hjid;
  19. private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
  20. return (magoffin.matt.ieat.domain.MealRecipe.class);
  21. }
  22. public magoffin.matt.ieat.domain.Recipe getRecipe() {
  23. return _Recipe;
  24. }
  25. public void setRecipe(magoffin.matt.ieat.domain.Recipe value) {
  26. _Recipe = value;
  27. }
  28. public double getQuantity() {
  29. if (!has_Quantity) {
  30. return javax.xml.bind.DatatypeConverter.parseDouble(com.sun.xml.bind.DatatypeConverterImpl.installHook("1.0"));
  31. } else {
  32. return _Quantity;
  33. }
  34. }
  35. public void setQuantity(double value) {
  36. _Quantity = value;
  37. has_Quantity = true;
  38. }
  39. public magoffin.matt.ieat.domain.Course getCourse() {
  40. return _Course;
  41. }
  42. public void setCourse(magoffin.matt.ieat.domain.Course value) {
  43. _Course = value;
  44. }
  45. public magoffin.matt.ieat.domain.impl.runtime.UnmarshallingEventHandler createUnmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  46. return new magoffin.matt.ieat.domain.impl.MealRecipeImpl.Unmarshaller(context);
  47. }
  48. public void serializeBody(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  49. throws org.xml.sax.SAXException
  50. {
  51. context.startElement("http://msqr.us/xsd/ieat", "recipe");
  52. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  53. context.endNamespaceDecls();
  54. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  55. context.endAttributes();
  56. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  57. context.endElement();
  58. context.startElement("http://msqr.us/xsd/ieat", "course");
  59. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Course), "Course");
  60. context.endNamespaceDecls();
  61. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Course), "Course");
  62. context.endAttributes();
  63. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Course), "Course");
  64. context.endElement();
  65. }
  66. public void serializeAttributes(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  67. throws org.xml.sax.SAXException
  68. {
  69. if (has_Quantity) {
  70. context.startAttribute("", "quantity");
  71. try {
  72. context.text(javax.xml.bind.DatatypeConverter.printDouble(((double) _Quantity)), "Quantity");
  73. } catch (java.lang.Exception e) {
  74. magoffin.matt.ieat.domain.impl.runtime.Util.handlePrintConversionException(this, e, context);
  75. }
  76. context.endAttribute();
  77. }
  78. }
  79. public void serializeURIs(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  80. throws org.xml.sax.SAXException
  81. {
  82. }
  83. public java.lang.Class getPrimaryInterface() {
  84. return (magoffin.matt.ieat.domain.MealRecipe.class);
  85. }
  86. public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
  87. if (schemaFragment == null) {
  88. schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
  89. "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
  90. +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
  91. +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
  92. +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
  93. +"expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsr\u0000\'com.sun.msv.grammar.trex.Ele"
  94. +"mentPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/Na"
  95. +"meClass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aigno"
  96. +"reUndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sq\u0000~\u0000\u0000pps"
  97. +"q\u0000~\u0000\u0007pp\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001pp"
  98. +"sr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.m"
  99. +"sv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003sr\u0000\u0011java.lang"
  100. +".Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.msv.grammar.Attri"
  101. +"buteExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\bxq\u0000~\u0000\u0003q\u0000~\u0000\u0013psr"
  102. +"\u00002com.sun.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
  103. +"\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u0012\u0001q\u0000~\u0000\u0017sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000"
  104. +"\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\u00000co"
  105. +"m.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000"
  106. +"~\u0000\u0003q\u0000~\u0000\u0018q\u0000~\u0000\u001dsr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
  107. +"\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000\u001fxq\u0000~"
  108. +"\u0000\u001at\u0000 magoffin.matt.ieat.domain.Recipet\u0000+http://java.sun.com/"
  109. +"jaxb/xjc/dummy-elementssq\u0000~\u0000\rppsq\u0000~\u0000\u0014q\u0000~\u0000\u0013psr\u0000\u001bcom.sun.msv.g"
  110. +"rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat"
  111. +"ype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000"
  112. +"~\u0000\u0003ppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*co"
  113. +"m.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.s"
  114. +"un.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.d"
  115. +"atatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001fL\u0000\b"
  116. +"typeNameq\u0000~\u0000\u001fL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/White"
  117. +"SpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QName"
  118. +"sr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000"
  119. +"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000"
  120. +"\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpressio"
  121. +"n\u0000\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"
  122. +"\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001fL\u0000\fnamespaceURIq\u0000~\u0000\u001fxpq\u0000~\u00000q\u0000~\u0000/sq\u0000~\u0000\u001et\u0000\u0004"
  123. +"typet\u0000)http://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001dsq\u0000~\u0000\u001et"
  124. +"\u0000\u0006recipet\u0000\u0017http://msqr.us/xsd/ieatsq\u0000~\u0000\u0007pp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0007pp\u0000"
  125. +"sq\u0000~\u0000\rppsq\u0000~\u0000\u000fq\u0000~\u0000\u0013psq\u0000~\u0000\u0014q\u0000~\u0000\u0013pq\u0000~\u0000\u0017q\u0000~\u0000\u001bq\u0000~\u0000\u001dsq\u0000~\u0000\u001et\u0000 mago"
  126. +"ffin.matt.ieat.domain.Courseq\u0000~\u0000\"sq\u0000~\u0000\rppsq\u0000~\u0000\u0014q\u0000~\u0000\u0013pq\u0000~\u0000(q\u0000"
  127. +"~\u00008q\u0000~\u0000\u001dsq\u0000~\u0000\u001et\u0000\u0006courseq\u0000~\u0000=sq\u0000~\u0000\rppsq\u0000~\u0000\u0014q\u0000~\u0000\u0013psq\u0000~\u0000%ppsr\u0000#"
  128. +"com.sun.msv.datatype.xsd.DoubleType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.ms"
  129. +"v.datatype.xsd.FloatingNumberType\u00fc\u00e3\u00b6\u0087\u008c\u00a8|\u00e0\u0002\u0000\u0000xq\u0000~\u0000*q\u0000~\u0000/t\u0000\u0006do"
  130. +"ubleq\u0000~\u00003q\u0000~\u00005sq\u0000~\u00006q\u0000~\u0000Pq\u0000~\u0000/sq\u0000~\u0000\u001et\u0000\bquantityt\u0000\u0000q\u0000~\u0000\u001dsr\u0000\"c"
  131. +"om.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lc"
  132. +"om/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.m"
  133. +"sv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rst"
  134. +"reamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;x"
  135. +"p\u0000\u0000\u0000\u000b\u0001pq\u0000~\u0000\u0006q\u0000~\u0000\u000bq\u0000~\u0000?q\u0000~\u0000\u000eq\u0000~\u0000Aq\u0000~\u0000\u0005q\u0000~\u0000Jq\u0000~\u0000\u0011q\u0000~\u0000Bq\u0000~\u0000#q\u0000~"
  136. +"\u0000Fx"));
  137. }
  138. return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
  139. }
  140. public boolean equals(java.lang.Object obj) {
  141. if (this == obj) {
  142. return true;
  143. }
  144. if ((null == obj)||(!(obj instanceof magoffin.matt.ieat.domain.MealRecipe))) {
  145. return false;
  146. }
  147. magoffin.matt.ieat.domain.impl.MealRecipeImpl target = ((magoffin.matt.ieat.domain.impl.MealRecipeImpl) obj);
  148. {
  149. magoffin.matt.ieat.domain.Recipe value = this.getRecipe();
  150. magoffin.matt.ieat.domain.Recipe targetValue = target.getRecipe();
  151. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  152. return false;
  153. }
  154. }
  155. {
  156. double value = this.getQuantity();
  157. double targetValue = target.getQuantity();
  158. if (value!= targetValue) {
  159. return false;
  160. }
  161. }
  162. {
  163. magoffin.matt.ieat.domain.Course value = this.getCourse();
  164. magoffin.matt.ieat.domain.Course targetValue = target.getCourse();
  165. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  166. return false;
  167. }
  168. }
  169. return true;
  170. }
  171. public int hashCode() {
  172. int hash = 7;
  173. {
  174. magoffin.matt.ieat.domain.Recipe value = this.getRecipe();
  175. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  176. }
  177. {
  178. double value = this.getQuantity();
  179. hash = ((31 *hash)+((int)(java.lang.Double.doubleToLongBits(value)^(java.lang.Double.doubleToLongBits(value)>>> 32))));
  180. }
  181. {
  182. magoffin.matt.ieat.domain.Course value = this.getCourse();
  183. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  184. }
  185. return hash;
  186. }
  187. public java.lang.Long getHjid() {
  188. return _Hjid;
  189. }
  190. public void setHjid(java.lang.Long value) {
  191. _Hjid = value;
  192. has_Hjid = true;
  193. }
  194. public class Unmarshaller
  195. extends magoffin.matt.ieat.domain.impl.runtime.AbstractUnmarshallingEventHandlerImpl
  196. {
  197. public Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  198. super(context, "----------");
  199. }
  200. protected Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context, int startState) {
  201. this(context);
  202. state = startState;
  203. }
  204. public java.lang.Object owner() {
  205. return magoffin.matt.ieat.domain.impl.MealRecipeImpl.this;
  206. }
  207. public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
  208. throws org.xml.sax.SAXException
  209. {
  210. int attIdx;
  211. outer:
  212. while (true) {
  213. switch (state) {
  214. case 4 :
  215. attIdx = context.getAttribute("", "createdDate");
  216. if (attIdx >= 0) {
  217. context.consumeAttribute(attIdx);
  218. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  219. return ;
  220. }
  221. attIdx = context.getAttribute("", "modifiedDate");
  222. if (attIdx >= 0) {
  223. context.consumeAttribute(attIdx);
  224. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  225. return ;
  226. }
  227. attIdx = context.getAttribute("", "recipeId");
  228. if (attIdx >= 0) {
  229. context.consumeAttribute(attIdx);
  230. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  231. return ;
  232. }
  233. attIdx = context.getAttribute("", "servingSize");
  234. if (attIdx >= 0) {
  235. context.consumeAttribute(attIdx);
  236. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  237. return ;
  238. }
  239. if (("name" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  240. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterElement((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname, __atts));
  241. return ;
  242. }
  243. break;
  244. case 7 :
  245. attIdx = context.getAttribute("", "courseId");
  246. if (attIdx >= 0) {
  247. context.consumeAttribute(attIdx);
  248. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  249. return ;
  250. }
  251. break;
  252. case 3 :
  253. if (("recipe" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  254. context.pushAttributes(__atts, false);
  255. state = 4;
  256. return ;
  257. }
  258. break;
  259. case 6 :
  260. if (("course" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  261. context.pushAttributes(__atts, true);
  262. state = 7;
  263. return ;
  264. }
  265. break;
  266. case 9 :
  267. revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
  268. return ;
  269. case 0 :
  270. attIdx = context.getAttribute("", "quantity");
  271. if (attIdx >= 0) {
  272. final java.lang.String v = context.eatAttribute(attIdx);
  273. state = 3;
  274. eatText1(v);
  275. continue outer;
  276. }
  277. state = 3;
  278. continue outer;
  279. }
  280. super.enterElement(___uri, ___local, ___qname, __atts);
  281. break;
  282. }
  283. }
  284. private void eatText1(final java.lang.String value)
  285. throws org.xml.sax.SAXException
  286. {
  287. try {
  288. _Quantity = javax.xml.bind.DatatypeConverter.parseDouble(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
  289. has_Quantity = true;
  290. } catch (java.lang.Exception e) {
  291. handleParseConversionException(e);
  292. }
  293. }
  294. public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  295. throws org.xml.sax.SAXException
  296. {
  297. int attIdx;
  298. outer:
  299. while (true) {
  300. switch (state) {
  301. case 4 :
  302. attIdx = context.getAttribute("", "createdDate");
  303. if (attIdx >= 0) {
  304. context.consumeAttribute(attIdx);
  305. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  306. return ;
  307. }
  308. attIdx = context.getAttribute("", "modifiedDate");
  309. if (attIdx >= 0) {
  310. context.consumeAttribute(attIdx);
  311. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  312. return ;
  313. }
  314. attIdx = context.getAttribute("", "recipeId");
  315. if (attIdx >= 0) {
  316. context.consumeAttribute(attIdx);
  317. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  318. return ;
  319. }
  320. attIdx = context.getAttribute("", "servingSize");
  321. if (attIdx >= 0) {
  322. context.consumeAttribute(attIdx);
  323. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  324. return ;
  325. }
  326. break;
  327. case 8 :
  328. if (("course" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  329. context.popAttributes();
  330. state = 9;
  331. return ;
  332. }
  333. break;
  334. case 5 :
  335. if (("recipe" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  336. context.popAttributes();
  337. state = 6;
  338. return ;
  339. }
  340. break;
  341. case 7 :
  342. attIdx = context.getAttribute("", "courseId");
  343. if (attIdx >= 0) {
  344. context.consumeAttribute(attIdx);
  345. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  346. return ;
  347. }
  348. break;
  349. case 9 :
  350. revertToParentFromLeaveElement(___uri, ___local, ___qname);
  351. return ;
  352. case 0 :
  353. attIdx = context.getAttribute("", "quantity");
  354. if (attIdx >= 0) {
  355. final java.lang.String v = context.eatAttribute(attIdx);
  356. state = 3;
  357. eatText1(v);
  358. continue outer;
  359. }
  360. state = 3;
  361. continue outer;
  362. }
  363. super.leaveElement(___uri, ___local, ___qname);
  364. break;
  365. }
  366. }
  367. public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  368. throws org.xml.sax.SAXException
  369. {
  370. int attIdx;
  371. outer:
  372. while (true) {
  373. switch (state) {
  374. case 4 :
  375. if (("createdDate" == ___local)&&("" == ___uri)) {
  376. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  377. return ;
  378. }
  379. if (("modifiedDate" == ___local)&&("" == ___uri)) {
  380. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  381. return ;
  382. }
  383. if (("recipeId" == ___local)&&("" == ___uri)) {
  384. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  385. return ;
  386. }
  387. if (("servingSize" == ___local)&&("" == ___uri)) {
  388. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 5, ___uri, ___local, ___qname));
  389. return ;
  390. }
  391. break;
  392. case 7 :
  393. if (("courseId" == ___local)&&("" == ___uri)) {
  394. _Course = ((magoffin.matt.ieat.domain.impl.CourseImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.CourseImpl.class), 8, ___uri, ___local, ___qname));
  395. return ;
  396. }
  397. break;
  398. case 9 :
  399. revertToParentFromEnterAttribute(___uri, ___local, ___qname);
  400. return ;
  401. case 0 :
  402. if (("quantity" == ___local)&&("" == ___uri)) {
  403. state = 1;
  404. return ;
  405. }
  406. state = 3;
  407. continue outer;
  408. }
  409. super.enterAttribute(___uri, ___local, ___qname);
  410. break;
  411. }
  412. }
  413. public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  414. throws org.xml.sax.SAXException
  415. {
  416. int attIdx;
  417. outer:
  418. while (true) {
  419. switch (state) {
  420. case 4 :
  421. attIdx = context.getAttribute("", "createdDate");
  422. if (attIdx >= 0) {
  423. context.consumeAttribute(attIdx);
  424. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  425. return ;
  426. }
  427. attIdx = context.getAttribute("", "modifiedDate");
  428. if (attIdx >= 0) {
  429. context.consumeAttribute(attIdx);
  430. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  431. return ;
  432. }
  433. attIdx = context.getAttribute("", "recipeId");
  434. if (attIdx >= 0) {
  435. context.consumeAttribute(attIdx);
  436. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  437. return ;
  438. }
  439. attIdx = context.getAttribute("", "servingSize");
  440. if (attIdx >= 0) {
  441. context.consumeAttribute(attIdx);
  442. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  443. return ;
  444. }
  445. break;
  446. case 7 :
  447. attIdx = context.getAttribute("", "courseId");
  448. if (attIdx >= 0) {
  449. context.consumeAttribute(attIdx);
  450. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  451. return ;
  452. }
  453. break;
  454. case 2 :
  455. if (("quantity" == ___local)&&("" == ___uri)) {
  456. state = 3;
  457. return ;
  458. }
  459. break;
  460. case 9 :
  461. revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
  462. return ;
  463. case 0 :
  464. attIdx = context.getAttribute("", "quantity");
  465. if (attIdx >= 0) {
  466. final java.lang.String v = context.eatAttribute(attIdx);
  467. state = 3;
  468. eatText1(v);
  469. continue outer;
  470. }
  471. state = 3;
  472. continue outer;
  473. }
  474. super.leaveAttribute(___uri, ___local, ___qname);
  475. break;
  476. }
  477. }
  478. public void handleText(final java.lang.String value)
  479. throws org.xml.sax.SAXException
  480. {
  481. int attIdx;
  482. outer:
  483. while (true) {
  484. try {
  485. switch (state) {
  486. case 4 :
  487. attIdx = context.getAttribute("", "createdDate");
  488. if (attIdx >= 0) {
  489. context.consumeAttribute(attIdx);
  490. context.getCurrentHandler().text(value);
  491. return ;
  492. }
  493. attIdx = context.getAttribute("", "modifiedDate");
  494. if (attIdx >= 0) {
  495. context.consumeAttribute(attIdx);
  496. context.getCurrentHandler().text(value);
  497. return ;
  498. }
  499. attIdx = context.getAttribute("", "recipeId");
  500. if (attIdx >= 0) {
  501. context.consumeAttribute(attIdx);
  502. context.getCurrentHandler().text(value);
  503. return ;
  504. }
  505. attIdx = context.getAttribute("", "servingSize");
  506. if (attIdx >= 0) {
  507. context.consumeAttribute(attIdx);
  508. context.getCurrentHandler().text(value);
  509. return ;
  510. }
  511. break;
  512. case 7 :
  513. attIdx = context.getAttribute("", "courseId");
  514. if (attIdx >= 0) {
  515. context.consumeAttribute(attIdx);
  516. context.getCurrentHandler().text(value);
  517. return ;
  518. }
  519. _Course = ((magoffin.matt.ieat.domain.impl.CourseImpl) spawnChildFromText((magoffin.matt.ieat.domain.impl.CourseImpl.class), 8, value));
  520. return ;
  521. case 1 :
  522. state = 2;
  523. eatText1(value);
  524. return ;
  525. case 9 :
  526. revertToParentFromText(value);
  527. return ;
  528. case 0 :
  529. attIdx = context.getAttribute("", "quantity");
  530. if (attIdx >= 0) {
  531. final java.lang.String v = context.eatAttribute(attIdx);
  532. state = 3;
  533. eatText1(v);
  534. continue outer;
  535. }
  536. state = 3;
  537. continue outer;
  538. }
  539. } catch (java.lang.RuntimeException e) {
  540. handleUnexpectedTextException(value, e);
  541. }
  542. break;
  543. }
  544. }
  545. }
  546. }