/com.bugclipse.fogbugz.api/com/bugclipse/fogbugz/api/Person.java

https://github.com/subhash/Bugclipse · Java · 690 lines · 258 code · 86 blank · 346 comment · 0 complexity · b30ade517f3619606ed23bd3b58c8ad2 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 Person.
  15. *
  16. * @version $Revision$ $Date$
  17. */
  18. public class Person implements java.io.Serializable {
  19. //--------------------------/
  20. //- Class/Member Variables -/
  21. //--------------------------/
  22. /**
  23. * Field _ixPerson.
  24. */
  25. private long _ixPerson;
  26. /**
  27. * keeps track of state for field: _ixPerson
  28. */
  29. private boolean _has_ixPerson;
  30. /**
  31. * Field _sFullName.
  32. */
  33. private java.lang.String _sFullName;
  34. /**
  35. * Field _sEmail.
  36. */
  37. private java.lang.String _sEmail;
  38. /**
  39. * Field _sPhone.
  40. */
  41. private java.lang.Object _sPhone;
  42. /**
  43. * Field _fAdministrator.
  44. */
  45. private boolean _fAdministrator;
  46. /**
  47. * keeps track of state for field: _fAdministrator
  48. */
  49. private boolean _has_fAdministrator;
  50. /**
  51. * Field _fCommunity.
  52. */
  53. private boolean _fCommunity;
  54. /**
  55. * keeps track of state for field: _fCommunity
  56. */
  57. private boolean _has_fCommunity;
  58. /**
  59. * Field _fVirtual.
  60. */
  61. private boolean _fVirtual;
  62. /**
  63. * keeps track of state for field: _fVirtual
  64. */
  65. private boolean _has_fVirtual;
  66. /**
  67. * Field _fDeleted.
  68. */
  69. private boolean _fDeleted;
  70. /**
  71. * keeps track of state for field: _fDeleted
  72. */
  73. private boolean _has_fDeleted;
  74. /**
  75. * Field _fNotify.
  76. */
  77. private boolean _fNotify;
  78. /**
  79. * keeps track of state for field: _fNotify
  80. */
  81. private boolean _has_fNotify;
  82. /**
  83. * Field _sHomepage.
  84. */
  85. private java.lang.Object _sHomepage;
  86. /**
  87. * Field _sLocale.
  88. */
  89. private java.lang.String _sLocale;
  90. /**
  91. * Field _sLanguage.
  92. */
  93. private java.lang.String _sLanguage;
  94. /**
  95. * Field _sTimeZoneKey.
  96. */
  97. private java.lang.String _sTimeZoneKey;
  98. /**
  99. * Field _fExpert.
  100. */
  101. private boolean _fExpert;
  102. /**
  103. * keeps track of state for field: _fExpert
  104. */
  105. private boolean _has_fExpert;
  106. //----------------/
  107. //- Constructors -/
  108. //----------------/
  109. public Person() {
  110. super();
  111. }
  112. //-----------/
  113. //- Methods -/
  114. //-----------/
  115. /**
  116. */
  117. public void deleteFAdministrator(
  118. ) {
  119. this._has_fAdministrator= false;
  120. }
  121. /**
  122. */
  123. public void deleteFCommunity(
  124. ) {
  125. this._has_fCommunity= false;
  126. }
  127. /**
  128. */
  129. public void deleteFDeleted(
  130. ) {
  131. this._has_fDeleted= false;
  132. }
  133. /**
  134. */
  135. public void deleteFExpert(
  136. ) {
  137. this._has_fExpert= false;
  138. }
  139. /**
  140. */
  141. public void deleteFNotify(
  142. ) {
  143. this._has_fNotify= false;
  144. }
  145. /**
  146. */
  147. public void deleteFVirtual(
  148. ) {
  149. this._has_fVirtual= false;
  150. }
  151. /**
  152. */
  153. public void deleteIxPerson(
  154. ) {
  155. this._has_ixPerson= false;
  156. }
  157. /**
  158. * Returns the value of field 'fAdministrator'.
  159. *
  160. * @return the value of field 'FAdministrator'.
  161. */
  162. public boolean getFAdministrator(
  163. ) {
  164. return this._fAdministrator;
  165. }
  166. /**
  167. * Returns the value of field 'fCommunity'.
  168. *
  169. * @return the value of field 'FCommunity'.
  170. */
  171. public boolean getFCommunity(
  172. ) {
  173. return this._fCommunity;
  174. }
  175. /**
  176. * Returns the value of field 'fDeleted'.
  177. *
  178. * @return the value of field 'FDeleted'.
  179. */
  180. public boolean getFDeleted(
  181. ) {
  182. return this._fDeleted;
  183. }
  184. /**
  185. * Returns the value of field 'fExpert'.
  186. *
  187. * @return the value of field 'FExpert'.
  188. */
  189. public boolean getFExpert(
  190. ) {
  191. return this._fExpert;
  192. }
  193. /**
  194. * Returns the value of field 'fNotify'.
  195. *
  196. * @return the value of field 'FNotify'.
  197. */
  198. public boolean getFNotify(
  199. ) {
  200. return this._fNotify;
  201. }
  202. /**
  203. * Returns the value of field 'fVirtual'.
  204. *
  205. * @return the value of field 'FVirtual'.
  206. */
  207. public boolean getFVirtual(
  208. ) {
  209. return this._fVirtual;
  210. }
  211. /**
  212. * Returns the value of field 'ixPerson'.
  213. *
  214. * @return the value of field 'IxPerson'.
  215. */
  216. public long getIxPerson(
  217. ) {
  218. return this._ixPerson;
  219. }
  220. /**
  221. * Returns the value of field 'sEmail'.
  222. *
  223. * @return the value of field 'SEmail'.
  224. */
  225. public java.lang.String getSEmail(
  226. ) {
  227. return this._sEmail;
  228. }
  229. /**
  230. * Returns the value of field 'sFullName'.
  231. *
  232. * @return the value of field 'SFullName'.
  233. */
  234. public java.lang.String getSFullName(
  235. ) {
  236. return this._sFullName;
  237. }
  238. /**
  239. * Returns the value of field 'sHomepage'.
  240. *
  241. * @return the value of field 'SHomepage'.
  242. */
  243. public java.lang.Object getSHomepage(
  244. ) {
  245. return this._sHomepage;
  246. }
  247. /**
  248. * Returns the value of field 'sLanguage'.
  249. *
  250. * @return the value of field 'SLanguage'.
  251. */
  252. public java.lang.String getSLanguage(
  253. ) {
  254. return this._sLanguage;
  255. }
  256. /**
  257. * Returns the value of field 'sLocale'.
  258. *
  259. * @return the value of field 'SLocale'.
  260. */
  261. public java.lang.String getSLocale(
  262. ) {
  263. return this._sLocale;
  264. }
  265. /**
  266. * Returns the value of field 'sPhone'.
  267. *
  268. * @return the value of field 'SPhone'.
  269. */
  270. public java.lang.Object getSPhone(
  271. ) {
  272. return this._sPhone;
  273. }
  274. /**
  275. * Returns the value of field 'sTimeZoneKey'.
  276. *
  277. * @return the value of field 'STimeZoneKey'.
  278. */
  279. public java.lang.String getSTimeZoneKey(
  280. ) {
  281. return this._sTimeZoneKey;
  282. }
  283. /**
  284. * Method hasFAdministrator.
  285. *
  286. * @return true if at least one FAdministrator has been added
  287. */
  288. public boolean hasFAdministrator(
  289. ) {
  290. return this._has_fAdministrator;
  291. }
  292. /**
  293. * Method hasFCommunity.
  294. *
  295. * @return true if at least one FCommunity has been added
  296. */
  297. public boolean hasFCommunity(
  298. ) {
  299. return this._has_fCommunity;
  300. }
  301. /**
  302. * Method hasFDeleted.
  303. *
  304. * @return true if at least one FDeleted has been added
  305. */
  306. public boolean hasFDeleted(
  307. ) {
  308. return this._has_fDeleted;
  309. }
  310. /**
  311. * Method hasFExpert.
  312. *
  313. * @return true if at least one FExpert has been added
  314. */
  315. public boolean hasFExpert(
  316. ) {
  317. return this._has_fExpert;
  318. }
  319. /**
  320. * Method hasFNotify.
  321. *
  322. * @return true if at least one FNotify has been added
  323. */
  324. public boolean hasFNotify(
  325. ) {
  326. return this._has_fNotify;
  327. }
  328. /**
  329. * Method hasFVirtual.
  330. *
  331. * @return true if at least one FVirtual has been added
  332. */
  333. public boolean hasFVirtual(
  334. ) {
  335. return this._has_fVirtual;
  336. }
  337. /**
  338. * Method hasIxPerson.
  339. *
  340. * @return true if at least one IxPerson has been added
  341. */
  342. public boolean hasIxPerson(
  343. ) {
  344. return this._has_ixPerson;
  345. }
  346. /**
  347. * Returns the value of field 'fAdministrator'.
  348. *
  349. * @return the value of field 'FAdministrator'.
  350. */
  351. public boolean isFAdministrator(
  352. ) {
  353. return this._fAdministrator;
  354. }
  355. /**
  356. * Returns the value of field 'fCommunity'.
  357. *
  358. * @return the value of field 'FCommunity'.
  359. */
  360. public boolean isFCommunity(
  361. ) {
  362. return this._fCommunity;
  363. }
  364. /**
  365. * Returns the value of field 'fDeleted'.
  366. *
  367. * @return the value of field 'FDeleted'.
  368. */
  369. public boolean isFDeleted(
  370. ) {
  371. return this._fDeleted;
  372. }
  373. /**
  374. * Returns the value of field 'fExpert'.
  375. *
  376. * @return the value of field 'FExpert'.
  377. */
  378. public boolean isFExpert(
  379. ) {
  380. return this._fExpert;
  381. }
  382. /**
  383. * Returns the value of field 'fNotify'.
  384. *
  385. * @return the value of field 'FNotify'.
  386. */
  387. public boolean isFNotify(
  388. ) {
  389. return this._fNotify;
  390. }
  391. /**
  392. * Returns the value of field 'fVirtual'.
  393. *
  394. * @return the value of field 'FVirtual'.
  395. */
  396. public boolean isFVirtual(
  397. ) {
  398. return this._fVirtual;
  399. }
  400. /**
  401. * Method isValid.
  402. *
  403. * @return true if this object is valid according to the schema
  404. */
  405. public boolean isValid(
  406. ) {
  407. try {
  408. validate();
  409. } catch (org.exolab.castor.xml.ValidationException vex) {
  410. return false;
  411. }
  412. return true;
  413. }
  414. /**
  415. *
  416. *
  417. * @param out
  418. * @throws org.exolab.castor.xml.MarshalException if object is
  419. * null or if any SAXException is thrown during marshaling
  420. * @throws org.exolab.castor.xml.ValidationException if this
  421. * object is an invalid instance according to the schema
  422. */
  423. public void marshal(
  424. final java.io.Writer out)
  425. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  426. Marshaller.marshal(this, out);
  427. }
  428. /**
  429. *
  430. *
  431. * @param handler
  432. * @throws java.io.IOException if an IOException occurs during
  433. * marshaling
  434. * @throws org.exolab.castor.xml.ValidationException if this
  435. * object is an invalid instance according to the schema
  436. * @throws org.exolab.castor.xml.MarshalException if object is
  437. * null or if any SAXException is thrown during marshaling
  438. */
  439. public void marshal(
  440. final org.xml.sax.ContentHandler handler)
  441. throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  442. Marshaller.marshal(this, handler);
  443. }
  444. /**
  445. * Sets the value of field 'fAdministrator'.
  446. *
  447. * @param fAdministrator the value of field 'fAdministrator'.
  448. */
  449. public void setFAdministrator(
  450. final boolean fAdministrator) {
  451. this._fAdministrator = fAdministrator;
  452. this._has_fAdministrator = true;
  453. }
  454. /**
  455. * Sets the value of field 'fCommunity'.
  456. *
  457. * @param fCommunity the value of field 'fCommunity'.
  458. */
  459. public void setFCommunity(
  460. final boolean fCommunity) {
  461. this._fCommunity = fCommunity;
  462. this._has_fCommunity = true;
  463. }
  464. /**
  465. * Sets the value of field 'fDeleted'.
  466. *
  467. * @param fDeleted the value of field 'fDeleted'.
  468. */
  469. public void setFDeleted(
  470. final boolean fDeleted) {
  471. this._fDeleted = fDeleted;
  472. this._has_fDeleted = true;
  473. }
  474. /**
  475. * Sets the value of field 'fExpert'.
  476. *
  477. * @param fExpert the value of field 'fExpert'.
  478. */
  479. public void setFExpert(
  480. final boolean fExpert) {
  481. this._fExpert = fExpert;
  482. this._has_fExpert = true;
  483. }
  484. /**
  485. * Sets the value of field 'fNotify'.
  486. *
  487. * @param fNotify the value of field 'fNotify'.
  488. */
  489. public void setFNotify(
  490. final boolean fNotify) {
  491. this._fNotify = fNotify;
  492. this._has_fNotify = true;
  493. }
  494. /**
  495. * Sets the value of field 'fVirtual'.
  496. *
  497. * @param fVirtual the value of field 'fVirtual'.
  498. */
  499. public void setFVirtual(
  500. final boolean fVirtual) {
  501. this._fVirtual = fVirtual;
  502. this._has_fVirtual = true;
  503. }
  504. /**
  505. * Sets the value of field 'ixPerson'.
  506. *
  507. * @param ixPerson the value of field 'ixPerson'.
  508. */
  509. public void setIxPerson(
  510. final long ixPerson) {
  511. this._ixPerson = ixPerson;
  512. this._has_ixPerson = true;
  513. }
  514. /**
  515. * Sets the value of field 'sEmail'.
  516. *
  517. * @param sEmail the value of field 'sEmail'.
  518. */
  519. public void setSEmail(
  520. final java.lang.String sEmail) {
  521. this._sEmail = sEmail;
  522. }
  523. /**
  524. * Sets the value of field 'sFullName'.
  525. *
  526. * @param sFullName the value of field 'sFullName'.
  527. */
  528. public void setSFullName(
  529. final java.lang.String sFullName) {
  530. this._sFullName = sFullName;
  531. }
  532. /**
  533. * Sets the value of field 'sHomepage'.
  534. *
  535. * @param sHomepage the value of field 'sHomepage'.
  536. */
  537. public void setSHomepage(
  538. final java.lang.Object sHomepage) {
  539. this._sHomepage = sHomepage;
  540. }
  541. /**
  542. * Sets the value of field 'sLanguage'.
  543. *
  544. * @param sLanguage the value of field 'sLanguage'.
  545. */
  546. public void setSLanguage(
  547. final java.lang.String sLanguage) {
  548. this._sLanguage = sLanguage;
  549. }
  550. /**
  551. * Sets the value of field 'sLocale'.
  552. *
  553. * @param sLocale the value of field 'sLocale'.
  554. */
  555. public void setSLocale(
  556. final java.lang.String sLocale) {
  557. this._sLocale = sLocale;
  558. }
  559. /**
  560. * Sets the value of field 'sPhone'.
  561. *
  562. * @param sPhone the value of field 'sPhone'.
  563. */
  564. public void setSPhone(
  565. final java.lang.Object sPhone) {
  566. this._sPhone = sPhone;
  567. }
  568. /**
  569. * Sets the value of field 'sTimeZoneKey'.
  570. *
  571. * @param sTimeZoneKey the value of field 'sTimeZoneKey'.
  572. */
  573. public void setSTimeZoneKey(
  574. final java.lang.String sTimeZoneKey) {
  575. this._sTimeZoneKey = sTimeZoneKey;
  576. }
  577. /**
  578. * Method unmarshal.
  579. *
  580. * @param reader
  581. * @throws org.exolab.castor.xml.MarshalException if object is
  582. * null or if any SAXException is thrown during marshaling
  583. * @throws org.exolab.castor.xml.ValidationException if this
  584. * object is an invalid instance according to the schema
  585. * @return the unmarshaled com.bugclipse.fogbugz.api.Person
  586. */
  587. public static com.bugclipse.fogbugz.api.Person unmarshal(
  588. final java.io.Reader reader)
  589. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  590. return (com.bugclipse.fogbugz.api.Person) Unmarshaller.unmarshal(com.bugclipse.fogbugz.api.Person.class, reader);
  591. }
  592. /**
  593. *
  594. *
  595. * @throws org.exolab.castor.xml.ValidationException if this
  596. * object is an invalid instance according to the schema
  597. */
  598. public void validate(
  599. )
  600. throws org.exolab.castor.xml.ValidationException {
  601. org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
  602. validator.validate(this);
  603. }
  604. }