oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.SupplierPartyType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.phloc.commons.annotations.ReturnsMutableObject;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.AdditionalAccountIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CustomerAssignedAccountIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.DataSendingCapabilityType;
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Details</ccts:DictionaryEntryName><ccts:Definition>Information about the Supplier Party.</ccts:Definition><ccts:ObjectClass>Supplier Party</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for SupplierPartyType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SupplierPartyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CustomerAssignedAccountID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}AdditionalAccountID" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}DataSendingCapability" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Party" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}DespatchContact" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AccountingContact" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}SellerContact" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SupplierPartyType", propOrder = {
"customerAssignedAccountID",
"additionalAccountID",
"dataSendingCapability",
"party",
"despatchContact",
"accountingContact",
"sellerContact"
})
public class SupplierPartyType implements Serializable
{
@XmlElement(name = "CustomerAssignedAccountID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private CustomerAssignedAccountIDType customerAssignedAccountID;
@XmlElement(name = "AdditionalAccountID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private List additionalAccountID;
@XmlElement(name = "DataSendingCapability", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private DataSendingCapabilityType dataSendingCapability;
@XmlElement(name = "Party")
private PartyType party;
@XmlElement(name = "DespatchContact")
private ContactType despatchContact;
@XmlElement(name = "AccountingContact")
private ContactType accountingContact;
@XmlElement(name = "SellerContact")
private ContactType sellerContact;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public SupplierPartyType() {
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Customer Assigned_ Account Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>The customer's internal identifier for the supplier.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTermQualifier>Customer Assigned</ccts:PropertyTermQualifier><ccts:PropertyTerm>Account Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link CustomerAssignedAccountIDType }
*
*/
@Nullable
public CustomerAssignedAccountIDType getCustomerAssignedAccountID() {
return customerAssignedAccountID;
}
/**
* Sets the value of the customerAssignedAccountID property.
*
* @param value
* allowed object is
* {@link CustomerAssignedAccountIDType }
*
*/
public void setCustomerAssignedAccountID(
@Nullable
CustomerAssignedAccountIDType value) {
this.customerAssignedAccountID = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Additional_ Account Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>The customer's internal identifier for the supplier.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTermQualifier>Additional</ccts:PropertyTermQualifier><ccts:PropertyTerm>Account Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
* Gets the value of the additionalAccountID 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 additionalAccountID property.
*
*
* For example, to add a new item, do as follows:
*
* getAdditionalAccountID().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalAccountIDType }
*
*
*/
@Nonnull
@ReturnsMutableObject(reason = "JAXB implementation style")
public List getAdditionalAccountID() {
if (additionalAccountID == null) {
additionalAccountID = new ArrayList();
}
return this.additionalAccountID;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Data Sending Capability. Text</ccts:DictionaryEntryName><ccts:Definition>Capability to send invoice data via the purchase card provider (VISA/MasterCard/American Express).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTerm>Data Sending Capability</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>The customer's internal identifier for the supplier.</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link DataSendingCapabilityType }
*
*/
@Nullable
public DataSendingCapabilityType getDataSendingCapability() {
return dataSendingCapability;
}
/**
* Sets the value of the dataSendingCapability property.
*
* @param value
* allowed object is
* {@link DataSendingCapabilityType }
*
*/
public void setDataSendingCapability(
@Nullable
DataSendingCapabilityType value) {
this.dataSendingCapability = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Party</ccts:DictionaryEntryName><ccts:Definition>An association to Party.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTerm>Party</ccts:PropertyTerm><ccts:AssociatedObjectClass>Party</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PartyType }
*
*/
@Nullable
public PartyType getParty() {
return party;
}
/**
* Sets the value of the party property.
*
* @param value
* allowed object is
* {@link PartyType }
*
*/
public void setParty(
@Nullable
PartyType value) {
this.party = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Despatch_ Contact. Contact</ccts:DictionaryEntryName><ccts:Definition>An association to Despatch Contact.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTermQualifier>Despatch</ccts:PropertyTermQualifier><ccts:PropertyTerm>Contact</ccts:PropertyTerm><ccts:AssociatedObjectClass>Contact</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ContactType }
*
*/
@Nullable
public ContactType getDespatchContact() {
return despatchContact;
}
/**
* Sets the value of the despatchContact property.
*
* @param value
* allowed object is
* {@link ContactType }
*
*/
public void setDespatchContact(
@Nullable
ContactType value) {
this.despatchContact = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Accounting_ Contact. Contact</ccts:DictionaryEntryName><ccts:Definition>An association to Supplier Accounting Contact.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTermQualifier>Accounting</ccts:PropertyTermQualifier><ccts:PropertyTerm>Contact</ccts:PropertyTerm><ccts:AssociatedObjectClass>Contact</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ContactType }
*
*/
@Nullable
public ContactType getAccountingContact() {
return accountingContact;
}
/**
* Sets the value of the accountingContact property.
*
* @param value
* allowed object is
* {@link ContactType }
*
*/
public void setAccountingContact(
@Nullable
ContactType value) {
this.accountingContact = value;
}
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Supplier Party. Seller_ Contact. Contact</ccts:DictionaryEntryName><ccts:Definition>An association to Seller.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Supplier Party</ccts:ObjectClass><ccts:PropertyTermQualifier>Seller</ccts:PropertyTermQualifier><ccts:PropertyTerm>Contact</ccts:PropertyTerm><ccts:AssociatedObjectClass>Contact</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ContactType }
*
*/
@Nullable
public ContactType getSellerContact() {
return sellerContact;
}
/**
* Sets the value of the sellerContact property.
*
* @param value
* allowed object is
* {@link ContactType }
*
*/
public void setSellerContact(
@Nullable
ContactType value) {
this.sellerContact = value;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public boolean equals(final Object o) {
if (o == this) {
return true;
}
if ((o == null)||(!getClass().equals(o.getClass()))) {
return false;
}
final SupplierPartyType rhs = ((SupplierPartyType) o);
if (!EqualsUtils.equals(customerAssignedAccountID, rhs.customerAssignedAccountID)) {
return false;
}
if (!EqualsUtils.equals(additionalAccountID, rhs.additionalAccountID)) {
return false;
}
if (!EqualsUtils.equals(dataSendingCapability, rhs.dataSendingCapability)) {
return false;
}
if (!EqualsUtils.equals(party, rhs.party)) {
return false;
}
if (!EqualsUtils.equals(despatchContact, rhs.despatchContact)) {
return false;
}
if (!EqualsUtils.equals(accountingContact, rhs.accountingContact)) {
return false;
}
if (!EqualsUtils.equals(sellerContact, rhs.sellerContact)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(customerAssignedAccountID).append(additionalAccountID).append(dataSendingCapability).append(party).append(despatchContact).append(accountingContact).append(sellerContact).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("customerAssignedAccountID", customerAssignedAccountID).append("additionalAccountID", additionalAccountID).append("dataSendingCapability", dataSendingCapability).append("party", party).append("despatchContact", despatchContact).append("accountingContact", accountingContact).append("sellerContact", sellerContact).toString();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param aList
* The new list member to set. May be null
.
*/
public void setAdditionalAccountID(
@Nullable
final List aList) {
additionalAccountID = aList;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if at least one item is contained, false
otherwise.
*/
public boolean hasAdditionalAccountIDEntries() {
return (!getAdditionalAccountID().isEmpty());
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if no item is contained, false
otherwise.
*/
public boolean hasNoAdditionalAccountIDEntries() {
return getAdditionalAccountID().isEmpty();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* The number of contained elements. Always ≥ 0.
*/
@Nonnegative
public int getAdditionalAccountIDCount() {
return getAdditionalAccountID().size();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param index
* The index to retrieve
* @return
* The element at the specified index. May be null
* @throws ArrayIndexOutOfBoundsException
* if the index is invalid!
*/
@Nullable
public AdditionalAccountIDType getAdditionalAccountIDAtIndex(
@Nonnegative
final int index) {
return getAdditionalAccountID().get(index);
}
/**
* Special setter with value of type String
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type DataSendingCapabilityType and never null
*/
@Nonnull
public DataSendingCapabilityType setDataSendingCapability(
@Nullable
final String valueParam) {
DataSendingCapabilityType aObj = getDataSendingCapability();
if (aObj == null) {
aObj = new DataSendingCapabilityType(valueParam);
setDataSendingCapability(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Special setter with value of type String
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @param valueParam
* The value to be set. May be null
.
* @return
* The created intermediary object of type CustomerAssignedAccountIDType and never null
*/
@Nonnull
public CustomerAssignedAccountIDType setCustomerAssignedAccountID(
@Nullable
final String valueParam) {
CustomerAssignedAccountIDType aObj = getCustomerAssignedAccountID();
if (aObj == null) {
aObj = new CustomerAssignedAccountIDType(valueParam);
setCustomerAssignedAccountID(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained CustomerAssignedAccountIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained CustomerAssignedAccountIDType object or null
*/
@Nullable
public String getCustomerAssignedAccountIDValue() {
CustomerAssignedAccountIDType aObj = getCustomerAssignedAccountID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained DataSendingCapabilityType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained DataSendingCapabilityType object or null
*/
@Nullable
public String getDataSendingCapabilityValue() {
DataSendingCapabilityType aObj = getDataSendingCapability();
return ((aObj == null)?null:aObj.getValue());
}
}