/sdk/src/java/com/google/checkout/sdk/domain/AlternateTaxRule.java
Java | 438 lines | 117 code | 35 blank | 286 comment | 2 complexity | aa560a3c55f7e78ccccb418be59dda4f MD5 | raw file
Possible License(s): Apache-2.0
- //
- // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
- // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
- // Any modifications to this file will be lost upon recompilation of the source schema.
- // Generated on: 2010.09.23 at 12:14:48 PM PDT
- //
- package com.google.checkout.sdk.domain;
- import java.util.ArrayList;
- import java.util.List;
- import javax.xml.bind.annotation.XmlAccessType;
- import javax.xml.bind.annotation.XmlAccessorType;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlElements;
- import javax.xml.bind.annotation.XmlType;
- /**
- * <p>Java class for AlternateTaxRule complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="AlternateTaxRule">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="rate" minOccurs="0">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}double">
- * <minInclusive value="0.0"/>
- * </restriction>
- * </simpleType>
- * </element>
- * <element name="tax-area" minOccurs="0">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice>
- * <element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
- * <element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
- * <element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
- * <element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
- * <element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
- * <element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
- * </choice>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * <element name="tax-areas" minOccurs="0">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
- * <element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
- * <element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
- * <element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
- * <element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
- * <element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
- * </choice>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "AlternateTaxRule", namespace = "http://checkout.google.com/schema/2", propOrder = {
- })
- public class AlternateTaxRule {
- @XmlElement(namespace = "http://checkout.google.com/schema/2")
- protected Double rate;
- @XmlElement(name = "tax-area", namespace = "http://checkout.google.com/schema/2")
- protected AlternateTaxRule.TaxArea taxArea;
- @XmlElement(name = "tax-areas", namespace = "http://checkout.google.com/schema/2")
- protected AlternateTaxRule.TaxAreas taxAreas;
- /**
- * Gets the value of the rate property.
- *
- * @return
- * possible object is
- * {@link Double }
- *
- */
- public Double getRate() {
- return rate;
- }
- /**
- * Sets the value of the rate property.
- *
- * @param value
- * allowed object is
- * {@link Double }
- *
- */
- public void setRate(Double value) {
- this.rate = value;
- }
- /**
- * Gets the value of the taxArea property.
- *
- * @return
- * possible object is
- * {@link AlternateTaxRule.TaxArea }
- *
- */
- public AlternateTaxRule.TaxArea getTaxArea() {
- return taxArea;
- }
- /**
- * Sets the value of the taxArea property.
- *
- * @param value
- * allowed object is
- * {@link AlternateTaxRule.TaxArea }
- *
- */
- public void setTaxArea(AlternateTaxRule.TaxArea value) {
- this.taxArea = value;
- }
- /**
- * Gets the value of the taxAreas property.
- *
- * @return
- * possible object is
- * {@link AlternateTaxRule.TaxAreas }
- *
- */
- public AlternateTaxRule.TaxAreas getTaxAreas() {
- return taxAreas;
- }
- /**
- * Sets the value of the taxAreas property.
- *
- * @param value
- * allowed object is
- * {@link AlternateTaxRule.TaxAreas }
- *
- */
- public void setTaxAreas(AlternateTaxRule.TaxAreas value) {
- this.taxAreas = value;
- }
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice>
- * <element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
- * <element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
- * <element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
- * <element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
- * <element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
- * <element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
- * </choice>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "usStateArea",
- "usZipArea",
- "usCountryArea",
- "postalArea",
- "worldArea",
- "euArea"
- })
- public static class TaxArea {
- @XmlElement(name = "us-state-area", namespace = "http://checkout.google.com/schema/2")
- protected USStateArea usStateArea;
- @XmlElement(name = "us-zip-area", namespace = "http://checkout.google.com/schema/2")
- protected USZipArea usZipArea;
- @XmlElement(name = "us-country-area", namespace = "http://checkout.google.com/schema/2")
- protected USCountryArea usCountryArea;
- @XmlElement(name = "postal-area", namespace = "http://checkout.google.com/schema/2")
- protected PostalArea postalArea;
- @XmlElement(name = "world-area", namespace = "http://checkout.google.com/schema/2")
- protected WorldArea worldArea;
- @XmlElement(name = "eu-area", namespace = "http://checkout.google.com/schema/2")
- protected EUArea euArea;
- /**
- * Gets the value of the usStateArea property.
- *
- * @return
- * possible object is
- * {@link USStateArea }
- *
- */
- public USStateArea getUsStateArea() {
- return usStateArea;
- }
- /**
- * Sets the value of the usStateArea property.
- *
- * @param value
- * allowed object is
- * {@link USStateArea }
- *
- */
- public void setUsStateArea(USStateArea value) {
- this.usStateArea = value;
- }
- /**
- * Gets the value of the usZipArea property.
- *
- * @return
- * possible object is
- * {@link USZipArea }
- *
- */
- public USZipArea getUsZipArea() {
- return usZipArea;
- }
- /**
- * Sets the value of the usZipArea property.
- *
- * @param value
- * allowed object is
- * {@link USZipArea }
- *
- */
- public void setUsZipArea(USZipArea value) {
- this.usZipArea = value;
- }
- /**
- * Gets the value of the usCountryArea property.
- *
- * @return
- * possible object is
- * {@link USCountryArea }
- *
- */
- public USCountryArea getUsCountryArea() {
- return usCountryArea;
- }
- /**
- * Sets the value of the usCountryArea property.
- *
- * @param value
- * allowed object is
- * {@link USCountryArea }
- *
- */
- public void setUsCountryArea(USCountryArea value) {
- this.usCountryArea = value;
- }
- /**
- * Gets the value of the postalArea property.
- *
- * @return
- * possible object is
- * {@link PostalArea }
- *
- */
- public PostalArea getPostalArea() {
- return postalArea;
- }
- /**
- * Sets the value of the postalArea property.
- *
- * @param value
- * allowed object is
- * {@link PostalArea }
- *
- */
- public void setPostalArea(PostalArea value) {
- this.postalArea = value;
- }
- /**
- * Gets the value of the worldArea property.
- *
- * @return
- * possible object is
- * {@link WorldArea }
- *
- */
- public WorldArea getWorldArea() {
- return worldArea;
- }
- /**
- * Sets the value of the worldArea property.
- *
- * @param value
- * allowed object is
- * {@link WorldArea }
- *
- */
- public void setWorldArea(WorldArea value) {
- this.worldArea = value;
- }
- /**
- * Gets the value of the euArea property.
- *
- * @return
- * possible object is
- * {@link EUArea }
- *
- */
- public EUArea getEuArea() {
- return euArea;
- }
- /**
- * Sets the value of the euArea property.
- *
- * @param value
- * allowed object is
- * {@link EUArea }
- *
- */
- public void setEuArea(EUArea value) {
- this.euArea = value;
- }
- }
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <element name="us-state-area" type="{http://checkout.google.com/schema/2}USStateArea"/>
- * <element name="us-zip-area" type="{http://checkout.google.com/schema/2}USZipArea"/>
- * <element name="us-country-area" type="{http://checkout.google.com/schema/2}USCountryArea"/>
- * <element name="postal-area" type="{http://checkout.google.com/schema/2}PostalArea"/>
- * <element name="world-area" type="{http://checkout.google.com/schema/2}WorldArea"/>
- * <element name="eu-area" type="{http://checkout.google.com/schema/2}EUArea"/>
- * </choice>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "allTaxAreas"
- })
- public static class TaxAreas {
- @XmlElements({
- @XmlElement(name = "eu-area", namespace = "http://checkout.google.com/schema/2", type = EUArea.class),
- @XmlElement(name = "us-state-area", namespace = "http://checkout.google.com/schema/2", type = USStateArea.class),
- @XmlElement(name = "us-zip-area", namespace = "http://checkout.google.com/schema/2", type = USZipArea.class),
- @XmlElement(name = "world-area", namespace = "http://checkout.google.com/schema/2", type = WorldArea.class),
- @XmlElement(name = "us-country-area", namespace = "http://checkout.google.com/schema/2", type = USCountryArea.class),
- @XmlElement(name = "postal-area", namespace = "http://checkout.google.com/schema/2", type = PostalArea.class)
- })
- protected List<Object> allTaxAreas;
- /**
- * Gets the value of the allTaxAreas property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the allTaxAreas property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAllTaxAreas().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link EUArea }
- * {@link USStateArea }
- * {@link USZipArea }
- * {@link WorldArea }
- * {@link USCountryArea }
- * {@link PostalArea }
- *
- *
- */
- public List<Object> getAllTaxAreas() {
- if (allTaxAreas == null) {
- allTaxAreas = new ArrayList<Object>();
- }
- return this.allTaxAreas;
- }
- }
- }