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

no.digipost.org.unece.cefact.namespaces.standardbusinessdocumentheader.DocumentIdentification Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.11.06 at 01:54:33 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 DocumentIdentification complex type. * *

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

 * <complexType name="DocumentIdentification">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Standard" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="TypeVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="InstanceIdentifier" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="MultipleType" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="CreationDateAndTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DocumentIdentification", propOrder = { "standard", "typeVersion", "instanceIdentifier", "type", "multipleType", "creationDateAndTime" }) public class DocumentIdentification implements Equals2, HashCode2, ToString2 { @XmlElement(name = "Standard", required = true) protected String standard; @XmlElement(name = "TypeVersion", required = true) protected String typeVersion; @XmlElement(name = "InstanceIdentifier", required = true) protected String instanceIdentifier; @XmlElement(name = "Type", required = true) protected String type; @XmlElement(name = "MultipleType") protected Boolean multipleType; @XmlElement(name = "CreationDateAndTime", required = true, type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime creationDateAndTime; /** * Default no-arg constructor * */ public DocumentIdentification() { super(); } /** * Fully-initialising value constructor * */ public DocumentIdentification(final String standard, final String typeVersion, final String instanceIdentifier, final String type, final Boolean multipleType, final ZonedDateTime creationDateAndTime) { this.standard = standard; this.typeVersion = typeVersion; this.instanceIdentifier = instanceIdentifier; this.type = type; this.multipleType = multipleType; this.creationDateAndTime = creationDateAndTime; } /** * Gets the value of the standard property. * * @return * possible object is * {@link String } * */ public String getStandard() { return standard; } /** * Sets the value of the standard property. * * @param value * allowed object is * {@link String } * */ public void setStandard(String value) { this.standard = value; } /** * Gets the value of the typeVersion property. * * @return * possible object is * {@link String } * */ public String getTypeVersion() { return typeVersion; } /** * Sets the value of the typeVersion property. * * @param value * allowed object is * {@link String } * */ public void setTypeVersion(String value) { this.typeVersion = value; } /** * Gets the value of the instanceIdentifier property. * * @return * possible object is * {@link String } * */ public String getInstanceIdentifier() { return instanceIdentifier; } /** * Sets the value of the instanceIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setInstanceIdentifier(String value) { this.instanceIdentifier = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the multipleType property. * * @return * possible object is * {@link Boolean } * */ public Boolean getMultipleType() { return multipleType; } /** * Sets the value of the multipleType property. * * @param value * allowed object is * {@link Boolean } * */ public void setMultipleType(Boolean value) { this.multipleType = value; } /** * Gets the value of the creationDateAndTime property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getCreationDateAndTime() { return creationDateAndTime; } /** * Sets the value of the creationDateAndTime property. * * @param value * allowed object is * {@link String } * */ public void setCreationDateAndTime(ZonedDateTime value) { this.creationDateAndTime = value; } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override 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; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theStandard; theStandard = this.getStandard(); strategy.appendField(locator, this, "standard", buffer, theStandard, (this.standard!= null)); } { String theTypeVersion; theTypeVersion = this.getTypeVersion(); strategy.appendField(locator, this, "typeVersion", buffer, theTypeVersion, (this.typeVersion!= null)); } { String theInstanceIdentifier; theInstanceIdentifier = this.getInstanceIdentifier(); strategy.appendField(locator, this, "instanceIdentifier", buffer, theInstanceIdentifier, (this.instanceIdentifier!= null)); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { Boolean theMultipleType; theMultipleType = this.getMultipleType(); strategy.appendField(locator, this, "multipleType", buffer, theMultipleType, (this.multipleType!= null)); } { ZonedDateTime theCreationDateAndTime; theCreationDateAndTime = this.getCreationDateAndTime(); strategy.appendField(locator, this, "creationDateAndTime", buffer, theCreationDateAndTime, (this.creationDateAndTime!= null)); } return buffer; } @Override 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 DocumentIdentification that = ((DocumentIdentification) object); { String lhsStandard; lhsStandard = this.getStandard(); String rhsStandard; rhsStandard = that.getStandard(); if (!strategy.equals(LocatorUtils.property(thisLocator, "standard", lhsStandard), LocatorUtils.property(thatLocator, "standard", rhsStandard), lhsStandard, rhsStandard, (this.standard!= null), (that.standard!= null))) { return false; } } { String lhsTypeVersion; lhsTypeVersion = this.getTypeVersion(); String rhsTypeVersion; rhsTypeVersion = that.getTypeVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "typeVersion", lhsTypeVersion), LocatorUtils.property(thatLocator, "typeVersion", rhsTypeVersion), lhsTypeVersion, rhsTypeVersion, (this.typeVersion!= null), (that.typeVersion!= null))) { return false; } } { String lhsInstanceIdentifier; lhsInstanceIdentifier = this.getInstanceIdentifier(); String rhsInstanceIdentifier; rhsInstanceIdentifier = that.getInstanceIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceIdentifier", lhsInstanceIdentifier), LocatorUtils.property(thatLocator, "instanceIdentifier", rhsInstanceIdentifier), lhsInstanceIdentifier, rhsInstanceIdentifier, (this.instanceIdentifier!= null), (that.instanceIdentifier!= null))) { return false; } } { String lhsType; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { Boolean lhsMultipleType; lhsMultipleType = this.getMultipleType(); Boolean rhsMultipleType; rhsMultipleType = that.getMultipleType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "multipleType", lhsMultipleType), LocatorUtils.property(thatLocator, "multipleType", rhsMultipleType), lhsMultipleType, rhsMultipleType, (this.multipleType!= null), (that.multipleType!= null))) { return false; } } { ZonedDateTime lhsCreationDateAndTime; lhsCreationDateAndTime = this.getCreationDateAndTime(); ZonedDateTime rhsCreationDateAndTime; rhsCreationDateAndTime = that.getCreationDateAndTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "creationDateAndTime", lhsCreationDateAndTime), LocatorUtils.property(thatLocator, "creationDateAndTime", rhsCreationDateAndTime), lhsCreationDateAndTime, rhsCreationDateAndTime, (this.creationDateAndTime!= null), (that.creationDateAndTime!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theStandard; theStandard = this.getStandard(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "standard", theStandard), currentHashCode, theStandard, (this.standard!= null)); } { String theTypeVersion; theTypeVersion = this.getTypeVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "typeVersion", theTypeVersion), currentHashCode, theTypeVersion, (this.typeVersion!= null)); } { String theInstanceIdentifier; theInstanceIdentifier = this.getInstanceIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceIdentifier", theInstanceIdentifier), currentHashCode, theInstanceIdentifier, (this.instanceIdentifier!= null)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { Boolean theMultipleType; theMultipleType = this.getMultipleType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "multipleType", theMultipleType), currentHashCode, theMultipleType, (this.multipleType!= null)); } { ZonedDateTime theCreationDateAndTime; theCreationDateAndTime = this.getCreationDateAndTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationDateAndTime", theCreationDateAndTime), currentHashCode, theCreationDateAndTime, (this.creationDateAndTime!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public DocumentIdentification withStandard(String value) { setStandard(value); return this; } public DocumentIdentification withTypeVersion(String value) { setTypeVersion(value); return this; } public DocumentIdentification withInstanceIdentifier(String value) { setInstanceIdentifier(value); return this; } public DocumentIdentification withType(String value) { setType(value); return this; } public DocumentIdentification withMultipleType(Boolean value) { setMultipleType(value); return this; } public DocumentIdentification withCreationDateAndTime(ZonedDateTime value) { setCreationDateAndTime(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy