/com.bugclipse.fogbugz.api/com/bugclipse/fogbugz/api/Event.java

https://github.com/subhash/Bugclipse · Java · 876 lines · 323 code · 109 blank · 444 comment · 0 complexity · d7e9ac84d16e21488f3257236fc92a0d MD5 · raw file

  1. /*
  2. * This class was automatically generated with
  3. * <a href="http://www.castor.org">Castor 1.1.2.1</a>, using an XML
  4. * Schema.
  5. * $Id$
  6. */
  7. package com.bugclipse.fogbugz.api;
  8. //---------------------------------/
  9. //- Imported classes and packages -/
  10. //---------------------------------/
  11. import org.exolab.castor.xml.Marshaller;
  12. import org.exolab.castor.xml.Unmarshaller;
  13. /**
  14. * Class Event.
  15. *
  16. * @version $Revision$ $Date$
  17. */
  18. public class Event implements java.io.Serializable {
  19. //--------------------------/
  20. //- Class/Member Variables -/
  21. //--------------------------/
  22. /**
  23. * Field _ixBugEvent.
  24. */
  25. private long _ixBugEvent;
  26. /**
  27. * keeps track of state for field: _ixBugEvent
  28. */
  29. private boolean _has_ixBugEvent;
  30. /**
  31. * Field _ixBug.
  32. */
  33. private long _ixBug;
  34. /**
  35. * keeps track of state for field: _ixBug
  36. */
  37. private boolean _has_ixBug;
  38. /**
  39. * Field _ixBugEventElement.
  40. */
  41. private long _ixBugEventElement;
  42. /**
  43. * keeps track of state for field: _ixBugEventElement
  44. */
  45. private boolean _has_ixBugEventElement;
  46. /**
  47. * Field _evt.
  48. */
  49. private long _evt;
  50. /**
  51. * keeps track of state for field: _evt
  52. */
  53. private boolean _has_evt;
  54. /**
  55. * Field _sVerb.
  56. */
  57. private java.lang.String _sVerb;
  58. /**
  59. * Field _ixPerson.
  60. */
  61. private long _ixPerson;
  62. /**
  63. * keeps track of state for field: _ixPerson
  64. */
  65. private boolean _has_ixPerson;
  66. /**
  67. * Field _sPerson.
  68. */
  69. private java.lang.String _sPerson;
  70. /**
  71. * Field _dt.
  72. */
  73. private org.exolab.castor.types.Date _dt;
  74. /**
  75. * Field _s.
  76. */
  77. private java.lang.String _s;
  78. /**
  79. * Field _bEmail.
  80. */
  81. private boolean _bEmail;
  82. /**
  83. * keeps track of state for field: _bEmail
  84. */
  85. private boolean _has_bEmail;
  86. /**
  87. * Field _bExternal.
  88. */
  89. private boolean _bExternal;
  90. /**
  91. * keeps track of state for field: _bExternal
  92. */
  93. private boolean _has_bExternal;
  94. /**
  95. * Field _sChanges.
  96. */
  97. private java.lang.String _sChanges;
  98. /**
  99. * Field _evtDescription.
  100. */
  101. private java.lang.String _evtDescription;
  102. /**
  103. * Field _rgAttachments.
  104. */
  105. private com.bugclipse.fogbugz.api.RgAttachments _rgAttachments;
  106. /**
  107. * Field _sFrom.
  108. */
  109. private java.lang.String _sFrom;
  110. /**
  111. * Field _sTo.
  112. */
  113. private java.lang.String _sTo;
  114. /**
  115. * Field _sCC.
  116. */
  117. private java.lang.Object _sCC;
  118. /**
  119. * Field _sBCC.
  120. */
  121. private java.lang.Object _sBCC;
  122. /**
  123. * Field _sReplyTo.
  124. */
  125. private java.lang.Object _sReplyTo;
  126. /**
  127. * Field _sSubject.
  128. */
  129. private java.lang.Object _sSubject;
  130. /**
  131. * Field _sDate.
  132. */
  133. private java.lang.String _sDate;
  134. /**
  135. * Field _sBodyText.
  136. */
  137. private java.lang.Object _sBodyText;
  138. /**
  139. * Field _sBodyHTML.
  140. */
  141. private java.lang.Object _sBodyHTML;
  142. //----------------/
  143. //- Constructors -/
  144. //----------------/
  145. public Event() {
  146. super();
  147. }
  148. //-----------/
  149. //- Methods -/
  150. //-----------/
  151. /**
  152. */
  153. public void deleteBEmail(
  154. ) {
  155. this._has_bEmail= false;
  156. }
  157. /**
  158. */
  159. public void deleteBExternal(
  160. ) {
  161. this._has_bExternal= false;
  162. }
  163. /**
  164. */
  165. public void deleteEvt(
  166. ) {
  167. this._has_evt= false;
  168. }
  169. /**
  170. */
  171. public void deleteIxBug(
  172. ) {
  173. this._has_ixBug= false;
  174. }
  175. /**
  176. */
  177. public void deleteIxBugEvent(
  178. ) {
  179. this._has_ixBugEvent= false;
  180. }
  181. /**
  182. */
  183. public void deleteIxBugEventElement(
  184. ) {
  185. this._has_ixBugEventElement= false;
  186. }
  187. /**
  188. */
  189. public void deleteIxPerson(
  190. ) {
  191. this._has_ixPerson= false;
  192. }
  193. /**
  194. * Returns the value of field 'bEmail'.
  195. *
  196. * @return the value of field 'BEmail'.
  197. */
  198. public boolean getBEmail(
  199. ) {
  200. return this._bEmail;
  201. }
  202. /**
  203. * Returns the value of field 'bExternal'.
  204. *
  205. * @return the value of field 'BExternal'.
  206. */
  207. public boolean getBExternal(
  208. ) {
  209. return this._bExternal;
  210. }
  211. /**
  212. * Returns the value of field 'dt'.
  213. *
  214. * @return the value of field 'Dt'.
  215. */
  216. public org.exolab.castor.types.Date getDt(
  217. ) {
  218. return this._dt;
  219. }
  220. /**
  221. * Returns the value of field 'evt'.
  222. *
  223. * @return the value of field 'Evt'.
  224. */
  225. public long getEvt(
  226. ) {
  227. return this._evt;
  228. }
  229. /**
  230. * Returns the value of field 'evtDescription'.
  231. *
  232. * @return the value of field 'EvtDescription'.
  233. */
  234. public java.lang.String getEvtDescription(
  235. ) {
  236. return this._evtDescription;
  237. }
  238. /**
  239. * Returns the value of field 'ixBug'.
  240. *
  241. * @return the value of field 'IxBug'.
  242. */
  243. public long getIxBug(
  244. ) {
  245. return this._ixBug;
  246. }
  247. /**
  248. * Returns the value of field 'ixBugEvent'.
  249. *
  250. * @return the value of field 'IxBugEvent'.
  251. */
  252. public long getIxBugEvent(
  253. ) {
  254. return this._ixBugEvent;
  255. }
  256. /**
  257. * Returns the value of field 'ixBugEventElement'.
  258. *
  259. * @return the value of field 'IxBugEventElement'.
  260. */
  261. public long getIxBugEventElement(
  262. ) {
  263. return this._ixBugEventElement;
  264. }
  265. /**
  266. * Returns the value of field 'ixPerson'.
  267. *
  268. * @return the value of field 'IxPerson'.
  269. */
  270. public long getIxPerson(
  271. ) {
  272. return this._ixPerson;
  273. }
  274. /**
  275. * Returns the value of field 'rgAttachments'.
  276. *
  277. * @return the value of field 'RgAttachments'.
  278. */
  279. public com.bugclipse.fogbugz.api.RgAttachments getRgAttachments(
  280. ) {
  281. return this._rgAttachments;
  282. }
  283. /**
  284. * Returns the value of field 's'.
  285. *
  286. * @return the value of field 'S'.
  287. */
  288. public java.lang.String getS(
  289. ) {
  290. return this._s;
  291. }
  292. /**
  293. * Returns the value of field 'sBCC'.
  294. *
  295. * @return the value of field 'SBCC'.
  296. */
  297. public java.lang.Object getSBCC(
  298. ) {
  299. return this._sBCC;
  300. }
  301. /**
  302. * Returns the value of field 'sBodyHTML'.
  303. *
  304. * @return the value of field 'SBodyHTML'.
  305. */
  306. public java.lang.Object getSBodyHTML(
  307. ) {
  308. return this._sBodyHTML;
  309. }
  310. /**
  311. * Returns the value of field 'sBodyText'.
  312. *
  313. * @return the value of field 'SBodyText'.
  314. */
  315. public java.lang.Object getSBodyText(
  316. ) {
  317. return this._sBodyText;
  318. }
  319. /**
  320. * Returns the value of field 'sCC'.
  321. *
  322. * @return the value of field 'SCC'.
  323. */
  324. public java.lang.Object getSCC(
  325. ) {
  326. return this._sCC;
  327. }
  328. /**
  329. * Returns the value of field 'sChanges'.
  330. *
  331. * @return the value of field 'SChanges'.
  332. */
  333. public java.lang.String getSChanges(
  334. ) {
  335. return this._sChanges;
  336. }
  337. /**
  338. * Returns the value of field 'sDate'.
  339. *
  340. * @return the value of field 'SDate'.
  341. */
  342. public java.lang.String getSDate(
  343. ) {
  344. return this._sDate;
  345. }
  346. /**
  347. * Returns the value of field 'sFrom'.
  348. *
  349. * @return the value of field 'SFrom'.
  350. */
  351. public java.lang.String getSFrom(
  352. ) {
  353. return this._sFrom;
  354. }
  355. /**
  356. * Returns the value of field 'sPerson'.
  357. *
  358. * @return the value of field 'SPerson'.
  359. */
  360. public java.lang.String getSPerson(
  361. ) {
  362. return this._sPerson;
  363. }
  364. /**
  365. * Returns the value of field 'sReplyTo'.
  366. *
  367. * @return the value of field 'SReplyTo'.
  368. */
  369. public java.lang.Object getSReplyTo(
  370. ) {
  371. return this._sReplyTo;
  372. }
  373. /**
  374. * Returns the value of field 'sSubject'.
  375. *
  376. * @return the value of field 'SSubject'.
  377. */
  378. public java.lang.Object getSSubject(
  379. ) {
  380. return this._sSubject;
  381. }
  382. /**
  383. * Returns the value of field 'sTo'.
  384. *
  385. * @return the value of field 'STo'.
  386. */
  387. public java.lang.String getSTo(
  388. ) {
  389. return this._sTo;
  390. }
  391. /**
  392. * Returns the value of field 'sVerb'.
  393. *
  394. * @return the value of field 'SVerb'.
  395. */
  396. public java.lang.String getSVerb(
  397. ) {
  398. return this._sVerb;
  399. }
  400. /**
  401. * Method hasBEmail.
  402. *
  403. * @return true if at least one BEmail has been added
  404. */
  405. public boolean hasBEmail(
  406. ) {
  407. return this._has_bEmail;
  408. }
  409. /**
  410. * Method hasBExternal.
  411. *
  412. * @return true if at least one BExternal has been added
  413. */
  414. public boolean hasBExternal(
  415. ) {
  416. return this._has_bExternal;
  417. }
  418. /**
  419. * Method hasEvt.
  420. *
  421. * @return true if at least one Evt has been added
  422. */
  423. public boolean hasEvt(
  424. ) {
  425. return this._has_evt;
  426. }
  427. /**
  428. * Method hasIxBug.
  429. *
  430. * @return true if at least one IxBug has been added
  431. */
  432. public boolean hasIxBug(
  433. ) {
  434. return this._has_ixBug;
  435. }
  436. /**
  437. * Method hasIxBugEvent.
  438. *
  439. * @return true if at least one IxBugEvent has been added
  440. */
  441. public boolean hasIxBugEvent(
  442. ) {
  443. return this._has_ixBugEvent;
  444. }
  445. /**
  446. * Method hasIxBugEventElement.
  447. *
  448. * @return true if at least one IxBugEventElement has been added
  449. */
  450. public boolean hasIxBugEventElement(
  451. ) {
  452. return this._has_ixBugEventElement;
  453. }
  454. /**
  455. * Method hasIxPerson.
  456. *
  457. * @return true if at least one IxPerson has been added
  458. */
  459. public boolean hasIxPerson(
  460. ) {
  461. return this._has_ixPerson;
  462. }
  463. /**
  464. * Returns the value of field 'bEmail'.
  465. *
  466. * @return the value of field 'BEmail'.
  467. */
  468. public boolean isBEmail(
  469. ) {
  470. return this._bEmail;
  471. }
  472. /**
  473. * Returns the value of field 'bExternal'.
  474. *
  475. * @return the value of field 'BExternal'.
  476. */
  477. public boolean isBExternal(
  478. ) {
  479. return this._bExternal;
  480. }
  481. /**
  482. * Method isValid.
  483. *
  484. * @return true if this object is valid according to the schema
  485. */
  486. public boolean isValid(
  487. ) {
  488. try {
  489. validate();
  490. } catch (org.exolab.castor.xml.ValidationException vex) {
  491. return false;
  492. }
  493. return true;
  494. }
  495. /**
  496. *
  497. *
  498. * @param out
  499. * @throws org.exolab.castor.xml.MarshalException if object is
  500. * null or if any SAXException is thrown during marshaling
  501. * @throws org.exolab.castor.xml.ValidationException if this
  502. * object is an invalid instance according to the schema
  503. */
  504. public void marshal(
  505. final java.io.Writer out)
  506. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  507. Marshaller.marshal(this, out);
  508. }
  509. /**
  510. *
  511. *
  512. * @param handler
  513. * @throws java.io.IOException if an IOException occurs during
  514. * marshaling
  515. * @throws org.exolab.castor.xml.ValidationException if this
  516. * object is an invalid instance according to the schema
  517. * @throws org.exolab.castor.xml.MarshalException if object is
  518. * null or if any SAXException is thrown during marshaling
  519. */
  520. public void marshal(
  521. final org.xml.sax.ContentHandler handler)
  522. throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  523. Marshaller.marshal(this, handler);
  524. }
  525. /**
  526. * Sets the value of field 'bEmail'.
  527. *
  528. * @param bEmail the value of field 'bEmail'.
  529. */
  530. public void setBEmail(
  531. final boolean bEmail) {
  532. this._bEmail = bEmail;
  533. this._has_bEmail = true;
  534. }
  535. /**
  536. * Sets the value of field 'bExternal'.
  537. *
  538. * @param bExternal the value of field 'bExternal'.
  539. */
  540. public void setBExternal(
  541. final boolean bExternal) {
  542. this._bExternal = bExternal;
  543. this._has_bExternal = true;
  544. }
  545. /**
  546. * Sets the value of field 'dt'.
  547. *
  548. * @param dt the value of field 'dt'.
  549. */
  550. public void setDt(
  551. final org.exolab.castor.types.Date dt) {
  552. this._dt = dt;
  553. }
  554. /**
  555. * Sets the value of field 'evt'.
  556. *
  557. * @param evt the value of field 'evt'.
  558. */
  559. public void setEvt(
  560. final long evt) {
  561. this._evt = evt;
  562. this._has_evt = true;
  563. }
  564. /**
  565. * Sets the value of field 'evtDescription'.
  566. *
  567. * @param evtDescription the value of field 'evtDescription'.
  568. */
  569. public void setEvtDescription(
  570. final java.lang.String evtDescription) {
  571. this._evtDescription = evtDescription;
  572. }
  573. /**
  574. * Sets the value of field 'ixBug'.
  575. *
  576. * @param ixBug the value of field 'ixBug'.
  577. */
  578. public void setIxBug(
  579. final long ixBug) {
  580. this._ixBug = ixBug;
  581. this._has_ixBug = true;
  582. }
  583. /**
  584. * Sets the value of field 'ixBugEvent'.
  585. *
  586. * @param ixBugEvent the value of field 'ixBugEvent'.
  587. */
  588. public void setIxBugEvent(
  589. final long ixBugEvent) {
  590. this._ixBugEvent = ixBugEvent;
  591. this._has_ixBugEvent = true;
  592. }
  593. /**
  594. * Sets the value of field 'ixBugEventElement'.
  595. *
  596. * @param ixBugEventElement the value of field
  597. * 'ixBugEventElement'.
  598. */
  599. public void setIxBugEventElement(
  600. final long ixBugEventElement) {
  601. this._ixBugEventElement = ixBugEventElement;
  602. this._has_ixBugEventElement = true;
  603. }
  604. /**
  605. * Sets the value of field 'ixPerson'.
  606. *
  607. * @param ixPerson the value of field 'ixPerson'.
  608. */
  609. public void setIxPerson(
  610. final long ixPerson) {
  611. this._ixPerson = ixPerson;
  612. this._has_ixPerson = true;
  613. }
  614. /**
  615. * Sets the value of field 'rgAttachments'.
  616. *
  617. * @param rgAttachments the value of field 'rgAttachments'.
  618. */
  619. public void setRgAttachments(
  620. final com.bugclipse.fogbugz.api.RgAttachments rgAttachments) {
  621. this._rgAttachments = rgAttachments;
  622. }
  623. /**
  624. * Sets the value of field 's'.
  625. *
  626. * @param s the value of field 's'.
  627. */
  628. public void setS(
  629. final java.lang.String s) {
  630. this._s = s;
  631. }
  632. /**
  633. * Sets the value of field 'sBCC'.
  634. *
  635. * @param sBCC the value of field 'sBCC'.
  636. */
  637. public void setSBCC(
  638. final java.lang.Object sBCC) {
  639. this._sBCC = sBCC;
  640. }
  641. /**
  642. * Sets the value of field 'sBodyHTML'.
  643. *
  644. * @param sBodyHTML the value of field 'sBodyHTML'.
  645. */
  646. public void setSBodyHTML(
  647. final java.lang.Object sBodyHTML) {
  648. this._sBodyHTML = sBodyHTML;
  649. }
  650. /**
  651. * Sets the value of field 'sBodyText'.
  652. *
  653. * @param sBodyText the value of field 'sBodyText'.
  654. */
  655. public void setSBodyText(
  656. final java.lang.Object sBodyText) {
  657. this._sBodyText = sBodyText;
  658. }
  659. /**
  660. * Sets the value of field 'sCC'.
  661. *
  662. * @param sCC the value of field 'sCC'.
  663. */
  664. public void setSCC(
  665. final java.lang.Object sCC) {
  666. this._sCC = sCC;
  667. }
  668. /**
  669. * Sets the value of field 'sChanges'.
  670. *
  671. * @param sChanges the value of field 'sChanges'.
  672. */
  673. public void setSChanges(
  674. final java.lang.String sChanges) {
  675. this._sChanges = sChanges;
  676. }
  677. /**
  678. * Sets the value of field 'sDate'.
  679. *
  680. * @param sDate the value of field 'sDate'.
  681. */
  682. public void setSDate(
  683. final java.lang.String sDate) {
  684. this._sDate = sDate;
  685. }
  686. /**
  687. * Sets the value of field 'sFrom'.
  688. *
  689. * @param sFrom the value of field 'sFrom'.
  690. */
  691. public void setSFrom(
  692. final java.lang.String sFrom) {
  693. this._sFrom = sFrom;
  694. }
  695. /**
  696. * Sets the value of field 'sPerson'.
  697. *
  698. * @param sPerson the value of field 'sPerson'.
  699. */
  700. public void setSPerson(
  701. final java.lang.String sPerson) {
  702. this._sPerson = sPerson;
  703. }
  704. /**
  705. * Sets the value of field 'sReplyTo'.
  706. *
  707. * @param sReplyTo the value of field 'sReplyTo'.
  708. */
  709. public void setSReplyTo(
  710. final java.lang.Object sReplyTo) {
  711. this._sReplyTo = sReplyTo;
  712. }
  713. /**
  714. * Sets the value of field 'sSubject'.
  715. *
  716. * @param sSubject the value of field 'sSubject'.
  717. */
  718. public void setSSubject(
  719. final java.lang.Object sSubject) {
  720. this._sSubject = sSubject;
  721. }
  722. /**
  723. * Sets the value of field 'sTo'.
  724. *
  725. * @param sTo the value of field 'sTo'.
  726. */
  727. public void setSTo(
  728. final java.lang.String sTo) {
  729. this._sTo = sTo;
  730. }
  731. /**
  732. * Sets the value of field 'sVerb'.
  733. *
  734. * @param sVerb the value of field 'sVerb'.
  735. */
  736. public void setSVerb(
  737. final java.lang.String sVerb) {
  738. this._sVerb = sVerb;
  739. }
  740. /**
  741. * Method unmarshal.
  742. *
  743. * @param reader
  744. * @throws org.exolab.castor.xml.MarshalException if object is
  745. * null or if any SAXException is thrown during marshaling
  746. * @throws org.exolab.castor.xml.ValidationException if this
  747. * object is an invalid instance according to the schema
  748. * @return the unmarshaled com.bugclipse.fogbugz.api.Event
  749. */
  750. public static com.bugclipse.fogbugz.api.Event unmarshal(
  751. final java.io.Reader reader)
  752. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  753. return (com.bugclipse.fogbugz.api.Event) Unmarshaller.unmarshal(com.bugclipse.fogbugz.api.Event.class, reader);
  754. }
  755. /**
  756. *
  757. *
  758. * @throws org.exolab.castor.xml.ValidationException if this
  759. * object is an invalid instance according to the schema
  760. */
  761. public void validate(
  762. )
  763. throws org.exolab.castor.xml.ValidationException {
  764. org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
  765. validator.validate(this);
  766. }
  767. }