com.premiumminds.billy.portugal.services.export.saftpt.v1_04_01.schema.ShippingPointStructure 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_04_01.schema;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
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 ShippingPointStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ShippingPointStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.04_01}DeliveryID" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.04_01}DeliveryDate" minOccurs="0"/>
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.04_01}WarehouseID" minOccurs="0"/>
* <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.04_01}LocationID" minOccurs="0"/>
* </sequence>
* <element ref="{urn:OECD:StandardAuditFile-Tax:PT_1.04_01}Address" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ShippingPointStructure", propOrder = {
"deliveryID",
"deliveryDate",
"warehouseIDAndLocationID",
"address"
})
public class ShippingPointStructure implements ToString2
{
@XmlElement(name = "DeliveryID")
protected List deliveryID;
@XmlElement(name = "DeliveryDate")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar deliveryDate;
@XmlElementRefs({
@XmlElementRef(name = "WarehouseID", namespace = "urn:OECD:StandardAuditFile-Tax:PT_1.04_01", type = JAXBElement.class, required = false),
@XmlElementRef(name = "LocationID", namespace = "urn:OECD:StandardAuditFile-Tax:PT_1.04_01", type = JAXBElement.class, required = false)
})
protected List> warehouseIDAndLocationID;
@XmlElement(name = "Address")
protected AddressStructure address;
/**
* Gets the value of the deliveryID 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 deliveryID property.
*
*
* For example, to add a new item, do as follows:
*
* getDeliveryID().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getDeliveryID() {
if (deliveryID == null) {
deliveryID = new ArrayList();
}
return this.deliveryID;
}
/**
* Gets the value of the deliveryDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDeliveryDate() {
return deliveryDate;
}
/**
* Sets the value of the deliveryDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDeliveryDate(XMLGregorianCalendar value) {
this.deliveryDate = value;
}
/**
* Gets the value of the warehouseIDAndLocationID 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 warehouseIDAndLocationID property.
*
*
* For example, to add a new item, do as follows:
*
* getWarehouseIDAndLocationID().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*
*/
public List> getWarehouseIDAndLocationID() {
if (warehouseIDAndLocationID == null) {
warehouseIDAndLocationID = new ArrayList>();
}
return this.warehouseIDAndLocationID;
}
/**
* Gets the value of the address property.
*
* @return
* possible object is
* {@link AddressStructure }
*
*/
public AddressStructure getAddress() {
return address;
}
/**
* Sets the value of the address property.
*
* @param value
* allowed object is
* {@link AddressStructure }
*
*/
public void setAddress(AddressStructure value) {
this.address = 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) {
{
List theDeliveryID;
theDeliveryID = (((this.deliveryID!= null)&&(!this.deliveryID.isEmpty()))?this.getDeliveryID():null);
strategy.appendField(locator, this, "deliveryID", buffer, theDeliveryID, ((this.deliveryID!= null)&&(!this.deliveryID.isEmpty())));
}
{
XMLGregorianCalendar theDeliveryDate;
theDeliveryDate = this.getDeliveryDate();
strategy.appendField(locator, this, "deliveryDate", buffer, theDeliveryDate, (this.deliveryDate!= null));
}
{
List> theWarehouseIDAndLocationID;
theWarehouseIDAndLocationID = (((this.warehouseIDAndLocationID!= null)&&(!this.warehouseIDAndLocationID.isEmpty()))?this.getWarehouseIDAndLocationID():null);
strategy.appendField(locator, this, "warehouseIDAndLocationID", buffer, theWarehouseIDAndLocationID, ((this.warehouseIDAndLocationID!= null)&&(!this.warehouseIDAndLocationID.isEmpty())));
}
{
AddressStructure theAddress;
theAddress = this.getAddress();
strategy.appendField(locator, this, "address", buffer, theAddress, (this.address!= null));
}
return buffer;
}
}