All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.premiumminds.billy.portugal.services.export.saftpt.v1_02_01.schema.Supplier Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2020.11.05 at 11:28:40 AM WET 
//


package com.premiumminds.billy.portugal.services.export.saftpt.v1_02_01.schema;

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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}SupplierID"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}AccountID"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}SupplierTaxID"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}CompanyName"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}Contact" minOccurs="0"/>
 *         <element name="BillingAddress" type="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}SupplierAddressStructure"/>
 *         <element name="ShipFromAddress" type="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}SupplierAddressStructure" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}Telephone" minOccurs="0"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}Fax" minOccurs="0"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}Email" minOccurs="0"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}Website" minOccurs="0"/>
 *         <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.02_01}SelfBillingIndicator"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "supplierID", "accountID", "supplierTaxID", "companyName", "contact", "billingAddress", "shipFromAddress", "telephone", "fax", "email", "website", "selfBillingIndicator" }) @XmlRootElement(name = "Supplier") public class Supplier implements ToString2 { @XmlElement(name = "SupplierID", required = true) protected String supplierID; @XmlElement(name = "AccountID", required = true) protected String accountID; @XmlElement(name = "SupplierTaxID", required = true) protected String supplierTaxID; @XmlElement(name = "CompanyName", required = true) protected String companyName; @XmlElement(name = "Contact") protected String contact; @XmlElement(name = "BillingAddress", required = true) protected SupplierAddressStructure billingAddress; @XmlElement(name = "ShipFromAddress") protected List shipFromAddress; @XmlElement(name = "Telephone") protected String telephone; @XmlElement(name = "Fax") protected String fax; @XmlElement(name = "Email") protected String email; @XmlElement(name = "Website") protected String website; @XmlElement(name = "SelfBillingIndicator") protected int selfBillingIndicator; /** * Gets the value of the supplierID property. * * @return * possible object is * {@link String } * */ public String getSupplierID() { return supplierID; } /** * Sets the value of the supplierID property. * * @param value * allowed object is * {@link String } * */ public void setSupplierID(String value) { this.supplierID = value; } /** * Gets the value of the accountID property. * * @return * possible object is * {@link String } * */ public String getAccountID() { return accountID; } /** * Sets the value of the accountID property. * * @param value * allowed object is * {@link String } * */ public void setAccountID(String value) { this.accountID = value; } /** * Gets the value of the supplierTaxID property. * * @return * possible object is * {@link String } * */ public String getSupplierTaxID() { return supplierTaxID; } /** * Sets the value of the supplierTaxID property. * * @param value * allowed object is * {@link String } * */ public void setSupplierTaxID(String value) { this.supplierTaxID = value; } /** * Gets the value of the companyName property. * * @return * possible object is * {@link String } * */ public String getCompanyName() { return companyName; } /** * Sets the value of the companyName property. * * @param value * allowed object is * {@link String } * */ public void setCompanyName(String value) { this.companyName = value; } /** * Gets the value of the contact property. * * @return * possible object is * {@link String } * */ public String getContact() { return contact; } /** * Sets the value of the contact property. * * @param value * allowed object is * {@link String } * */ public void setContact(String value) { this.contact = value; } /** * Gets the value of the billingAddress property. * * @return * possible object is * {@link SupplierAddressStructure } * */ public SupplierAddressStructure getBillingAddress() { return billingAddress; } /** * Sets the value of the billingAddress property. * * @param value * allowed object is * {@link SupplierAddressStructure } * */ public void setBillingAddress(SupplierAddressStructure value) { this.billingAddress = value; } /** * Gets the value of the shipFromAddress property. * *

* 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 set method for the shipFromAddress property. * *

* For example, to add a new item, do as follows: *

     *    getShipFromAddress().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SupplierAddressStructure } * * */ public List getShipFromAddress() { if (shipFromAddress == null) { shipFromAddress = new ArrayList(); } return this.shipFromAddress; } /** * Gets the value of the telephone property. * * @return * possible object is * {@link String } * */ public String getTelephone() { return telephone; } /** * Sets the value of the telephone property. * * @param value * allowed object is * {@link String } * */ public void setTelephone(String value) { this.telephone = value; } /** * Gets the value of the fax property. * * @return * possible object is * {@link String } * */ public String getFax() { return fax; } /** * Sets the value of the fax property. * * @param value * allowed object is * {@link String } * */ public void setFax(String value) { this.fax = value; } /** * Gets the value of the email property. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Sets the value of the email property. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } /** * Gets the value of the website property. * * @return * possible object is * {@link String } * */ public String getWebsite() { return website; } /** * Sets the value of the website property. * * @param value * allowed object is * {@link String } * */ public void setWebsite(String value) { this.website = value; } /** * Gets the value of the selfBillingIndicator property. * */ public int getSelfBillingIndicator() { return selfBillingIndicator; } /** * Sets the value of the selfBillingIndicator property. * */ public void setSelfBillingIndicator(int value) { this.selfBillingIndicator = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theSupplierID; theSupplierID = this.getSupplierID(); strategy.appendField(locator, this, "supplierID", buffer, theSupplierID, (this.supplierID!= null)); } { String theAccountID; theAccountID = this.getAccountID(); strategy.appendField(locator, this, "accountID", buffer, theAccountID, (this.accountID!= null)); } { String theSupplierTaxID; theSupplierTaxID = this.getSupplierTaxID(); strategy.appendField(locator, this, "supplierTaxID", buffer, theSupplierTaxID, (this.supplierTaxID!= null)); } { String theCompanyName; theCompanyName = this.getCompanyName(); strategy.appendField(locator, this, "companyName", buffer, theCompanyName, (this.companyName!= null)); } { String theContact; theContact = this.getContact(); strategy.appendField(locator, this, "contact", buffer, theContact, (this.contact!= null)); } { SupplierAddressStructure theBillingAddress; theBillingAddress = this.getBillingAddress(); strategy.appendField(locator, this, "billingAddress", buffer, theBillingAddress, (this.billingAddress!= null)); } { List theShipFromAddress; theShipFromAddress = (((this.shipFromAddress!= null)&&(!this.shipFromAddress.isEmpty()))?this.getShipFromAddress():null); strategy.appendField(locator, this, "shipFromAddress", buffer, theShipFromAddress, ((this.shipFromAddress!= null)&&(!this.shipFromAddress.isEmpty()))); } { String theTelephone; theTelephone = this.getTelephone(); strategy.appendField(locator, this, "telephone", buffer, theTelephone, (this.telephone!= null)); } { String theFax; theFax = this.getFax(); strategy.appendField(locator, this, "fax", buffer, theFax, (this.fax!= null)); } { String theEmail; theEmail = this.getEmail(); strategy.appendField(locator, this, "email", buffer, theEmail, (this.email!= null)); } { String theWebsite; theWebsite = this.getWebsite(); strategy.appendField(locator, this, "website", buffer, theWebsite, (this.website!= null)); } { int theSelfBillingIndicator; theSelfBillingIndicator = this.getSelfBillingIndicator(); strategy.appendField(locator, this, "selfBillingIndicator", buffer, theSelfBillingIndicator, true); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy