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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PersonType 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.FamilyNameType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.FirstNameType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.JobTitleType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MiddleNameType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NameSuffixType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.OrganizationDepartmentType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TitleType;


/**
 * 
 * 
 * <?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>Person. Details</ccts:DictionaryEntryName><ccts:Definition>Information about a person.</ccts:Definition><ccts:ObjectClass>Person</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for PersonType complex type. * *

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

 * <complexType name="PersonType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}FirstName" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}FamilyName" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Title" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MiddleName" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}NameSuffix" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}JobTitle" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}OrganizationDepartment" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PersonType", propOrder = { "firstName", "familyName", "title", "middleName", "nameSuffix", "jobTitle", "organizationDepartment" }) public class PersonType implements Serializable { @XmlElement(name = "FirstName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private FirstNameType firstName; @XmlElement(name = "FamilyName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private FamilyNameType familyName; @XmlElement(name = "Title", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private TitleType title; @XmlElement(name = "MiddleName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private MiddleNameType middleName; @XmlElement(name = "NameSuffix", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private NameSuffixType nameSuffix; @XmlElement(name = "JobTitle", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private JobTitleType jobTitle; @XmlElement(name = "OrganizationDepartment", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private OrganizationDepartmentType organizationDepartment; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public PersonType() { } /** * *
     * <?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>Person. First_ Name. Name</ccts:DictionaryEntryName><ccts:Definition>A person's forename or first name.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTermQualifier>First</ccts:PropertyTermQualifier><ccts:PropertyTerm>Name</ccts:PropertyTerm><ccts:RepresentationTerm>Name</ccts:RepresentationTerm><ccts:DataType>Name. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link FirstNameType } * */ @Nullable public FirstNameType getFirstName() { return firstName; } /** * Sets the value of the firstName property. * * @param value * allowed object is * {@link FirstNameType } * */ public void setFirstName( @Nullable FirstNameType value) { this.firstName = 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>Person. Family_ Name. Name</ccts:DictionaryEntryName><ccts:Definition>A person's surname or family name.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTermQualifier>Family</ccts:PropertyTermQualifier><ccts:PropertyTerm>Name</ccts:PropertyTerm><ccts:RepresentationTerm>Name</ccts:RepresentationTerm><ccts:DataType>Name. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link FamilyNameType } * */ @Nullable public FamilyNameType getFamilyName() { return familyName; } /** * Sets the value of the familyName property. * * @param value * allowed object is * {@link FamilyNameType } * */ public void setFamilyName( @Nullable FamilyNameType value) { this.familyName = 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>Person. Title. Text</ccts:DictionaryEntryName><ccts:Definition>A person's title of address, e.g., Mr, Ms, Dr, Sir.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTerm>Title</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link TitleType } * */ @Nullable public TitleType getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link TitleType } * */ public void setTitle( @Nullable TitleType value) { this.title = 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>Person. Middle_ Name. Name</ccts:DictionaryEntryName><ccts:Definition>A person's middle name(s) and/or initial(s).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTermQualifier>Middle</ccts:PropertyTermQualifier><ccts:PropertyTerm>Name</ccts:PropertyTerm><ccts:RepresentationTerm>Name</ccts:RepresentationTerm><ccts:DataType>Name. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link MiddleNameType } * */ @Nullable public MiddleNameType getMiddleName() { return middleName; } /** * Sets the value of the middleName property. * * @param value * allowed object is * {@link MiddleNameType } * */ public void setMiddleName( @Nullable MiddleNameType value) { this.middleName = 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>Person. Name Suffix. Text</ccts:DictionaryEntryName><ccts:Definition>A suffix to a person's name, e.g., PhD, OBE, Jnr.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTerm>Name Suffix</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link NameSuffixType } * */ @Nullable public NameSuffixType getNameSuffix() { return nameSuffix; } /** * Sets the value of the nameSuffix property. * * @param value * allowed object is * {@link NameSuffixType } * */ public void setNameSuffix( @Nullable NameSuffixType value) { this.nameSuffix = 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>Person. Job Title. Text</ccts:DictionaryEntryName><ccts:Definition>A person's job title within an organization (for a particular role).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTerm>Job Title</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link JobTitleType } * */ @Nullable public JobTitleType getJobTitle() { return jobTitle; } /** * Sets the value of the jobTitle property. * * @param value * allowed object is * {@link JobTitleType } * */ public void setJobTitle( @Nullable JobTitleType value) { this.jobTitle = 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>Person. Organization_ Department. Text</ccts:DictionaryEntryName><ccts:Definition>The department or subdivision of an organization that the person belongs to (for a particular role).</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Person</ccts:ObjectClass><ccts:PropertyTermQualifier>Organization</ccts:PropertyTermQualifier><ccts:PropertyTerm>Department</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link OrganizationDepartmentType } * */ @Nullable public OrganizationDepartmentType getOrganizationDepartment() { return organizationDepartment; } /** * Sets the value of the organizationDepartment property. * * @param value * allowed object is * {@link OrganizationDepartmentType } * */ public void setOrganizationDepartment( @Nullable OrganizationDepartmentType value) { this.organizationDepartment = 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 PersonType rhs = ((PersonType) o); if (!EqualsUtils.equals(firstName, rhs.firstName)) { return false; } if (!EqualsUtils.equals(familyName, rhs.familyName)) { return false; } if (!EqualsUtils.equals(title, rhs.title)) { return false; } if (!EqualsUtils.equals(middleName, rhs.middleName)) { return false; } if (!EqualsUtils.equals(nameSuffix, rhs.nameSuffix)) { return false; } if (!EqualsUtils.equals(jobTitle, rhs.jobTitle)) { return false; } if (!EqualsUtils.equals(organizationDepartment, rhs.organizationDepartment)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(firstName).append(familyName).append(title).append(middleName).append(nameSuffix).append(jobTitle).append(organizationDepartment).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("firstName", firstName).append("familyName", familyName).append("title", title).append("middleName", middleName).append("nameSuffix", nameSuffix).append("jobTitle", jobTitle).append("organizationDepartment", organizationDepartment).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 TitleType and never null */ @Nonnull public TitleType setTitle( @Nullable final String valueParam) { TitleType aObj = getTitle(); if (aObj == null) { aObj = new TitleType(valueParam); setTitle(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 NameSuffixType and never null */ @Nonnull public NameSuffixType setNameSuffix( @Nullable final String valueParam) { NameSuffixType aObj = getNameSuffix(); if (aObj == null) { aObj = new NameSuffixType(valueParam); setNameSuffix(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 JobTitleType and never null */ @Nonnull public JobTitleType setJobTitle( @Nullable final String valueParam) { JobTitleType aObj = getJobTitle(); if (aObj == null) { aObj = new JobTitleType(valueParam); setJobTitle(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 OrganizationDepartmentType and never null */ @Nonnull public OrganizationDepartmentType setOrganizationDepartment( @Nullable final String valueParam) { OrganizationDepartmentType aObj = getOrganizationDepartment(); if (aObj == null) { aObj = new OrganizationDepartmentType(valueParam); setOrganizationDepartment(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 FirstNameType and never null */ @Nonnull public FirstNameType setFirstName( @Nullable final String valueParam) { FirstNameType aObj = getFirstName(); if (aObj == null) { aObj = new FirstNameType(valueParam); setFirstName(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 FamilyNameType and never null */ @Nonnull public FamilyNameType setFamilyName( @Nullable final String valueParam) { FamilyNameType aObj = getFamilyName(); if (aObj == null) { aObj = new FamilyNameType(valueParam); setFamilyName(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 MiddleNameType and never null */ @Nonnull public MiddleNameType setMiddleName( @Nullable final String valueParam) { MiddleNameType aObj = getMiddleName(); if (aObj == null) { aObj = new MiddleNameType(valueParam); setMiddleName(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained FirstNameType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained FirstNameType object or null */ @Nullable public String getFirstNameValue() { FirstNameType aObj = getFirstName(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained FamilyNameType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained FamilyNameType object or null */ @Nullable public String getFamilyNameValue() { FamilyNameType aObj = getFamilyName(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained TitleType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TitleType object or null */ @Nullable public String getTitleValue() { TitleType aObj = getTitle(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained MiddleNameType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained MiddleNameType object or null */ @Nullable public String getMiddleNameValue() { MiddleNameType aObj = getMiddleName(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained NameSuffixType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained NameSuffixType object or null */ @Nullable public String getNameSuffixValue() { NameSuffixType aObj = getNameSuffix(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained JobTitleType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained JobTitleType object or null */ @Nullable public String getJobTitleValue() { JobTitleType aObj = getJobTitle(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained OrganizationDepartmentType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained OrganizationDepartmentType object or null */ @Nullable public String getOrganizationDepartmentValue() { OrganizationDepartmentType aObj = getOrganizationDepartment(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy