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

no.digipost.org.unece.cefact.namespaces.standardbusinessdocumentheader.CorrelationInformation 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: 2021.12.01 at 12:54:39 PM UTC 
//


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

import java.time.ZonedDateTime;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import no.digipost.xsd.jaxb.XSDateTimeAdapter;
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 CorrelationInformation complex type. * *

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

 * <complexType name="CorrelationInformation">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="RequestingDocumentCreationDateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="RequestingDocumentInstanceIdentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ExpectedResponseDateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CorrelationInformation", propOrder = { "requestingDocumentCreationDateTime", "requestingDocumentInstanceIdentifier", "expectedResponseDateTime" }) public class CorrelationInformation implements Equals2, HashCode2, ToString2 { @XmlElement(name = "RequestingDocumentCreationDateTime", type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime requestingDocumentCreationDateTime; @XmlElement(name = "RequestingDocumentInstanceIdentifier") protected String requestingDocumentInstanceIdentifier; @XmlElement(name = "ExpectedResponseDateTime", type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime expectedResponseDateTime; /** * Default no-arg constructor * */ public CorrelationInformation() { super(); } /** * Fully-initialising value constructor * */ public CorrelationInformation(final ZonedDateTime requestingDocumentCreationDateTime, final String requestingDocumentInstanceIdentifier, final ZonedDateTime expectedResponseDateTime) { this.requestingDocumentCreationDateTime = requestingDocumentCreationDateTime; this.requestingDocumentInstanceIdentifier = requestingDocumentInstanceIdentifier; this.expectedResponseDateTime = expectedResponseDateTime; } /** * Gets the value of the requestingDocumentCreationDateTime property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getRequestingDocumentCreationDateTime() { return requestingDocumentCreationDateTime; } /** * Sets the value of the requestingDocumentCreationDateTime property. * * @param value * allowed object is * {@link String } * */ public void setRequestingDocumentCreationDateTime(ZonedDateTime value) { this.requestingDocumentCreationDateTime = value; } /** * Gets the value of the requestingDocumentInstanceIdentifier property. * * @return * possible object is * {@link String } * */ public String getRequestingDocumentInstanceIdentifier() { return requestingDocumentInstanceIdentifier; } /** * Sets the value of the requestingDocumentInstanceIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setRequestingDocumentInstanceIdentifier(String value) { this.requestingDocumentInstanceIdentifier = value; } /** * Gets the value of the expectedResponseDateTime property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getExpectedResponseDateTime() { return expectedResponseDateTime; } /** * Sets the value of the expectedResponseDateTime property. * * @param value * allowed object is * {@link String } * */ public void setExpectedResponseDateTime(ZonedDateTime value) { this.expectedResponseDateTime = 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) { { ZonedDateTime theRequestingDocumentCreationDateTime; theRequestingDocumentCreationDateTime = this.getRequestingDocumentCreationDateTime(); strategy.appendField(locator, this, "requestingDocumentCreationDateTime", buffer, theRequestingDocumentCreationDateTime, (this.requestingDocumentCreationDateTime!= null)); } { String theRequestingDocumentInstanceIdentifier; theRequestingDocumentInstanceIdentifier = this.getRequestingDocumentInstanceIdentifier(); strategy.appendField(locator, this, "requestingDocumentInstanceIdentifier", buffer, theRequestingDocumentInstanceIdentifier, (this.requestingDocumentInstanceIdentifier!= null)); } { ZonedDateTime theExpectedResponseDateTime; theExpectedResponseDateTime = this.getExpectedResponseDateTime(); strategy.appendField(locator, this, "expectedResponseDateTime", buffer, theExpectedResponseDateTime, (this.expectedResponseDateTime!= 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 CorrelationInformation that = ((CorrelationInformation) object); { ZonedDateTime lhsRequestingDocumentCreationDateTime; lhsRequestingDocumentCreationDateTime = this.getRequestingDocumentCreationDateTime(); ZonedDateTime rhsRequestingDocumentCreationDateTime; rhsRequestingDocumentCreationDateTime = that.getRequestingDocumentCreationDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "requestingDocumentCreationDateTime", lhsRequestingDocumentCreationDateTime), LocatorUtils.property(thatLocator, "requestingDocumentCreationDateTime", rhsRequestingDocumentCreationDateTime), lhsRequestingDocumentCreationDateTime, rhsRequestingDocumentCreationDateTime, (this.requestingDocumentCreationDateTime!= null), (that.requestingDocumentCreationDateTime!= null))) { return false; } } { String lhsRequestingDocumentInstanceIdentifier; lhsRequestingDocumentInstanceIdentifier = this.getRequestingDocumentInstanceIdentifier(); String rhsRequestingDocumentInstanceIdentifier; rhsRequestingDocumentInstanceIdentifier = that.getRequestingDocumentInstanceIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "requestingDocumentInstanceIdentifier", lhsRequestingDocumentInstanceIdentifier), LocatorUtils.property(thatLocator, "requestingDocumentInstanceIdentifier", rhsRequestingDocumentInstanceIdentifier), lhsRequestingDocumentInstanceIdentifier, rhsRequestingDocumentInstanceIdentifier, (this.requestingDocumentInstanceIdentifier!= null), (that.requestingDocumentInstanceIdentifier!= null))) { return false; } } { ZonedDateTime lhsExpectedResponseDateTime; lhsExpectedResponseDateTime = this.getExpectedResponseDateTime(); ZonedDateTime rhsExpectedResponseDateTime; rhsExpectedResponseDateTime = that.getExpectedResponseDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "expectedResponseDateTime", lhsExpectedResponseDateTime), LocatorUtils.property(thatLocator, "expectedResponseDateTime", rhsExpectedResponseDateTime), lhsExpectedResponseDateTime, rhsExpectedResponseDateTime, (this.expectedResponseDateTime!= null), (that.expectedResponseDateTime!= 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; { ZonedDateTime theRequestingDocumentCreationDateTime; theRequestingDocumentCreationDateTime = this.getRequestingDocumentCreationDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestingDocumentCreationDateTime", theRequestingDocumentCreationDateTime), currentHashCode, theRequestingDocumentCreationDateTime, (this.requestingDocumentCreationDateTime!= null)); } { String theRequestingDocumentInstanceIdentifier; theRequestingDocumentInstanceIdentifier = this.getRequestingDocumentInstanceIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestingDocumentInstanceIdentifier", theRequestingDocumentInstanceIdentifier), currentHashCode, theRequestingDocumentInstanceIdentifier, (this.requestingDocumentInstanceIdentifier!= null)); } { ZonedDateTime theExpectedResponseDateTime; theExpectedResponseDateTime = this.getExpectedResponseDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expectedResponseDateTime", theExpectedResponseDateTime), currentHashCode, theExpectedResponseDateTime, (this.expectedResponseDateTime!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public CorrelationInformation withRequestingDocumentCreationDateTime(ZonedDateTime value) { setRequestingDocumentCreationDateTime(value); return this; } public CorrelationInformation withRequestingDocumentInstanceIdentifier(String value) { setRequestingDocumentInstanceIdentifier(value); return this; } public CorrelationInformation withExpectedResponseDateTime(ZonedDateTime value) { setExpectedResponseDateTime(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy