SessionDataImpl.java 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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 SessionDataImpl
  9. extends magoffin.matt.ieat.domain.impl.UiSessionDataImpl
  10. implements magoffin.matt.ieat.domain.SessionData, java.io.Serializable, com.sun.xml.bind.RIElement, 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
  11. {
  12. private final static long serialVersionUID = 200905041L;
  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. private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
  16. return (magoffin.matt.ieat.domain.SessionData.class);
  17. }
  18. public java.lang.String ____jaxb_ri____getNamespaceURI() {
  19. return "http://msqr.us/xsd/ieat";
  20. }
  21. public java.lang.String ____jaxb_ri____getLocalName() {
  22. return "session-data";
  23. }
  24. public magoffin.matt.ieat.domain.impl.runtime.UnmarshallingEventHandler createUnmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  25. return new magoffin.matt.ieat.domain.impl.SessionDataImpl.Unmarshaller(context);
  26. }
  27. public void serializeBody(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  28. throws org.xml.sax.SAXException
  29. {
  30. context.startElement("http://msqr.us/xsd/ieat", "session-data");
  31. super.serializeURIs(context);
  32. context.endNamespaceDecls();
  33. super.serializeAttributes(context);
  34. context.endAttributes();
  35. super.serializeBody(context);
  36. context.endElement();
  37. }
  38. public void serializeAttributes(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  39. throws org.xml.sax.SAXException
  40. {
  41. }
  42. public void serializeURIs(magoffin.matt.ieat.domain.impl.runtime.XMLSerializer context)
  43. throws org.xml.sax.SAXException
  44. {
  45. }
  46. public java.lang.Class getPrimaryInterface() {
  47. return (magoffin.matt.ieat.domain.SessionData.class);
  48. }
  49. public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
  50. if (schemaFragment == null) {
  51. schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
  52. "\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
  53. +"\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
  54. +"grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
  55. +"\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
  56. +"msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
  57. +"ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
  58. +"mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
  59. +"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsq\u0000~\u0000\u0007ppsr\u0000\u001dcom.s"
  60. +"un.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsq\u0000~\u0000\u0000sr\u0000\u0011java.la"
  61. +"ng.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000p\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u000bpps"
  62. +"r\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.ms"
  63. +"v.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0003xq\u0000~\u0000\u0004q\u0000~\u0000\u000fpsr\u0000 com."
  64. +"sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameCla"
  65. +"ssq\u0000~\u0000\u0001xq\u0000~\u0000\u0004q\u0000~\u0000\u000fpsr\u00002com.sun.msv.grammar.Expression$AnyStr"
  66. +"ingExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u000e\u0001q\u0000~\u0000\u0019sr\u0000 com.sun.msv.gr"
  67. +"ammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameCla"
  68. +"ss\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$EpsilonExp"
  69. +"ression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u001aq\u0000~\u0000\u001fsr\u0000#com.sun.msv.grammar.Si"
  70. +"mpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\f"
  71. +"namespaceURIq\u0000~\u0000!xq\u0000~\u0000\u001ct\u0000\u001emagoffin.matt.ieat.domain.Usert\u0000+h"
  72. +"ttp://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u000bppsq\u0000~\u0000\u0016q\u0000~\u0000"
  73. +"\u000fpsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/rel"
  74. +"axng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/"
  75. +"util/StringPair;xq\u0000~\u0000\u0004ppsr\u0000\"com.sun.msv.datatype.xsd.QnameTy"
  76. +"pe\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000"
  77. +"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
  78. +"\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fn"
  79. +"amespaceUriq\u0000~\u0000!L\u0000\btypeNameq\u0000~\u0000!L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv"
  80. +"/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/200"
  81. +"1/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd.WhiteSpacePr"
  82. +"ocessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.Whit"
  83. +"eSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expressi"
  84. +"on$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.util."
  85. +"StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000!L\u0000\fnamespaceURIq\u0000~\u0000!xp"
  86. +"q\u0000~\u00002q\u0000~\u00001sq\u0000~\u0000 t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-i"
  87. +"nstanceq\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\u000bacting-usert\u0000\u0017http://msqr.us/xsd/ieatq\u0000"
  88. +"~\u0000\u001fsq\u0000~\u0000\u000bppsq\u0000~\u0000\u0016q\u0000~\u0000\u000fpsq\u0000~\u0000\'ppsr\u0000$com.sun.msv.datatype.xsd."
  89. +"BooleanType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000,q\u0000~\u00001t\u0000\u0007booleanq\u0000~\u00005q\u0000~\u00007sq\u0000~\u00008q"
  90. +"\u0000~\u0000Eq\u0000~\u00001sq\u0000~\u0000 t\u0000\u0005admint\u0000\u0000q\u0000~\u0000\u001fsq\u0000~\u0000\u000bppsq\u0000~\u0000\u0016q\u0000~\u0000\u000fpq\u0000~\u0000*q\u0000~\u0000"
  91. +":q\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\fsession-dataq\u0000~\u0000?sr\u0000\"com.sun.msv.grammar.Expr"
  92. +"essionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Expr"
  93. +"essionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPo"
  94. +"ol$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$"
  95. +"Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\t\u0001pq\u0000~\u0000\fq\u0000~\u0000\tq\u0000~\u0000\u0010q"
  96. +"\u0000~\u0000\u0012q\u0000~\u0000@q\u0000~\u0000\u0015q\u0000~\u0000\nq\u0000~\u0000%q\u0000~\u0000Jx"));
  97. }
  98. return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
  99. }
  100. public boolean equals(java.lang.Object obj) {
  101. if (this == obj) {
  102. return true;
  103. }
  104. if ((null == obj)||(!(obj instanceof magoffin.matt.ieat.domain.SessionData))) {
  105. return false;
  106. }
  107. magoffin.matt.ieat.domain.impl.SessionDataImpl target = ((magoffin.matt.ieat.domain.impl.SessionDataImpl) obj);
  108. {
  109. magoffin.matt.ieat.domain.User value = this.getActingUser();
  110. magoffin.matt.ieat.domain.User targetValue = target.getActingUser();
  111. if (!((value == targetValue)||((value!= null)&&value.equals(targetValue)))) {
  112. return false;
  113. }
  114. }
  115. {
  116. boolean value = this.isAdmin();
  117. boolean targetValue = target.isAdmin();
  118. if (value!= targetValue) {
  119. return false;
  120. }
  121. }
  122. return true;
  123. }
  124. public int hashCode() {
  125. int hash = 7;
  126. {
  127. magoffin.matt.ieat.domain.User value = this.getActingUser();
  128. hash = ((31 *hash)+((null == value)? 0 :value.hashCode()));
  129. }
  130. {
  131. boolean value = this.isAdmin();
  132. hash = ((31 *hash)+(value? 1 : 0));
  133. }
  134. return hash;
  135. }
  136. public class Unmarshaller
  137. extends magoffin.matt.ieat.domain.impl.runtime.AbstractUnmarshallingEventHandlerImpl
  138. {
  139. public Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context) {
  140. super(context, "----");
  141. }
  142. protected Unmarshaller(magoffin.matt.ieat.domain.impl.runtime.UnmarshallingContext context, int startState) {
  143. this(context);
  144. state = startState;
  145. }
  146. public java.lang.Object owner() {
  147. return magoffin.matt.ieat.domain.impl.SessionDataImpl.this;
  148. }
  149. public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
  150. throws org.xml.sax.SAXException
  151. {
  152. int attIdx;
  153. outer:
  154. while (true) {
  155. switch (state) {
  156. case 1 :
  157. attIdx = context.getAttribute("", "admin");
  158. if (attIdx >= 0) {
  159. context.consumeAttribute(attIdx);
  160. context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
  161. return ;
  162. }
  163. if (("acting-user" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  164. spawnHandlerFromEnterElement((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname, __atts);
  165. return ;
  166. }
  167. spawnHandlerFromEnterElement((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname, __atts);
  168. return ;
  169. case 3 :
  170. revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
  171. return ;
  172. case 0 :
  173. if (("session-data" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  174. context.pushAttributes(__atts, false);
  175. state = 1;
  176. return ;
  177. }
  178. break;
  179. }
  180. super.enterElement(___uri, ___local, ___qname, __atts);
  181. break;
  182. }
  183. }
  184. public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  185. throws org.xml.sax.SAXException
  186. {
  187. int attIdx;
  188. outer:
  189. while (true) {
  190. switch (state) {
  191. case 1 :
  192. attIdx = context.getAttribute("", "admin");
  193. if (attIdx >= 0) {
  194. context.consumeAttribute(attIdx);
  195. context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
  196. return ;
  197. }
  198. spawnHandlerFromLeaveElement((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
  199. return ;
  200. case 3 :
  201. revertToParentFromLeaveElement(___uri, ___local, ___qname);
  202. return ;
  203. case 2 :
  204. if (("session-data" == ___local)&&("http://msqr.us/xsd/ieat" == ___uri)) {
  205. context.popAttributes();
  206. state = 3;
  207. return ;
  208. }
  209. break;
  210. }
  211. super.leaveElement(___uri, ___local, ___qname);
  212. break;
  213. }
  214. }
  215. public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
  216. throws org.xml.sax.SAXException
  217. {
  218. int attIdx;
  219. outer:
  220. while (true) {
  221. switch (state) {
  222. case 1 :
  223. if (("admin" == ___local)&&("" == ___uri)) {
  224. spawnHandlerFromEnterAttribute((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
  225. return ;
  226. }
  227. spawnHandlerFromEnterAttribute((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
  228. return ;
  229. case 3 :
  230. revertToParentFromEnterAttribute(___uri, ___local, ___qname);
  231. return ;
  232. }
  233. super.enterAttribute(___uri, ___local, ___qname);
  234. break;
  235. }
  236. }
  237. public void leaveAttribute(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 1 :
  245. attIdx = context.getAttribute("", "admin");
  246. if (attIdx >= 0) {
  247. context.consumeAttribute(attIdx);
  248. context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
  249. return ;
  250. }
  251. spawnHandlerFromLeaveAttribute((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
  252. return ;
  253. case 3 :
  254. revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
  255. return ;
  256. }
  257. super.leaveAttribute(___uri, ___local, ___qname);
  258. break;
  259. }
  260. }
  261. public void handleText(final java.lang.String value)
  262. throws org.xml.sax.SAXException
  263. {
  264. int attIdx;
  265. outer:
  266. while (true) {
  267. try {
  268. switch (state) {
  269. case 1 :
  270. attIdx = context.getAttribute("", "admin");
  271. if (attIdx >= 0) {
  272. context.consumeAttribute(attIdx);
  273. context.getCurrentHandler().text(value);
  274. return ;
  275. }
  276. spawnHandlerFromText((((magoffin.matt.ieat.domain.impl.UiSessionDataImpl)magoffin.matt.ieat.domain.impl.SessionDataImpl.this).new Unmarshaller(context)), 2, value);
  277. return ;
  278. case 3 :
  279. revertToParentFromText(value);
  280. return ;
  281. }
  282. } catch (java.lang.RuntimeException e) {
  283. handleUnexpectedTextException(value, e);
  284. }
  285. break;
  286. }
  287. }
  288. }
  289. }