PageRenderTime 47ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/sdk/src/java/com/google/checkout/sdk/domain/AlternateTaxRule.java

http://google-checkout-java-sdk.googlecode.com/
Java | 438 lines | 117 code | 35 blank | 286 comment | 2 complexity | aa560a3c55f7e78ccccb418be59dda4f MD5 | raw file
Possible License(s): Apache-2.0
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
  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: 2010.09.23 at 12:14:48 PM PDT
  6. //
  7. package com.google.checkout.sdk.domain;
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import javax.xml.bind.annotation.XmlAccessType;
  11. import javax.xml.bind.annotation.XmlAccessorType;
  12. import javax.xml.bind.annotation.XmlElement;
  13. import javax.xml.bind.annotation.XmlElements;
  14. import javax.xml.bind.annotation.XmlType;
  15. /**
  16. * <p>Java class for AlternateTaxRule complex type.
  17. *
  18. * <p>The following schema fragment specifies the expected content contained within this class.
  19. *
  20. * <pre>
  21. * &lt;complexType name="AlternateTaxRule">
  22. * &lt;complexContent>
  23. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  24. * &lt;all>
  25. * &lt;element name="rate" minOccurs="0">
  26. * &lt;simpleType>
  27. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}double">
  28. * &lt;minInclusive value="0.0"/>
  29. * &lt;/restriction>
  30. * &lt;/simpleType>
  31. * &lt;/element>
  32. * &lt;element name="tax-area" minOccurs="0">
  33. * &lt;complexType>
  34. * &lt;complexContent>
  35. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  36. * &lt;choice>
  37. * &lt;element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
  38. * &lt;element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
  39. * &lt;element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
  40. * &lt;element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
  41. * &lt;element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
  42. * &lt;element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
  43. * &lt;/choice>
  44. * &lt;/restriction>
  45. * &lt;/complexContent>
  46. * &lt;/complexType>
  47. * &lt;/element>
  48. * &lt;element name="tax-areas" minOccurs="0">
  49. * &lt;complexType>
  50. * &lt;complexContent>
  51. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  52. * &lt;sequence>
  53. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  54. * &lt;element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
  55. * &lt;element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
  56. * &lt;element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
  57. * &lt;element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
  58. * &lt;element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
  59. * &lt;element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
  60. * &lt;/choice>
  61. * &lt;/sequence>
  62. * &lt;/restriction>
  63. * &lt;/complexContent>
  64. * &lt;/complexType>
  65. * &lt;/element>
  66. * &lt;/all>
  67. * &lt;/restriction>
  68. * &lt;/complexContent>
  69. * &lt;/complexType>
  70. * </pre>
  71. *
  72. *
  73. */
  74. @XmlAccessorType(XmlAccessType.FIELD)
  75. @XmlType(name = "AlternateTaxRule", namespace = "http://checkout.google.com/schema/2", propOrder = {
  76. })
  77. public class AlternateTaxRule {
  78. @XmlElement(namespace = "http://checkout.google.com/schema/2")
  79. protected Double rate;
  80. @XmlElement(name = "tax-area", namespace = "http://checkout.google.com/schema/2")
  81. protected AlternateTaxRule.TaxArea taxArea;
  82. @XmlElement(name = "tax-areas", namespace = "http://checkout.google.com/schema/2")
  83. protected AlternateTaxRule.TaxAreas taxAreas;
  84. /**
  85. * Gets the value of the rate property.
  86. *
  87. * @return
  88. * possible object is
  89. * {@link Double }
  90. *
  91. */
  92. public Double getRate() {
  93. return rate;
  94. }
  95. /**
  96. * Sets the value of the rate property.
  97. *
  98. * @param value
  99. * allowed object is
  100. * {@link Double }
  101. *
  102. */
  103. public void setRate(Double value) {
  104. this.rate = value;
  105. }
  106. /**
  107. * Gets the value of the taxArea property.
  108. *
  109. * @return
  110. * possible object is
  111. * {@link AlternateTaxRule.TaxArea }
  112. *
  113. */
  114. public AlternateTaxRule.TaxArea getTaxArea() {
  115. return taxArea;
  116. }
  117. /**
  118. * Sets the value of the taxArea property.
  119. *
  120. * @param value
  121. * allowed object is
  122. * {@link AlternateTaxRule.TaxArea }
  123. *
  124. */
  125. public void setTaxArea(AlternateTaxRule.TaxArea value) {
  126. this.taxArea = value;
  127. }
  128. /**
  129. * Gets the value of the taxAreas property.
  130. *
  131. * @return
  132. * possible object is
  133. * {@link AlternateTaxRule.TaxAreas }
  134. *
  135. */
  136. public AlternateTaxRule.TaxAreas getTaxAreas() {
  137. return taxAreas;
  138. }
  139. /**
  140. * Sets the value of the taxAreas property.
  141. *
  142. * @param value
  143. * allowed object is
  144. * {@link AlternateTaxRule.TaxAreas }
  145. *
  146. */
  147. public void setTaxAreas(AlternateTaxRule.TaxAreas value) {
  148. this.taxAreas = value;
  149. }
  150. /**
  151. * <p>Java class for anonymous complex type.
  152. *
  153. * <p>The following schema fragment specifies the expected content contained within this class.
  154. *
  155. * <pre>
  156. * &lt;complexType>
  157. * &lt;complexContent>
  158. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  159. * &lt;choice>
  160. * &lt;element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
  161. * &lt;element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
  162. * &lt;element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
  163. * &lt;element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
  164. * &lt;element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
  165. * &lt;element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
  166. * &lt;/choice>
  167. * &lt;/restriction>
  168. * &lt;/complexContent>
  169. * &lt;/complexType>
  170. * </pre>
  171. *
  172. *
  173. */
  174. @XmlAccessorType(XmlAccessType.FIELD)
  175. @XmlType(name = "", propOrder = {
  176. "usStateArea",
  177. "usZipArea",
  178. "usCountryArea",
  179. "postalArea",
  180. "worldArea",
  181. "euArea"
  182. })
  183. public static class TaxArea {
  184. @XmlElement(name = "us-state-area", namespace = "http://checkout.google.com/schema/2")
  185. protected USStateArea usStateArea;
  186. @XmlElement(name = "us-zip-area", namespace = "http://checkout.google.com/schema/2")
  187. protected USZipArea usZipArea;
  188. @XmlElement(name = "us-country-area", namespace = "http://checkout.google.com/schema/2")
  189. protected USCountryArea usCountryArea;
  190. @XmlElement(name = "postal-area", namespace = "http://checkout.google.com/schema/2")
  191. protected PostalArea postalArea;
  192. @XmlElement(name = "world-area", namespace = "http://checkout.google.com/schema/2")
  193. protected WorldArea worldArea;
  194. @XmlElement(name = "eu-area", namespace = "http://checkout.google.com/schema/2")
  195. protected EUArea euArea;
  196. /**
  197. * Gets the value of the usStateArea property.
  198. *
  199. * @return
  200. * possible object is
  201. * {@link USStateArea }
  202. *
  203. */
  204. public USStateArea getUsStateArea() {
  205. return usStateArea;
  206. }
  207. /**
  208. * Sets the value of the usStateArea property.
  209. *
  210. * @param value
  211. * allowed object is
  212. * {@link USStateArea }
  213. *
  214. */
  215. public void setUsStateArea(USStateArea value) {
  216. this.usStateArea = value;
  217. }
  218. /**
  219. * Gets the value of the usZipArea property.
  220. *
  221. * @return
  222. * possible object is
  223. * {@link USZipArea }
  224. *
  225. */
  226. public USZipArea getUsZipArea() {
  227. return usZipArea;
  228. }
  229. /**
  230. * Sets the value of the usZipArea property.
  231. *
  232. * @param value
  233. * allowed object is
  234. * {@link USZipArea }
  235. *
  236. */
  237. public void setUsZipArea(USZipArea value) {
  238. this.usZipArea = value;
  239. }
  240. /**
  241. * Gets the value of the usCountryArea property.
  242. *
  243. * @return
  244. * possible object is
  245. * {@link USCountryArea }
  246. *
  247. */
  248. public USCountryArea getUsCountryArea() {
  249. return usCountryArea;
  250. }
  251. /**
  252. * Sets the value of the usCountryArea property.
  253. *
  254. * @param value
  255. * allowed object is
  256. * {@link USCountryArea }
  257. *
  258. */
  259. public void setUsCountryArea(USCountryArea value) {
  260. this.usCountryArea = value;
  261. }
  262. /**
  263. * Gets the value of the postalArea property.
  264. *
  265. * @return
  266. * possible object is
  267. * {@link PostalArea }
  268. *
  269. */
  270. public PostalArea getPostalArea() {
  271. return postalArea;
  272. }
  273. /**
  274. * Sets the value of the postalArea property.
  275. *
  276. * @param value
  277. * allowed object is
  278. * {@link PostalArea }
  279. *
  280. */
  281. public void setPostalArea(PostalArea value) {
  282. this.postalArea = value;
  283. }
  284. /**
  285. * Gets the value of the worldArea property.
  286. *
  287. * @return
  288. * possible object is
  289. * {@link WorldArea }
  290. *
  291. */
  292. public WorldArea getWorldArea() {
  293. return worldArea;
  294. }
  295. /**
  296. * Sets the value of the worldArea property.
  297. *
  298. * @param value
  299. * allowed object is
  300. * {@link WorldArea }
  301. *
  302. */
  303. public void setWorldArea(WorldArea value) {
  304. this.worldArea = value;
  305. }
  306. /**
  307. * Gets the value of the euArea property.
  308. *
  309. * @return
  310. * possible object is
  311. * {@link EUArea }
  312. *
  313. */
  314. public EUArea getEuArea() {
  315. return euArea;
  316. }
  317. /**
  318. * Sets the value of the euArea property.
  319. *
  320. * @param value
  321. * allowed object is
  322. * {@link EUArea }
  323. *
  324. */
  325. public void setEuArea(EUArea value) {
  326. this.euArea = value;
  327. }
  328. }
  329. /**
  330. * <p>Java class for anonymous complex type.
  331. *
  332. * <p>The following schema fragment specifies the expected content contained within this class.
  333. *
  334. * <pre>
  335. * &lt;complexType>
  336. * &lt;complexContent>
  337. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  338. * &lt;sequence>
  339. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  340. * &lt;element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
  341. * &lt;element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
  342. * &lt;element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
  343. * &lt;element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
  344. * &lt;element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
  345. * &lt;element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
  346. * &lt;/choice>
  347. * &lt;/sequence>
  348. * &lt;/restriction>
  349. * &lt;/complexContent>
  350. * &lt;/complexType>
  351. * </pre>
  352. *
  353. *
  354. */
  355. @XmlAccessorType(XmlAccessType.FIELD)
  356. @XmlType(name = "", propOrder = {
  357. "allTaxAreas"
  358. })
  359. public static class TaxAreas {
  360. @XmlElements({
  361. @XmlElement(name = "eu-area", namespace = "http://checkout.google.com/schema/2", type = EUArea.class),
  362. @XmlElement(name = "us-state-area", namespace = "http://checkout.google.com/schema/2", type = USStateArea.class),
  363. @XmlElement(name = "us-zip-area", namespace = "http://checkout.google.com/schema/2", type = USZipArea.class),
  364. @XmlElement(name = "world-area", namespace = "http://checkout.google.com/schema/2", type = WorldArea.class),
  365. @XmlElement(name = "us-country-area", namespace = "http://checkout.google.com/schema/2", type = USCountryArea.class),
  366. @XmlElement(name = "postal-area", namespace = "http://checkout.google.com/schema/2", type = PostalArea.class)
  367. })
  368. protected List<Object> allTaxAreas;
  369. /**
  370. * Gets the value of the allTaxAreas property.
  371. *
  372. * <p>
  373. * This accessor method returns a reference to the live list,
  374. * not a snapshot. Therefore any modification you make to the
  375. * returned list will be present inside the JAXB object.
  376. * This is why there is not a <CODE>set</CODE> method for the allTaxAreas property.
  377. *
  378. * <p>
  379. * For example, to add a new item, do as follows:
  380. * <pre>
  381. * getAllTaxAreas().add(newItem);
  382. * </pre>
  383. *
  384. *
  385. * <p>
  386. * Objects of the following type(s) are allowed in the list
  387. * {@link EUArea }
  388. * {@link USStateArea }
  389. * {@link USZipArea }
  390. * {@link WorldArea }
  391. * {@link USCountryArea }
  392. * {@link PostalArea }
  393. *
  394. *
  395. */
  396. public List<Object> getAllTaxAreas() {
  397. if (allTaxAreas == null) {
  398. allTaxAreas = new ArrayList<Object>();
  399. }
  400. return this.allTaxAreas;
  401. }
  402. }
  403. }