oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PartyLegalEntityType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
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.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CompanyIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.RegistrationNameType;
/**
*
*
* <?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>Party Legal Entity. Details</ccts:DictionaryEntryName><ccts:Definition>Information directly relating to the legal registration that is applicable to a party.</ccts:Definition><ccts:ObjectClass>Party Legal Entity</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for PartyLegalEntityType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PartyLegalEntityType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}RegistrationName" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CompanyID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}RegistrationAddress" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}CorporateRegistrationScheme" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyLegalEntityType", propOrder = {
"registrationName",
"companyID",
"registrationAddress",
"corporateRegistrationScheme"
})
public class PartyLegalEntityType implements Serializable
{
@XmlElement(name = "RegistrationName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private RegistrationNameType registrationName;
@XmlElement(name = "CompanyID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private CompanyIDType companyID;
@XmlElement(name = "RegistrationAddress")
private AddressType registrationAddress;
@XmlElement(name = "CorporateRegistrationScheme")
private CorporateRegistrationSchemeType corporateRegistrationScheme;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public PartyLegalEntityType() {
}
/**
*
*
* <?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>Party Legal Entity. Registration_ Name. Name</ccts:DictionaryEntryName><ccts:Definition>The name of a party as registered with the legal authority.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Party Legal Entity</ccts:ObjectClass><ccts:PropertyTermQualifier>Registration</ccts:PropertyTermQualifier><ccts:PropertyTerm>Name</ccts:PropertyTerm><ccts:RepresentationTerm>Name</ccts:RepresentationTerm><ccts:DataType>Name. Type</ccts:DataType><ccts:Examples>"Microsoft Corporation"</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link RegistrationNameType }
*
*/
@Nullable
public RegistrationNameType getRegistrationName() {
return registrationName;
}
/**
* Sets the value of the registrationName property.
*
* @param value
* allowed object is
* {@link RegistrationNameType }
*
*/
public void setRegistrationName(
@Nullable
RegistrationNameType value) {
this.registrationName = 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>Party Legal Entity. Company Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies a company as registered with the company registration scheme.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Party Legal Entity</ccts:ObjectClass><ccts:PropertyTerm>Company Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Business Registration Number, Company Number</ccts:AlternativeBusinessTerms><ccts:Examples>"3556625"</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link CompanyIDType }
*
*/
@Nullable
public CompanyIDType getCompanyID() {
return companyID;
}
/**
* Sets the value of the companyID property.
*
* @param value
* allowed object is
* {@link CompanyIDType }
*
*/
public void setCompanyID(
@Nullable
CompanyIDType value) {
this.companyID = 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>Party Legal Entity. Registration_ Address. Address</ccts:DictionaryEntryName><ccts:Definition>Associates with the registered address of the party within a Corporate Registration Scheme.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Party Legal Entity</ccts:ObjectClass><ccts:PropertyTermQualifier>Registration</ccts:PropertyTermQualifier><ccts:PropertyTerm>Address</ccts:PropertyTerm><ccts:AssociatedObjectClass>Address</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link AddressType }
*
*/
@Nullable
public AddressType getRegistrationAddress() {
return registrationAddress;
}
/**
* Sets the value of the registrationAddress property.
*
* @param value
* allowed object is
* {@link AddressType }
*
*/
public void setRegistrationAddress(
@Nullable
AddressType value) {
this.registrationAddress = 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>Party Legal Entity. Corporate Registration Scheme</ccts:DictionaryEntryName><ccts:Definition>Associates the party with a Corporate Registration Scheme.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Party Legal Entity</ccts:ObjectClass><ccts:PropertyTerm>Corporate Registration Scheme</ccts:PropertyTerm><ccts:AssociatedObjectClass>Corporate Registration Scheme</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link CorporateRegistrationSchemeType }
*
*/
@Nullable
public CorporateRegistrationSchemeType getCorporateRegistrationScheme() {
return corporateRegistrationScheme;
}
/**
* Sets the value of the corporateRegistrationScheme property.
*
* @param value
* allowed object is
* {@link CorporateRegistrationSchemeType }
*
*/
public void setCorporateRegistrationScheme(
@Nullable
CorporateRegistrationSchemeType value) {
this.corporateRegistrationScheme = 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 PartyLegalEntityType rhs = ((PartyLegalEntityType) o);
if (!EqualsUtils.equals(registrationName, rhs.registrationName)) {
return false;
}
if (!EqualsUtils.equals(companyID, rhs.companyID)) {
return false;
}
if (!EqualsUtils.equals(registrationAddress, rhs.registrationAddress)) {
return false;
}
if (!EqualsUtils.equals(corporateRegistrationScheme, rhs.corporateRegistrationScheme)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(registrationName).append(companyID).append(registrationAddress).append(corporateRegistrationScheme).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("registrationName", registrationName).append("companyID", companyID).append("registrationAddress", registrationAddress).append("corporateRegistrationScheme", corporateRegistrationScheme).toString();
}
/**
* 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 RegistrationNameType and never null
*/
@Nonnull
public RegistrationNameType setRegistrationName(
@Nullable
final String valueParam) {
RegistrationNameType aObj = getRegistrationName();
if (aObj == null) {
aObj = new RegistrationNameType(valueParam);
setRegistrationName(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 CompanyIDType and never null
*/
@Nonnull
public CompanyIDType setCompanyID(
@Nullable
final String valueParam) {
CompanyIDType aObj = getCompanyID();
if (aObj == null) {
aObj = new CompanyIDType(valueParam);
setCompanyID(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained RegistrationNameType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained RegistrationNameType object or null
*/
@Nullable
public String getRegistrationNameValue() {
RegistrationNameType aObj = getRegistrationName();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained CompanyIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained CompanyIDType object or null
*/
@Nullable
public String getCompanyIDValue() {
CompanyIDType aObj = getCompanyID();
return ((aObj == null)?null:aObj.getValue());
}
}