RecipeIngredientImpl.java 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078
  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 RecipeIngredientImpl implements magoffin.matt.ieat.domain.RecipeIngredient, 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 boolean has_Optional;
  12. protected boolean _Optional;
  13. protected magoffin.matt.ieat.domain.Ingredient _Ingredient;
  14. protected magoffin.matt.ieat.domain.Recipe _Recipe;
  15. protected boolean has_Quantity;
  16. protected double _Quantity;
  17. protected java.lang.String _Qualifier;
  18. protected magoffin.matt.ieat.domain.Unit _Unit;
  19. public final static java.lang.Class version = (magoffin.matt.ieat.domain.impl.JAXBVersion.class);
  20. private static com.sun.msv.grammar.Grammar schemaFragment;
  21. protected boolean has_Hjid;
  22. protected java.lang.Long _Hjid;
  23. private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
  24. return (magoffin.matt.ieat.domain.RecipeIngredient.class);
  25. }
  26. public boolean isOptional() {
  27. return _Optional;
  28. }
  29. public void setOptional(boolean value) {
  30. _Optional = value;
  31. has_Optional = true;
  32. }
  33. public magoffin.matt.ieat.domain.Ingredient getIngredient() {
  34. return _Ingredient;
  35. }
  36. public void setIngredient(magoffin.matt.ieat.domain.Ingredient value) {
  37. _Ingredient = value;
  38. }
  39. public magoffin.matt.ieat.domain.Recipe getRecipe() {
  40. return _Recipe;
  41. }
  42. public void setRecipe(magoffin.matt.ieat.domain.Recipe value) {
  43. _Recipe = value;
  44. }
  45. public double getQuantity() {
  46. return _Quantity;
  47. }
  48. public void setQuantity(double value) {
  49. _Quantity = value;
  50. has_Quantity = true;
  51. }
  52. public java.lang.String getQualifier() {
  53. return _Qualifier;
  54. }
  55. public void setQualifier(java.lang.String value) {
  56. _Qualifier = value;
  57. }
  58. public magoffin.matt.ieat.domain.Unit getUnit() {
  59. return _Unit;
  60. }
  61. public void setUnit(magoffin.matt.ieat.domain.Unit value) {
  62. _Unit = value;
  63. }
  64. public magoffin.matt.ieat.domain.impl.runtime.UnmarshallingEventHandler createUnmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  65. return new magoffin.matt.ieat.domain.impl.RecipeIngredientImpl.Unmarshaller(context);
  66. }
  67. public void serializeBody(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  68. throws org.xml.sax.SAXException
  69. {
  70. if (_Unit!= null) {
  71. context.startElement("http://msqr.us/xsd/ieat", "unit");
  72. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Unit), "Unit");
  73. context.endNamespaceDecls();
  74. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Unit), "Unit");
  75. context.endAttributes();
  76. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Unit), "Unit");
  77. context.endElement();
  78. }
  79. if (_Ingredient!= null) {
  80. context.startElement("http://msqr.us/xsd/ieat", "ingredient");
  81. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Ingredient), "Ingredient");
  82. context.endNamespaceDecls();
  83. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Ingredient), "Ingredient");
  84. context.endAttributes();
  85. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Ingredient), "Ingredient");
  86. context.endElement();
  87. }
  88. if (_Recipe!= null) {
  89. context.startElement("http://msqr.us/xsd/ieat", "recipe");
  90. context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  91. context.endNamespaceDecls();
  92. context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  93. context.endAttributes();
  94. context.childAsBody(((com.sun.xml.bind.JAXBObject) _Recipe), "Recipe");
  95. context.endElement();
  96. }
  97. }
  98. public void serializeAttributes(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  99. throws org.xml.sax.SAXException
  100. {
  101. if (has_Optional) {
  102. context.startAttribute("", "optional");
  103. try {
  104. context.text(javax.xml.bind.DatatypeConverter.printBoolean(((boolean) _Optional)), "Optional");
  105. } catch (java.lang.Exception e) {
  106. magoffin.matt.ieat.domain.impl.runtime.Util.handlePrintConversionException(this, e, context);
  107. }
  108. context.endAttribute();
  109. }
  110. if (_Qualifier!= null) {
  111. context.startAttribute("", "qualifier");
  112. try {
  113. context.text(((java.lang.String) _Qualifier), "Qualifier");
  114. } catch (java.lang.Exception e) {
  115. magoffin.matt.ieat.domain.impl.runtime.Util.handlePrintConversionException(this, e, context);
  116. }
  117. context.endAttribute();
  118. }
  119. if (has_Quantity) {
  120. context.startAttribute("", "quantity");
  121. try {
  122. context.text(javax.xml.bind.DatatypeConverter.printDouble(((double) _Quantity)), "Quantity");
  123. } catch (java.lang.Exception e) {
  124. magoffin.matt.ieat.domain.impl.runtime.Util.handlePrintConversionException(this, e, context);
  125. }
  126. context.endAttribute();
  127. }
  128. }
  129. public void serializeURIs(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  130. throws org.xml.sax.SAXException
  131. {
  132. }
  133. public java.lang.Class getPrimaryInterface() {
  134. return (magoffin.matt.ieat.domain.RecipeIngredient.class);
  135. }
  136. public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
  137. if (schemaFragment == null) {
  138. schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
  139. "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
  140. +"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
  141. +"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
  142. +"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
  143. +"expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom."
  144. +"sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000\'com.sun.msv."
  145. +"grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/su"
  146. +"n/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000"
  147. +"\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq"
  148. +"\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000p\u0000sq\u0000~\u0000\u0000ppsq\u0000"
  149. +"~\u0000\fpp\u0000sq\u0000~\u0000\nppsr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
  150. +"\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000"
  151. +"\u0003q\u0000~\u0000\u0011psr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003exp"
  152. +"q\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\rxq\u0000~\u0000\u0003q\u0000~\u0000\u0011psr\u00002com.sun.msv.grammar.Ex"
  153. +"pression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u0010\u0001q\u0000~\u0000\u001bsr\u0000"
  154. +" com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv."
  155. +"grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expres"
  156. +"sion$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001cq\u0000~\u0000!sr\u0000#com.sun"
  157. +".msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/"
  158. +"lang/String;L\u0000\fnamespaceURIq\u0000~\u0000#xq\u0000~\u0000\u001et\u0000\u001emagoffin.matt.ieat."
  159. +"domain.Unitt\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000"
  160. +"~\u0000\nppsq\u0000~\u0000\u0018q\u0000~\u0000\u0011psr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L"
  161. +"\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet"
  162. +"\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datat"
  163. +"ype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.Bui"
  164. +"ltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.Concre"
  165. +"teType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl"
  166. +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000#L\u0000\btypeNameq\u0000~\u0000#L\u0000\nwhiteSpace"
  167. +"t\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http:/"
  168. +"/www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.x"
  169. +"sd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.da"
  170. +"tatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.g"
  171. +"rammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bco"
  172. +"m.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000#L\u0000\fname"
  173. +"spaceURIq\u0000~\u0000#xpq\u0000~\u00004q\u0000~\u00003sq\u0000~\u0000\"t\u0000\u0004typet\u0000)http://www.w3.org/2"
  174. +"001/XMLSchema-instanceq\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u0004unitt\u0000\u0017http://msqr.us/xs"
  175. +"d/ieatq\u0000~\u0000!sq\u0000~\u0000\nppsq\u0000~\u0000\fq\u0000~\u0000\u0011p\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\fpp\u0000sq\u0000~\u0000\nppsq\u0000"
  176. +"~\u0000\u0015q\u0000~\u0000\u0011psq\u0000~\u0000\u0018q\u0000~\u0000\u0011pq\u0000~\u0000\u001bq\u0000~\u0000\u001fq\u0000~\u0000!sq\u0000~\u0000\"t\u0000$magoffin.matt.i"
  177. +"eat.domain.Ingredientq\u0000~\u0000&sq\u0000~\u0000\nppsq\u0000~\u0000\u0018q\u0000~\u0000\u0011pq\u0000~\u0000,q\u0000~\u0000<q\u0000~\u0000"
  178. +"!sq\u0000~\u0000\"t\u0000\ningredientq\u0000~\u0000Aq\u0000~\u0000!sq\u0000~\u0000\nppsq\u0000~\u0000\fq\u0000~\u0000\u0011p\u0000sq\u0000~\u0000\u0000pps"
  179. +"q\u0000~\u0000\fpp\u0000sq\u0000~\u0000\nppsq\u0000~\u0000\u0015q\u0000~\u0000\u0011psq\u0000~\u0000\u0018q\u0000~\u0000\u0011pq\u0000~\u0000\u001bq\u0000~\u0000\u001fq\u0000~\u0000!sq\u0000~\u0000"
  180. +"\"t\u0000 magoffin.matt.ieat.domain.Recipeq\u0000~\u0000&sq\u0000~\u0000\nppsq\u0000~\u0000\u0018q\u0000~\u0000\u0011"
  181. +"pq\u0000~\u0000,q\u0000~\u0000<q\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u0006recipeq\u0000~\u0000Aq\u0000~\u0000!sq\u0000~\u0000\nppsq\u0000~\u0000\u0018q\u0000~\u0000\u0011"
  182. +"psq\u0000~\u0000)ppsr\u0000$com.sun.msv.datatype.xsd.BooleanType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
  183. +"xq\u0000~\u0000.q\u0000~\u00003t\u0000\u0007booleanq\u0000~\u00007q\u0000~\u00009sq\u0000~\u0000:q\u0000~\u0000aq\u0000~\u00003sq\u0000~\u0000\"t\u0000\bopti"
  184. +"onalt\u0000\u0000q\u0000~\u0000!sq\u0000~\u0000\nppsq\u0000~\u0000\u0018q\u0000~\u0000\u0011psq\u0000~\u0000)ppsr\u0000#com.sun.msv.data"
  185. +"type.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u0000.q\u0000~\u00003t\u0000\u0006"
  186. +"stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Prese"
  187. +"rve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00006\u0001q\u0000~\u00009sq\u0000~\u0000:q\u0000~\u0000kq\u0000~\u00003sq\u0000~\u0000\"t\u0000\tqualifier"
  188. +"q\u0000~\u0000eq\u0000~\u0000!sq\u0000~\u0000\nppsq\u0000~\u0000\u0018q\u0000~\u0000\u0011psq\u0000~\u0000)ppsr\u0000#com.sun.msv.dataty"
  189. +"pe.xsd.DoubleType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.msv.datatype.xsd.Flo"
  190. +"atingNumberType\u00fc\u00e3\u00b6\u0087\u008c\u00a8|\u00e0\u0002\u0000\u0000xq\u0000~\u0000.q\u0000~\u00003t\u0000\u0006doubleq\u0000~\u00007q\u0000~\u00009sq\u0000~"
  191. +"\u0000:q\u0000~\u0000wq\u0000~\u00003sq\u0000~\u0000\"t\u0000\bquantityq\u0000~\u0000eq\u0000~\u0000!sr\u0000\"com.sun.msv.gramm"
  192. +"ar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/gramm"
  193. +"ar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expre"
  194. +"ssionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006pa"
  195. +"rentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0017\u0001pq\u0000~\u0000\u000bq\u0000~\u0000"
  196. +"Bq\u0000~\u0000Oq\u0000~\u0000\u0006q\u0000~\u0000\u0007q\u0000~\u0000fq\u0000~\u0000\u0012q\u0000~\u0000Dq\u0000~\u0000Qq\u0000~\u0000\u0014q\u0000~\u0000Fq\u0000~\u0000Sq\u0000~\u0000\bq\u0000~\u0000"
  197. +"\u0017q\u0000~\u0000Gq\u0000~\u0000Tq\u0000~\u0000\u0005q\u0000~\u0000\tq\u0000~\u0000\\q\u0000~\u0000\'q\u0000~\u0000Kq\u0000~\u0000Xq\u0000~\u0000qx"));
  198. }
  199. return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
  200. }
  201. public boolean equals(java.lang.Object obj) {
  202. if (this == obj) {
  203. return true;
  204. }
  205. if ((null == obj)||(!(obj instanceof magoffin.matt.ieat.domain.RecipeIngredient))) {
  206. return false;
  207. }
  208. magoffin.matt.ieat.domain.impl.RecipeIngredientImpl target = ((magoffin.matt.ieat.domain.impl.RecipeIngredientImpl) obj);
  209. {
  210. boolean value = this.isOptional();
  211. boolean targetValue = target.isOptional();
  212. if (value!= targetValue) {
  213. return false;
  214. }
  215. }
  216. {
  217. magoffin.matt.ieat.domain.Ingredient value = this.getIngredient();
  218. magoffin.matt.ieat.domain.Ingredient targetValue = target.getIngredient();
  219. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  220. return false;
  221. }
  222. }
  223. {
  224. magoffin.matt.ieat.domain.Recipe value = this.getRecipe();
  225. magoffin.matt.ieat.domain.Recipe targetValue = target.getRecipe();
  226. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  227. return false;
  228. }
  229. }
  230. {
  231. double value = this.getQuantity();
  232. double targetValue = target.getQuantity();
  233. if (value!= targetValue) {
  234. return false;
  235. }
  236. }
  237. {
  238. java.lang.String value = this.getQualifier();
  239. java.lang.String targetValue = target.getQualifier();
  240. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  241. return false;
  242. }
  243. }
  244. {
  245. magoffin.matt.ieat.domain.Unit value = this.getUnit();
  246. magoffin.matt.ieat.domain.Unit targetValue = target.getUnit();
  247. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  248. return false;
  249. }
  250. }
  251. return true;
  252. }
  253. public int hashCode() {
  254. int hash = 7;
  255. {
  256. boolean value = this.isOptional();
  257. hash = ((31 *hash)+(value? 1 : 0));
  258. }
  259. {
  260. magoffin.matt.ieat.domain.Ingredient value = this.getIngredient();
  261. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  262. }
  263. {
  264. magoffin.matt.ieat.domain.Recipe value = this.getRecipe();
  265. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  266. }
  267. {
  268. double value = this.getQuantity();
  269. hash = ((31 *hash)+((int)(java.lang.Double.doubleToLongBits(value)^(java.lang.Double.doubleToLongBits(value)>>> 32))));
  270. }
  271. {
  272. java.lang.String value = this.getQualifier();
  273. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  274. }
  275. {
  276. magoffin.matt.ieat.domain.Unit value = this.getUnit();
  277. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  278. }
  279. return hash;
  280. }
  281. public java.lang.Long getHjid() {
  282. return _Hjid;
  283. }
  284. public void setHjid(java.lang.Long value) {
  285. _Hjid = value;
  286. has_Hjid = true;
  287. }
  288. public class Unmarshaller
  289. extends magoffin.matt.ieat.domain.impl.runtime.AbstractUnmarshallingEventHandlerImpl
  290. {
  291. public Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  292. super(context, "-------------------");
  293. }
  294. protected Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context, int startState) {
  295. this(context);
  296. state = startState;
  297. }
  298. public java.lang.Object owner() {
  299. return magoffin.matt.ieat.domain.impl.RecipeIngredientImpl.this;
  300. }
  301. public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
  302. throws org.xml.sax.SAXException
  303. {
  304. int attIdx;
  305. outer:
  306. while (true) {
  307. switch (state) {
  308. case 18 :
  309. revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
  310. return ;
  311. case 3 :
  312. attIdx = context.getAttribute("", "qualifier");
  313. if (attIdx >= 0) {
  314. final java.lang.String v = context.eatAttribute(attIdx);
  315. state = 6;
  316. eatText1(v);
  317. continue outer;
  318. }
  319. state = 6;
  320. continue outer;
  321. case 9 :
  322. if (("unit" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  323. context.pushAttributes(__atts, true);
  324. state = 10;
  325. return ;
  326. }
  327. state = 12;
  328. continue outer;
  329. case 12 :
  330. if (("ingredient" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  331. context.pushAttributes(__atts, false);
  332. state = 13;
  333. return ;
  334. }
  335. state = 15;
  336. continue outer;
  337. case 6 :
  338. attIdx = context.getAttribute("", "quantity");
  339. if (attIdx >= 0) {
  340. final java.lang.String v = context.eatAttribute(attIdx);
  341. state = 9;
  342. eatText2(v);
  343. continue outer;
  344. }
  345. state = 9;
  346. continue outer;
  347. case 15 :
  348. if (("recipe" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  349. context.pushAttributes(__atts, false);
  350. state = 16;
  351. return ;
  352. }
  353. state = 18;
  354. continue outer;
  355. case 10 :
  356. attIdx = context.getAttribute("", "abbreviation");
  357. if (attIdx >= 0) {
  358. context.consumeAttribute(attIdx);
  359. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  360. return ;
  361. }
  362. attIdx = context.getAttribute("", "mass");
  363. if (attIdx >= 0) {
  364. context.consumeAttribute(attIdx);
  365. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  366. return ;
  367. }
  368. attIdx = context.getAttribute("", "systemId");
  369. if (attIdx >= 0) {
  370. context.consumeAttribute(attIdx);
  371. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  372. return ;
  373. }
  374. attIdx = context.getAttribute("", "toImperial");
  375. if (attIdx >= 0) {
  376. context.consumeAttribute(attIdx);
  377. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  378. return ;
  379. }
  380. attIdx = context.getAttribute("", "toMetric");
  381. if (attIdx >= 0) {
  382. context.consumeAttribute(attIdx);
  383. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  384. return ;
  385. }
  386. attIdx = context.getAttribute("", "toUS");
  387. if (attIdx >= 0) {
  388. context.consumeAttribute(attIdx);
  389. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  390. return ;
  391. }
  392. attIdx = context.getAttribute("", "unitId");
  393. if (attIdx >= 0) {
  394. context.consumeAttribute(attIdx);
  395. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  396. return ;
  397. }
  398. break;
  399. case 13 :
  400. attIdx = context.getAttribute("", "ingredientId");
  401. if (attIdx >= 0) {
  402. context.consumeAttribute(attIdx);
  403. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  404. return ;
  405. }
  406. if (("name" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  407. _Ingredient = ((magoffin.matt.ieat.domain.impl.IngredientImpl) spawnChildFromEnterElement((magoffin.matt.ieat.domain.impl.IngredientImpl.class), 14, ___uri, ___local, ___qname, __atts));
  408. return ;
  409. }
  410. break;
  411. case 16 :
  412. attIdx = context.getAttribute("", "createdDate");
  413. if (attIdx >= 0) {
  414. context.consumeAttribute(attIdx);
  415. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  416. return ;
  417. }
  418. attIdx = context.getAttribute("", "modifiedDate");
  419. if (attIdx >= 0) {
  420. context.consumeAttribute(attIdx);
  421. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  422. return ;
  423. }
  424. attIdx = context.getAttribute("", "recipeId");
  425. if (attIdx >= 0) {
  426. context.consumeAttribute(attIdx);
  427. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  428. return ;
  429. }
  430. attIdx = context.getAttribute("", "servingSize");
  431. if (attIdx >= 0) {
  432. context.consumeAttribute(attIdx);
  433. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  434. return ;
  435. }
  436. if (("name" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  437. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterElement((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 17, ___uri, ___local, ___qname, __atts));
  438. return ;
  439. }
  440. break;
  441. case 0 :
  442. attIdx = context.getAttribute("", "optional");
  443. if (attIdx >= 0) {
  444. final java.lang.String v = context.eatAttribute(attIdx);
  445. state = 3;
  446. eatText3(v);
  447. continue outer;
  448. }
  449. state = 3;
  450. continue outer;
  451. }
  452. super.enterElement(___uri, ___local, ___qname, __atts);
  453. break;
  454. }
  455. }
  456. private void eatText1(final java.lang.String value)
  457. throws org.xml.sax.SAXException
  458. {
  459. try {
  460. _Qualifier = value;
  461. } catch (java.lang.Exception e) {
  462. handleParseConversionException(e);
  463. }
  464. }
  465. private void eatText2(final java.lang.String value)
  466. throws org.xml.sax.SAXException
  467. {
  468. try {
  469. _Quantity = javax.xml.bind.DatatypeConverter.parseDouble(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
  470. has_Quantity = true;
  471. } catch (java.lang.Exception e) {
  472. handleParseConversionException(e);
  473. }
  474. }
  475. private void eatText3(final java.lang.String value)
  476. throws org.xml.sax.SAXException
  477. {
  478. try {
  479. _Optional = javax.xml.bind.DatatypeConverter.parseBoolean(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
  480. has_Optional = true;
  481. } catch (java.lang.Exception e) {
  482. handleParseConversionException(e);
  483. }
  484. }
  485. public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  486. throws org.xml.sax.SAXException
  487. {
  488. int attIdx;
  489. outer:
  490. while (true) {
  491. switch (state) {
  492. case 18 :
  493. revertToParentFromLeaveElement(___uri, ___local, ___qname);
  494. return ;
  495. case 3 :
  496. attIdx = context.getAttribute("", "qualifier");
  497. if (attIdx >= 0) {
  498. final java.lang.String v = context.eatAttribute(attIdx);
  499. state = 6;
  500. eatText1(v);
  501. continue outer;
  502. }
  503. state = 6;
  504. continue outer;
  505. case 14 :
  506. if (("ingredient" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  507. context.popAttributes();
  508. state = 15;
  509. return ;
  510. }
  511. break;
  512. case 9 :
  513. state = 12;
  514. continue outer;
  515. case 17 :
  516. if (("recipe" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  517. context.popAttributes();
  518. state = 18;
  519. return ;
  520. }
  521. break;
  522. case 12 :
  523. state = 15;
  524. continue outer;
  525. case 6 :
  526. attIdx = context.getAttribute("", "quantity");
  527. if (attIdx >= 0) {
  528. final java.lang.String v = context.eatAttribute(attIdx);
  529. state = 9;
  530. eatText2(v);
  531. continue outer;
  532. }
  533. state = 9;
  534. continue outer;
  535. case 11 :
  536. if (("unit" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  537. context.popAttributes();
  538. state = 12;
  539. return ;
  540. }
  541. break;
  542. case 15 :
  543. state = 18;
  544. continue outer;
  545. case 10 :
  546. attIdx = context.getAttribute("", "abbreviation");
  547. if (attIdx >= 0) {
  548. context.consumeAttribute(attIdx);
  549. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  550. return ;
  551. }
  552. attIdx = context.getAttribute("", "mass");
  553. if (attIdx >= 0) {
  554. context.consumeAttribute(attIdx);
  555. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  556. return ;
  557. }
  558. attIdx = context.getAttribute("", "systemId");
  559. if (attIdx >= 0) {
  560. context.consumeAttribute(attIdx);
  561. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  562. return ;
  563. }
  564. attIdx = context.getAttribute("", "toImperial");
  565. if (attIdx >= 0) {
  566. context.consumeAttribute(attIdx);
  567. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  568. return ;
  569. }
  570. attIdx = context.getAttribute("", "toMetric");
  571. if (attIdx >= 0) {
  572. context.consumeAttribute(attIdx);
  573. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  574. return ;
  575. }
  576. attIdx = context.getAttribute("", "toUS");
  577. if (attIdx >= 0) {
  578. context.consumeAttribute(attIdx);
  579. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  580. return ;
  581. }
  582. attIdx = context.getAttribute("", "unitId");
  583. if (attIdx >= 0) {
  584. context.consumeAttribute(attIdx);
  585. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  586. return ;
  587. }
  588. break;
  589. case 13 :
  590. attIdx = context.getAttribute("", "ingredientId");
  591. if (attIdx >= 0) {
  592. context.consumeAttribute(attIdx);
  593. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  594. return ;
  595. }
  596. break;
  597. case 16 :
  598. attIdx = context.getAttribute("", "createdDate");
  599. if (attIdx >= 0) {
  600. context.consumeAttribute(attIdx);
  601. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  602. return ;
  603. }
  604. attIdx = context.getAttribute("", "modifiedDate");
  605. if (attIdx >= 0) {
  606. context.consumeAttribute(attIdx);
  607. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  608. return ;
  609. }
  610. attIdx = context.getAttribute("", "recipeId");
  611. if (attIdx >= 0) {
  612. context.consumeAttribute(attIdx);
  613. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  614. return ;
  615. }
  616. attIdx = context.getAttribute("", "servingSize");
  617. if (attIdx >= 0) {
  618. context.consumeAttribute(attIdx);
  619. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  620. return ;
  621. }
  622. break;
  623. case 0 :
  624. attIdx = context.getAttribute("", "optional");
  625. if (attIdx >= 0) {
  626. final java.lang.String v = context.eatAttribute(attIdx);
  627. state = 3;
  628. eatText3(v);
  629. continue outer;
  630. }
  631. state = 3;
  632. continue outer;
  633. }
  634. super.leaveElement(___uri, ___local, ___qname);
  635. break;
  636. }
  637. }
  638. public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  639. throws org.xml.sax.SAXException
  640. {
  641. int attIdx;
  642. outer:
  643. while (true) {
  644. switch (state) {
  645. case 18 :
  646. revertToParentFromEnterAttribute(___uri, ___local, ___qname);
  647. return ;
  648. case 3 :
  649. if (("qualifier" == ___local)&&("" == ___uri)) {
  650. state = 4;
  651. return ;
  652. }
  653. state = 6;
  654. continue outer;
  655. case 9 :
  656. state = 12;
  657. continue outer;
  658. case 12 :
  659. state = 15;
  660. continue outer;
  661. case 6 :
  662. if (("quantity" == ___local)&&("" == ___uri)) {
  663. state = 7;
  664. return ;
  665. }
  666. state = 9;
  667. continue outer;
  668. case 15 :
  669. state = 18;
  670. continue outer;
  671. case 10 :
  672. if (("abbreviation" == ___local)&&("" == ___uri)) {
  673. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  674. return ;
  675. }
  676. if (("mass" == ___local)&&("" == ___uri)) {
  677. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  678. return ;
  679. }
  680. if (("systemId" == ___local)&&("" == ___uri)) {
  681. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  682. return ;
  683. }
  684. if (("toImperial" == ___local)&&("" == ___uri)) {
  685. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  686. return ;
  687. }
  688. if (("toMetric" == ___local)&&("" == ___uri)) {
  689. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  690. return ;
  691. }
  692. if (("toUS" == ___local)&&("" == ___uri)) {
  693. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  694. return ;
  695. }
  696. if (("unitId" == ___local)&&("" == ___uri)) {
  697. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, ___uri, ___local, ___qname));
  698. return ;
  699. }
  700. break;
  701. case 13 :
  702. if (("ingredientId" == ___local)&&("" == ___uri)) {
  703. _Ingredient = ((magoffin.matt.ieat.domain.impl.IngredientImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.IngredientImpl.class), 14, ___uri, ___local, ___qname));
  704. return ;
  705. }
  706. break;
  707. case 16 :
  708. if (("createdDate" == ___local)&&("" == ___uri)) {
  709. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 17, ___uri, ___local, ___qname));
  710. return ;
  711. }
  712. if (("modifiedDate" == ___local)&&("" == ___uri)) {
  713. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 17, ___uri, ___local, ___qname));
  714. return ;
  715. }
  716. if (("recipeId" == ___local)&&("" == ___uri)) {
  717. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 17, ___uri, ___local, ___qname));
  718. return ;
  719. }
  720. if (("servingSize" == ___local)&&("" == ___uri)) {
  721. _Recipe = ((magoffin.matt.ieat.domain.impl.RecipeImpl) spawnChildFromEnterAttribute((magoffin.matt.ieat.domain.impl.RecipeImpl.class), 17, ___uri, ___local, ___qname));
  722. return ;
  723. }
  724. break;
  725. case 0 :
  726. if (("optional" == ___local)&&("" == ___uri)) {
  727. state = 1;
  728. return ;
  729. }
  730. state = 3;
  731. continue outer;
  732. }
  733. super.enterAttribute(___uri, ___local, ___qname);
  734. break;
  735. }
  736. }
  737. public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  738. throws org.xml.sax.SAXException
  739. {
  740. int attIdx;
  741. outer:
  742. while (true) {
  743. switch (state) {
  744. case 18 :
  745. revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
  746. return ;
  747. case 5 :
  748. if (("qualifier" == ___local)&&("" == ___uri)) {
  749. state = 6;
  750. return ;
  751. }
  752. break;
  753. case 2 :
  754. if (("optional" == ___local)&&("" == ___uri)) {
  755. state = 3;
  756. return ;
  757. }
  758. break;
  759. case 3 :
  760. attIdx = context.getAttribute("", "qualifier");
  761. if (attIdx >= 0) {
  762. final java.lang.String v = context.eatAttribute(attIdx);
  763. state = 6;
  764. eatText1(v);
  765. continue outer;
  766. }
  767. state = 6;
  768. continue outer;
  769. case 9 :
  770. state = 12;
  771. continue outer;
  772. case 12 :
  773. state = 15;
  774. continue outer;
  775. case 6 :
  776. attIdx = context.getAttribute("", "quantity");
  777. if (attIdx >= 0) {
  778. final java.lang.String v = context.eatAttribute(attIdx);
  779. state = 9;
  780. eatText2(v);
  781. continue outer;
  782. }
  783. state = 9;
  784. continue outer;
  785. case 15 :
  786. state = 18;
  787. continue outer;
  788. case 10 :
  789. attIdx = context.getAttribute("", "abbreviation");
  790. if (attIdx >= 0) {
  791. context.consumeAttribute(attIdx);
  792. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  793. return ;
  794. }
  795. attIdx = context.getAttribute("", "mass");
  796. if (attIdx >= 0) {
  797. context.consumeAttribute(attIdx);
  798. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  799. return ;
  800. }
  801. attIdx = context.getAttribute("", "systemId");
  802. if (attIdx >= 0) {
  803. context.consumeAttribute(attIdx);
  804. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  805. return ;
  806. }
  807. attIdx = context.getAttribute("", "toImperial");
  808. if (attIdx >= 0) {
  809. context.consumeAttribute(attIdx);
  810. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  811. return ;
  812. }
  813. attIdx = context.getAttribute("", "toMetric");
  814. if (attIdx >= 0) {
  815. context.consumeAttribute(attIdx);
  816. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  817. return ;
  818. }
  819. attIdx = context.getAttribute("", "toUS");
  820. if (attIdx >= 0) {
  821. context.consumeAttribute(attIdx);
  822. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  823. return ;
  824. }
  825. attIdx = context.getAttribute("", "unitId");
  826. if (attIdx >= 0) {
  827. context.consumeAttribute(attIdx);
  828. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  829. return ;
  830. }
  831. break;
  832. case 13 :
  833. attIdx = context.getAttribute("", "ingredientId");
  834. if (attIdx >= 0) {
  835. context.consumeAttribute(attIdx);
  836. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  837. return ;
  838. }
  839. break;
  840. case 16 :
  841. attIdx = context.getAttribute("", "createdDate");
  842. if (attIdx >= 0) {
  843. context.consumeAttribute(attIdx);
  844. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  845. return ;
  846. }
  847. attIdx = context.getAttribute("", "modifiedDate");
  848. if (attIdx >= 0) {
  849. context.consumeAttribute(attIdx);
  850. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  851. return ;
  852. }
  853. attIdx = context.getAttribute("", "recipeId");
  854. if (attIdx >= 0) {
  855. context.consumeAttribute(attIdx);
  856. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  857. return ;
  858. }
  859. attIdx = context.getAttribute("", "servingSize");
  860. if (attIdx >= 0) {
  861. context.consumeAttribute(attIdx);
  862. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  863. return ;
  864. }
  865. break;
  866. case 0 :
  867. attIdx = context.getAttribute("", "optional");
  868. if (attIdx >= 0) {
  869. final java.lang.String v = context.eatAttribute(attIdx);
  870. state = 3;
  871. eatText3(v);
  872. continue outer;
  873. }
  874. state = 3;
  875. continue outer;
  876. case 8 :
  877. if (("quantity" == ___local)&&("" == ___uri)) {
  878. state = 9;
  879. return ;
  880. }
  881. break;
  882. }
  883. super.leaveAttribute(___uri, ___local, ___qname);
  884. break;
  885. }
  886. }
  887. public void handleText(final java.lang.String value)
  888. throws org.xml.sax.SAXException
  889. {
  890. int attIdx;
  891. outer:
  892. while (true) {
  893. try {
  894. switch (state) {
  895. case 18 :
  896. revertToParentFromText(value);
  897. return ;
  898. case 7 :
  899. state = 8;
  900. eatText2(value);
  901. return ;
  902. case 4 :
  903. state = 5;
  904. eatText1(value);
  905. return ;
  906. case 3 :
  907. attIdx = context.getAttribute("", "qualifier");
  908. if (attIdx >= 0) {
  909. final java.lang.String v = context.eatAttribute(attIdx);
  910. state = 6;
  911. eatText1(v);
  912. continue outer;
  913. }
  914. state = 6;
  915. continue outer;
  916. case 1 :
  917. state = 2;
  918. eatText3(value);
  919. return ;
  920. case 9 :
  921. state = 12;
  922. continue outer;
  923. case 12 :
  924. state = 15;
  925. continue outer;
  926. case 6 :
  927. attIdx = context.getAttribute("", "quantity");
  928. if (attIdx >= 0) {
  929. final java.lang.String v = context.eatAttribute(attIdx);
  930. state = 9;
  931. eatText2(v);
  932. continue outer;
  933. }
  934. state = 9;
  935. continue outer;
  936. case 15 :
  937. state = 18;
  938. continue outer;
  939. case 10 :
  940. attIdx = context.getAttribute("", "abbreviation");
  941. if (attIdx >= 0) {
  942. context.consumeAttribute(attIdx);
  943. context.getCurrentHandler().text(value);
  944. return ;
  945. }
  946. attIdx = context.getAttribute("", "mass");
  947. if (attIdx >= 0) {
  948. context.consumeAttribute(attIdx);
  949. context.getCurrentHandler().text(value);
  950. return ;
  951. }
  952. attIdx = context.getAttribute("", "systemId");
  953. if (attIdx >= 0) {
  954. context.consumeAttribute(attIdx);
  955. context.getCurrentHandler().text(value);
  956. return ;
  957. }
  958. attIdx = context.getAttribute("", "toImperial");
  959. if (attIdx >= 0) {
  960. context.consumeAttribute(attIdx);
  961. context.getCurrentHandler().text(value);
  962. return ;
  963. }
  964. attIdx = context.getAttribute("", "toMetric");
  965. if (attIdx >= 0) {
  966. context.consumeAttribute(attIdx);
  967. context.getCurrentHandler().text(value);
  968. return ;
  969. }
  970. attIdx = context.getAttribute("", "toUS");
  971. if (attIdx >= 0) {
  972. context.consumeAttribute(attIdx);
  973. context.getCurrentHandler().text(value);
  974. return ;
  975. }
  976. attIdx = context.getAttribute("", "unitId");
  977. if (attIdx >= 0) {
  978. context.consumeAttribute(attIdx);
  979. context.getCurrentHandler().text(value);
  980. return ;
  981. }
  982. _Unit = ((magoffin.matt.ieat.domain.impl.UnitImpl) spawnChildFromText((magoffin.matt.ieat.domain.impl.UnitImpl.class), 11, value));
  983. return ;
  984. case 13 :
  985. attIdx = context.getAttribute("", "ingredientId");
  986. if (attIdx >= 0) {
  987. context.consumeAttribute(attIdx);
  988. context.getCurrentHandler().text(value);
  989. return ;
  990. }
  991. break;
  992. case 16 :
  993. attIdx = context.getAttribute("", "createdDate");
  994. if (attIdx >= 0) {
  995. context.consumeAttribute(attIdx);
  996. context.getCurrentHandler().text(value);
  997. return ;
  998. }
  999. attIdx = context.getAttribute("", "modifiedDate");
  1000. if (attIdx >= 0) {
  1001. context.consumeAttribute(attIdx);
  1002. context.getCurrentHandler().text(value);
  1003. return ;
  1004. }
  1005. attIdx = context.getAttribute("", "recipeId");
  1006. if (attIdx >= 0) {
  1007. context.consumeAttribute(attIdx);
  1008. context.getCurrentHandler().text(value);
  1009. return ;
  1010. }
  1011. attIdx = context.getAttribute("", "servingSize");
  1012. if (attIdx >= 0) {
  1013. context.consumeAttribute(attIdx);
  1014. context.getCurrentHandler().text(value);
  1015. return ;
  1016. }
  1017. break;
  1018. case 0 :
  1019. attIdx = context.getAttribute("", "optional");
  1020. if (attIdx >= 0) {
  1021. final java.lang.String v = context.eatAttribute(attIdx);
  1022. state = 3;
  1023. eatText3(v);
  1024. continue outer;
  1025. }
  1026. state = 3;
  1027. continue outer;
  1028. }
  1029. } catch (java.lang.RuntimeException e) {
  1030. handleUnexpectedTextException(value, e);
  1031. }
  1032. break;
  1033. }
  1034. }
  1035. }
  1036. }