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

no.digipost.org.unece.cefact.namespaces.standardbusinessdocumentheader.ContactInformation 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: 2022.11.16 at 09:22:53 AM UTC 
//


package no.digipost.org.unece.cefact.namespaces.standardbusinessdocumentheader;

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 org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
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;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for ContactInformation complex type. * *

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

 * <complexType name="ContactInformation">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Contact" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="EmailAddress" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="FaxNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="TelephoneNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ContactTypeIdentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ContactInformation", propOrder = { "contact", "emailAddress", "faxNumber", "telephoneNumber", "contactTypeIdentifier" }) public class ContactInformation implements Equals2, HashCode2, ToString2 { @XmlElement(name = "Contact", required = true) protected String contact; @XmlElement(name = "EmailAddress") protected String emailAddress; @XmlElement(name = "FaxNumber") protected String faxNumber; @XmlElement(name = "TelephoneNumber") protected String telephoneNumber; @XmlElement(name = "ContactTypeIdentifier") protected String contactTypeIdentifier; /** * Default no-arg constructor * */ public ContactInformation() { super(); } /** * Fully-initialising value constructor * */ public ContactInformation(final String contact, final String emailAddress, final String faxNumber, final String telephoneNumber, final String contactTypeIdentifier) { this.contact = contact; this.emailAddress = emailAddress; this.faxNumber = faxNumber; this.telephoneNumber = telephoneNumber; this.contactTypeIdentifier = contactTypeIdentifier; } /** * 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 emailAddress property. * * @return * possible object is * {@link String } * */ public String getEmailAddress() { return emailAddress; } /** * Sets the value of the emailAddress property. * * @param value * allowed object is * {@link String } * */ public void setEmailAddress(String value) { this.emailAddress = value; } /** * Gets the value of the faxNumber property. * * @return * possible object is * {@link String } * */ public String getFaxNumber() { return faxNumber; } /** * Sets the value of the faxNumber property. * * @param value * allowed object is * {@link String } * */ public void setFaxNumber(String value) { this.faxNumber = value; } /** * Gets the value of the telephoneNumber property. * * @return * possible object is * {@link String } * */ public String getTelephoneNumber() { return telephoneNumber; } /** * Sets the value of the telephoneNumber property. * * @param value * allowed object is * {@link String } * */ public void setTelephoneNumber(String value) { this.telephoneNumber = value; } /** * Gets the value of the contactTypeIdentifier property. * * @return * possible object is * {@link String } * */ public String getContactTypeIdentifier() { return contactTypeIdentifier; } /** * Sets the value of the contactTypeIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setContactTypeIdentifier(String value) { this.contactTypeIdentifier = 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 theContact; theContact = this.getContact(); strategy.appendField(locator, this, "contact", buffer, theContact, (this.contact!= null)); } { String theEmailAddress; theEmailAddress = this.getEmailAddress(); strategy.appendField(locator, this, "emailAddress", buffer, theEmailAddress, (this.emailAddress!= null)); } { String theFaxNumber; theFaxNumber = this.getFaxNumber(); strategy.appendField(locator, this, "faxNumber", buffer, theFaxNumber, (this.faxNumber!= null)); } { String theTelephoneNumber; theTelephoneNumber = this.getTelephoneNumber(); strategy.appendField(locator, this, "telephoneNumber", buffer, theTelephoneNumber, (this.telephoneNumber!= null)); } { String theContactTypeIdentifier; theContactTypeIdentifier = this.getContactTypeIdentifier(); strategy.appendField(locator, this, "contactTypeIdentifier", buffer, theContactTypeIdentifier, (this.contactTypeIdentifier!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final ContactInformation that = ((ContactInformation) object); { String lhsContact; lhsContact = this.getContact(); String rhsContact; rhsContact = that.getContact(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact, (this.contact!= null), (that.contact!= null))) { return false; } } { String lhsEmailAddress; lhsEmailAddress = this.getEmailAddress(); String rhsEmailAddress; rhsEmailAddress = that.getEmailAddress(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emailAddress", lhsEmailAddress), LocatorUtils.property(thatLocator, "emailAddress", rhsEmailAddress), lhsEmailAddress, rhsEmailAddress, (this.emailAddress!= null), (that.emailAddress!= null))) { return false; } } { String lhsFaxNumber; lhsFaxNumber = this.getFaxNumber(); String rhsFaxNumber; rhsFaxNumber = that.getFaxNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "faxNumber", lhsFaxNumber), LocatorUtils.property(thatLocator, "faxNumber", rhsFaxNumber), lhsFaxNumber, rhsFaxNumber, (this.faxNumber!= null), (that.faxNumber!= null))) { return false; } } { String lhsTelephoneNumber; lhsTelephoneNumber = this.getTelephoneNumber(); String rhsTelephoneNumber; rhsTelephoneNumber = that.getTelephoneNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "telephoneNumber", lhsTelephoneNumber), LocatorUtils.property(thatLocator, "telephoneNumber", rhsTelephoneNumber), lhsTelephoneNumber, rhsTelephoneNumber, (this.telephoneNumber!= null), (that.telephoneNumber!= null))) { return false; } } { String lhsContactTypeIdentifier; lhsContactTypeIdentifier = this.getContactTypeIdentifier(); String rhsContactTypeIdentifier; rhsContactTypeIdentifier = that.getContactTypeIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contactTypeIdentifier", lhsContactTypeIdentifier), LocatorUtils.property(thatLocator, "contactTypeIdentifier", rhsContactTypeIdentifier), lhsContactTypeIdentifier, rhsContactTypeIdentifier, (this.contactTypeIdentifier!= null), (that.contactTypeIdentifier!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theContact; theContact = this.getContact(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact, (this.contact!= null)); } { String theEmailAddress; theEmailAddress = this.getEmailAddress(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emailAddress", theEmailAddress), currentHashCode, theEmailAddress, (this.emailAddress!= null)); } { String theFaxNumber; theFaxNumber = this.getFaxNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faxNumber", theFaxNumber), currentHashCode, theFaxNumber, (this.faxNumber!= null)); } { String theTelephoneNumber; theTelephoneNumber = this.getTelephoneNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "telephoneNumber", theTelephoneNumber), currentHashCode, theTelephoneNumber, (this.telephoneNumber!= null)); } { String theContactTypeIdentifier; theContactTypeIdentifier = this.getContactTypeIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contactTypeIdentifier", theContactTypeIdentifier), currentHashCode, theContactTypeIdentifier, (this.contactTypeIdentifier!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public ContactInformation withContact(String value) { setContact(value); return this; } public ContactInformation withEmailAddress(String value) { setEmailAddress(value); return this; } public ContactInformation withFaxNumber(String value) { setFaxNumber(value); return this; } public ContactInformation withTelephoneNumber(String value) { setTelephoneNumber(value); return this; } public ContactInformation withContactTypeIdentifier(String value) { setContactTypeIdentifier(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy