
org.unece.cefact.namespaces.standardbusinessdocumentheader.ContactInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
package 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.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString
{
@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 ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
String theContact;
theContact = this.getContact();
strategy.appendField(locator, this, "contact", buffer, theContact);
}
{
String theEmailAddress;
theEmailAddress = this.getEmailAddress();
strategy.appendField(locator, this, "emailAddress", buffer, theEmailAddress);
}
{
String theFaxNumber;
theFaxNumber = this.getFaxNumber();
strategy.appendField(locator, this, "faxNumber", buffer, theFaxNumber);
}
{
String theTelephoneNumber;
theTelephoneNumber = this.getTelephoneNumber();
strategy.appendField(locator, this, "telephoneNumber", buffer, theTelephoneNumber);
}
{
String theContactTypeIdentifier;
theContactTypeIdentifier = this.getContactTypeIdentifier();
strategy.appendField(locator, this, "contactTypeIdentifier", buffer, theContactTypeIdentifier);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof ContactInformation)) {
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)) {
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)) {
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)) {
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)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theContact;
theContact = this.getContact();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact);
}
{
String theEmailAddress;
theEmailAddress = this.getEmailAddress();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emailAddress", theEmailAddress), currentHashCode, theEmailAddress);
}
{
String theFaxNumber;
theFaxNumber = this.getFaxNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faxNumber", theFaxNumber), currentHashCode, theFaxNumber);
}
{
String theTelephoneNumber;
theTelephoneNumber = this.getTelephoneNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "telephoneNumber", theTelephoneNumber), currentHashCode, theTelephoneNumber);
}
{
String theContactTypeIdentifier;
theContactTypeIdentifier = this.getContactTypeIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contactTypeIdentifier", theContactTypeIdentifier), currentHashCode, theContactTypeIdentifier);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
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 - 2025 Weber Informatics LLC | Privacy Policy