/com.bugclipse.fogbugz.api/com/bugclipse/fogbugz/api/Response.java

https://github.com/subhash/Bugclipse · Java · 665 lines · 238 code · 83 blank · 344 comment · 0 complexity · d35ba7f5bd99272d7a3fa0616e053da0 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 Response.
  15. *
  16. * @version $Revision$ $Date$
  17. */
  18. public class Response implements java.io.Serializable {
  19. //--------------------------/
  20. //- Class/Member Variables -/
  21. //--------------------------/
  22. /**
  23. * Field _version.
  24. */
  25. private long _version;
  26. /**
  27. * keeps track of state for field: _version
  28. */
  29. private boolean _has_version;
  30. /**
  31. * Field _minversion.
  32. */
  33. private long _minversion;
  34. /**
  35. * keeps track of state for field: _minversion
  36. */
  37. private boolean _has_minversion;
  38. /**
  39. * Field _url.
  40. */
  41. private java.lang.String _url;
  42. /**
  43. * Field _error.
  44. */
  45. private com.bugclipse.fogbugz.api.Error _error;
  46. /**
  47. * Field _filters.
  48. */
  49. private com.bugclipse.fogbugz.api.Filters _filters;
  50. /**
  51. * Field _cases.
  52. */
  53. private com.bugclipse.fogbugz.api.Cases _cases;
  54. /**
  55. * Field _events.
  56. */
  57. private com.bugclipse.fogbugz.api.Events _events;
  58. /**
  59. * Field _projects.
  60. */
  61. private com.bugclipse.fogbugz.api.Projects _projects;
  62. /**
  63. * Field _areas.
  64. */
  65. private com.bugclipse.fogbugz.api.Areas _areas;
  66. /**
  67. * Field _priorities.
  68. */
  69. private com.bugclipse.fogbugz.api.Priorities _priorities;
  70. /**
  71. * Field _categories.
  72. */
  73. private com.bugclipse.fogbugz.api.Categories _categories;
  74. /**
  75. * Field _workingSchedule.
  76. */
  77. private com.bugclipse.fogbugz.api.WorkingSchedule _workingSchedule;
  78. /**
  79. * Field _intervals.
  80. */
  81. private com.bugclipse.fogbugz.api.Intervals _intervals;
  82. /**
  83. * Field _people.
  84. */
  85. private com.bugclipse.fogbugz.api.People _people;
  86. /**
  87. * Field _topic.
  88. */
  89. private com.bugclipse.fogbugz.api.Topic _topic;
  90. /**
  91. * Field _discussion.
  92. */
  93. private com.bugclipse.fogbugz.api.Discussion _discussion;
  94. /**
  95. * Field _discussions.
  96. */
  97. private com.bugclipse.fogbugz.api.Discussions _discussions;
  98. /**
  99. * Field _checkins.
  100. */
  101. private com.bugclipse.fogbugz.api.Checkins _checkins;
  102. /**
  103. * Field _mailboxes.
  104. */
  105. private com.bugclipse.fogbugz.api.Mailboxes _mailboxes;
  106. /**
  107. * Field _settings.
  108. */
  109. private com.bugclipse.fogbugz.api.Settings _settings;
  110. //----------------/
  111. //- Constructors -/
  112. //----------------/
  113. public Response() {
  114. super();
  115. }
  116. //-----------/
  117. //- Methods -/
  118. //-----------/
  119. /**
  120. */
  121. public void deleteMinversion(
  122. ) {
  123. this._has_minversion= false;
  124. }
  125. /**
  126. */
  127. public void deleteVersion(
  128. ) {
  129. this._has_version= false;
  130. }
  131. /**
  132. * Returns the value of field 'areas'.
  133. *
  134. * @return the value of field 'Areas'.
  135. */
  136. public com.bugclipse.fogbugz.api.Areas getAreas(
  137. ) {
  138. return this._areas;
  139. }
  140. /**
  141. * Returns the value of field 'cases'.
  142. *
  143. * @return the value of field 'Cases'.
  144. */
  145. public com.bugclipse.fogbugz.api.Cases getCases(
  146. ) {
  147. return this._cases;
  148. }
  149. /**
  150. * Returns the value of field 'categories'.
  151. *
  152. * @return the value of field 'Categories'.
  153. */
  154. public com.bugclipse.fogbugz.api.Categories getCategories(
  155. ) {
  156. return this._categories;
  157. }
  158. /**
  159. * Returns the value of field 'checkins'.
  160. *
  161. * @return the value of field 'Checkins'.
  162. */
  163. public com.bugclipse.fogbugz.api.Checkins getCheckins(
  164. ) {
  165. return this._checkins;
  166. }
  167. /**
  168. * Returns the value of field 'discussion'.
  169. *
  170. * @return the value of field 'Discussion'.
  171. */
  172. public com.bugclipse.fogbugz.api.Discussion getDiscussion(
  173. ) {
  174. return this._discussion;
  175. }
  176. /**
  177. * Returns the value of field 'discussions'.
  178. *
  179. * @return the value of field 'Discussions'.
  180. */
  181. public com.bugclipse.fogbugz.api.Discussions getDiscussions(
  182. ) {
  183. return this._discussions;
  184. }
  185. /**
  186. * Returns the value of field 'error'.
  187. *
  188. * @return the value of field 'Error'.
  189. */
  190. public com.bugclipse.fogbugz.api.Error getError(
  191. ) {
  192. return this._error;
  193. }
  194. /**
  195. * Returns the value of field 'events'.
  196. *
  197. * @return the value of field 'Events'.
  198. */
  199. public com.bugclipse.fogbugz.api.Events getEvents(
  200. ) {
  201. return this._events;
  202. }
  203. /**
  204. * Returns the value of field 'filters'.
  205. *
  206. * @return the value of field 'Filters'.
  207. */
  208. public com.bugclipse.fogbugz.api.Filters getFilters(
  209. ) {
  210. return this._filters;
  211. }
  212. /**
  213. * Returns the value of field 'intervals'.
  214. *
  215. * @return the value of field 'Intervals'.
  216. */
  217. public com.bugclipse.fogbugz.api.Intervals getIntervals(
  218. ) {
  219. return this._intervals;
  220. }
  221. /**
  222. * Returns the value of field 'mailboxes'.
  223. *
  224. * @return the value of field 'Mailboxes'.
  225. */
  226. public com.bugclipse.fogbugz.api.Mailboxes getMailboxes(
  227. ) {
  228. return this._mailboxes;
  229. }
  230. /**
  231. * Returns the value of field 'minversion'.
  232. *
  233. * @return the value of field 'Minversion'.
  234. */
  235. public long getMinversion(
  236. ) {
  237. return this._minversion;
  238. }
  239. /**
  240. * Returns the value of field 'people'.
  241. *
  242. * @return the value of field 'People'.
  243. */
  244. public com.bugclipse.fogbugz.api.People getPeople(
  245. ) {
  246. return this._people;
  247. }
  248. /**
  249. * Returns the value of field 'priorities'.
  250. *
  251. * @return the value of field 'Priorities'.
  252. */
  253. public com.bugclipse.fogbugz.api.Priorities getPriorities(
  254. ) {
  255. return this._priorities;
  256. }
  257. /**
  258. * Returns the value of field 'projects'.
  259. *
  260. * @return the value of field 'Projects'.
  261. */
  262. public com.bugclipse.fogbugz.api.Projects getProjects(
  263. ) {
  264. return this._projects;
  265. }
  266. /**
  267. * Returns the value of field 'settings'.
  268. *
  269. * @return the value of field 'Settings'.
  270. */
  271. public com.bugclipse.fogbugz.api.Settings getSettings(
  272. ) {
  273. return this._settings;
  274. }
  275. /**
  276. * Returns the value of field 'topic'.
  277. *
  278. * @return the value of field 'Topic'.
  279. */
  280. public com.bugclipse.fogbugz.api.Topic getTopic(
  281. ) {
  282. return this._topic;
  283. }
  284. /**
  285. * Returns the value of field 'url'.
  286. *
  287. * @return the value of field 'Url'.
  288. */
  289. public java.lang.String getUrl(
  290. ) {
  291. return this._url;
  292. }
  293. /**
  294. * Returns the value of field 'version'.
  295. *
  296. * @return the value of field 'Version'.
  297. */
  298. public long getVersion(
  299. ) {
  300. return this._version;
  301. }
  302. /**
  303. * Returns the value of field 'workingSchedule'.
  304. *
  305. * @return the value of field 'WorkingSchedule'.
  306. */
  307. public com.bugclipse.fogbugz.api.WorkingSchedule getWorkingSchedule(
  308. ) {
  309. return this._workingSchedule;
  310. }
  311. /**
  312. * Method hasMinversion.
  313. *
  314. * @return true if at least one Minversion has been added
  315. */
  316. public boolean hasMinversion(
  317. ) {
  318. return this._has_minversion;
  319. }
  320. /**
  321. * Method hasVersion.
  322. *
  323. * @return true if at least one Version has been added
  324. */
  325. public boolean hasVersion(
  326. ) {
  327. return this._has_version;
  328. }
  329. /**
  330. * Method isValid.
  331. *
  332. * @return true if this object is valid according to the schema
  333. */
  334. public boolean isValid(
  335. ) {
  336. try {
  337. validate();
  338. } catch (org.exolab.castor.xml.ValidationException vex) {
  339. return false;
  340. }
  341. return true;
  342. }
  343. /**
  344. *
  345. *
  346. * @param out
  347. * @throws org.exolab.castor.xml.MarshalException if object is
  348. * null or if any SAXException is thrown during marshaling
  349. * @throws org.exolab.castor.xml.ValidationException if this
  350. * object is an invalid instance according to the schema
  351. */
  352. public void marshal(
  353. final java.io.Writer out)
  354. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  355. Marshaller.marshal(this, out);
  356. }
  357. /**
  358. *
  359. *
  360. * @param handler
  361. * @throws java.io.IOException if an IOException occurs during
  362. * marshaling
  363. * @throws org.exolab.castor.xml.ValidationException if this
  364. * object is an invalid instance according to the schema
  365. * @throws org.exolab.castor.xml.MarshalException if object is
  366. * null or if any SAXException is thrown during marshaling
  367. */
  368. public void marshal(
  369. final org.xml.sax.ContentHandler handler)
  370. throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  371. Marshaller.marshal(this, handler);
  372. }
  373. /**
  374. * Sets the value of field 'areas'.
  375. *
  376. * @param areas the value of field 'areas'.
  377. */
  378. public void setAreas(
  379. final com.bugclipse.fogbugz.api.Areas areas) {
  380. this._areas = areas;
  381. }
  382. /**
  383. * Sets the value of field 'cases'.
  384. *
  385. * @param cases the value of field 'cases'.
  386. */
  387. public void setCases(
  388. final com.bugclipse.fogbugz.api.Cases cases) {
  389. this._cases = cases;
  390. }
  391. /**
  392. * Sets the value of field 'categories'.
  393. *
  394. * @param categories the value of field 'categories'.
  395. */
  396. public void setCategories(
  397. final com.bugclipse.fogbugz.api.Categories categories) {
  398. this._categories = categories;
  399. }
  400. /**
  401. * Sets the value of field 'checkins'.
  402. *
  403. * @param checkins the value of field 'checkins'.
  404. */
  405. public void setCheckins(
  406. final com.bugclipse.fogbugz.api.Checkins checkins) {
  407. this._checkins = checkins;
  408. }
  409. /**
  410. * Sets the value of field 'discussion'.
  411. *
  412. * @param discussion the value of field 'discussion'.
  413. */
  414. public void setDiscussion(
  415. final com.bugclipse.fogbugz.api.Discussion discussion) {
  416. this._discussion = discussion;
  417. }
  418. /**
  419. * Sets the value of field 'discussions'.
  420. *
  421. * @param discussions the value of field 'discussions'.
  422. */
  423. public void setDiscussions(
  424. final com.bugclipse.fogbugz.api.Discussions discussions) {
  425. this._discussions = discussions;
  426. }
  427. /**
  428. * Sets the value of field 'error'.
  429. *
  430. * @param error the value of field 'error'.
  431. */
  432. public void setError(
  433. final com.bugclipse.fogbugz.api.Error error) {
  434. this._error = error;
  435. }
  436. /**
  437. * Sets the value of field 'events'.
  438. *
  439. * @param events the value of field 'events'.
  440. */
  441. public void setEvents(
  442. final com.bugclipse.fogbugz.api.Events events) {
  443. this._events = events;
  444. }
  445. /**
  446. * Sets the value of field 'filters'.
  447. *
  448. * @param filters the value of field 'filters'.
  449. */
  450. public void setFilters(
  451. final com.bugclipse.fogbugz.api.Filters filters) {
  452. this._filters = filters;
  453. }
  454. /**
  455. * Sets the value of field 'intervals'.
  456. *
  457. * @param intervals the value of field 'intervals'.
  458. */
  459. public void setIntervals(
  460. final com.bugclipse.fogbugz.api.Intervals intervals) {
  461. this._intervals = intervals;
  462. }
  463. /**
  464. * Sets the value of field 'mailboxes'.
  465. *
  466. * @param mailboxes the value of field 'mailboxes'.
  467. */
  468. public void setMailboxes(
  469. final com.bugclipse.fogbugz.api.Mailboxes mailboxes) {
  470. this._mailboxes = mailboxes;
  471. }
  472. /**
  473. * Sets the value of field 'minversion'.
  474. *
  475. * @param minversion the value of field 'minversion'.
  476. */
  477. public void setMinversion(
  478. final long minversion) {
  479. this._minversion = minversion;
  480. this._has_minversion = true;
  481. }
  482. /**
  483. * Sets the value of field 'people'.
  484. *
  485. * @param people the value of field 'people'.
  486. */
  487. public void setPeople(
  488. final com.bugclipse.fogbugz.api.People people) {
  489. this._people = people;
  490. }
  491. /**
  492. * Sets the value of field 'priorities'.
  493. *
  494. * @param priorities the value of field 'priorities'.
  495. */
  496. public void setPriorities(
  497. final com.bugclipse.fogbugz.api.Priorities priorities) {
  498. this._priorities = priorities;
  499. }
  500. /**
  501. * Sets the value of field 'projects'.
  502. *
  503. * @param projects the value of field 'projects'.
  504. */
  505. public void setProjects(
  506. final com.bugclipse.fogbugz.api.Projects projects) {
  507. this._projects = projects;
  508. }
  509. /**
  510. * Sets the value of field 'settings'.
  511. *
  512. * @param settings the value of field 'settings'.
  513. */
  514. public void setSettings(
  515. final com.bugclipse.fogbugz.api.Settings settings) {
  516. this._settings = settings;
  517. }
  518. /**
  519. * Sets the value of field 'topic'.
  520. *
  521. * @param topic the value of field 'topic'.
  522. */
  523. public void setTopic(
  524. final com.bugclipse.fogbugz.api.Topic topic) {
  525. this._topic = topic;
  526. }
  527. /**
  528. * Sets the value of field 'url'.
  529. *
  530. * @param url the value of field 'url'.
  531. */
  532. public void setUrl(
  533. final java.lang.String url) {
  534. this._url = url;
  535. }
  536. /**
  537. * Sets the value of field 'version'.
  538. *
  539. * @param version the value of field 'version'.
  540. */
  541. public void setVersion(
  542. final long version) {
  543. this._version = version;
  544. this._has_version = true;
  545. }
  546. /**
  547. * Sets the value of field 'workingSchedule'.
  548. *
  549. * @param workingSchedule the value of field 'workingSchedule'.
  550. */
  551. public void setWorkingSchedule(
  552. final com.bugclipse.fogbugz.api.WorkingSchedule workingSchedule) {
  553. this._workingSchedule = workingSchedule;
  554. }
  555. /**
  556. * Method unmarshal.
  557. *
  558. * @param reader
  559. * @throws org.exolab.castor.xml.MarshalException if object is
  560. * null or if any SAXException is thrown during marshaling
  561. * @throws org.exolab.castor.xml.ValidationException if this
  562. * object is an invalid instance according to the schema
  563. * @return the unmarshaled com.bugclipse.fogbugz.api.Response
  564. */
  565. public static com.bugclipse.fogbugz.api.Response unmarshal(
  566. final java.io.Reader reader)
  567. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  568. return (com.bugclipse.fogbugz.api.Response) Unmarshaller.unmarshal(com.bugclipse.fogbugz.api.Response.class, reader);
  569. }
  570. /**
  571. *
  572. *
  573. * @throws org.exolab.castor.xml.ValidationException if this
  574. * object is an invalid instance according to the schema
  575. */
  576. public void validate(
  577. )
  578. throws org.exolab.castor.xml.ValidationException {
  579. org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
  580. validator.validate(this);
  581. }
  582. }