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

no.difi.begrep.sdp.schema_v10.SDPFlyttetDigitalPost 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.difi.begrep.sdp.schema_v10;

import java.time.LocalDate;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import no.digipost.org.w3.xmldsig.Reference;
import no.digipost.org.w3.xmldsig.Signature;
import no.digipost.xsd.jaxb.XSDateAdapter;
import no.digipost.xsd.types.DigitalPostformidling;
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 FlyttetDigitalPost complex type. * *

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

 * <complexType name="FlyttetDigitalPost">
 *   <complexContent>
 *     <extension base="{http://begrep.difi.no/sdp/schema_v10}Melding">
 *       <sequence>
 *         <element name="avsender" type="{http://begrep.difi.no/sdp/schema_v10}Avsender"/>
 *         <element name="mottaker" type="{http://begrep.difi.no/sdp/schema_v10}Mottaker"/>
 *         <element name="digitalPostInfo" type="{http://begrep.difi.no/sdp/schema_v10}DigitalPostInfo"/>
 *         <element name="dokumentpakkefingeravtrykk" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
 *         <element name="mottaksdato" type="{http://www.w3.org/2001/XMLSchema}date"/>
 *         <element name="aapnet" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FlyttetDigitalPost", propOrder = { "avsender", "mottaker", "digitalPostInfo", "dokumentpakkefingeravtrykk", "mottaksdato", "aapnet" }) @XmlRootElement(name = "flyttetDigitalPost") public class SDPFlyttetDigitalPost extends SDPMelding implements DigitalPostformidling, Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected SDPAvsender avsender; @XmlElement(required = true) protected SDPMottaker mottaker; @XmlElement(required = true) protected SDPDigitalPostInfo digitalPostInfo; @XmlElement(required = true) protected Reference dokumentpakkefingeravtrykk; @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(XSDateAdapter.class) @XmlSchemaType(name = "date") protected LocalDate mottaksdato; protected boolean aapnet; /** * Default no-arg constructor * */ public SDPFlyttetDigitalPost() { super(); } /** * Fully-initialising value constructor * */ public SDPFlyttetDigitalPost(final Signature signature, final SDPAvsender avsender, final SDPMottaker mottaker, final SDPDigitalPostInfo digitalPostInfo, final Reference dokumentpakkefingeravtrykk, final LocalDate mottaksdato, final boolean aapnet) { super(signature); this.avsender = avsender; this.mottaker = mottaker; this.digitalPostInfo = digitalPostInfo; this.dokumentpakkefingeravtrykk = dokumentpakkefingeravtrykk; this.mottaksdato = mottaksdato; this.aapnet = aapnet; } /** * Gets the value of the avsender property. * * @return * possible object is * {@link SDPAvsender } * */ public SDPAvsender getAvsender() { return avsender; } /** * Sets the value of the avsender property. * * @param value * allowed object is * {@link SDPAvsender } * */ public void setAvsender(SDPAvsender value) { this.avsender = value; } /** * Gets the value of the mottaker property. * * @return * possible object is * {@link SDPMottaker } * */ public SDPMottaker getMottaker() { return mottaker; } /** * Sets the value of the mottaker property. * * @param value * allowed object is * {@link SDPMottaker } * */ public void setMottaker(SDPMottaker value) { this.mottaker = value; } /** * Gets the value of the digitalPostInfo property. * * @return * possible object is * {@link SDPDigitalPostInfo } * */ public SDPDigitalPostInfo getDigitalPostInfo() { return digitalPostInfo; } /** * Sets the value of the digitalPostInfo property. * * @param value * allowed object is * {@link SDPDigitalPostInfo } * */ public void setDigitalPostInfo(SDPDigitalPostInfo value) { this.digitalPostInfo = value; } /** * Gets the value of the dokumentpakkefingeravtrykk property. * * @return * possible object is * {@link Reference } * */ public Reference getDokumentpakkefingeravtrykk() { return dokumentpakkefingeravtrykk; } /** * Sets the value of the dokumentpakkefingeravtrykk property. * * @param value * allowed object is * {@link Reference } * */ public void setDokumentpakkefingeravtrykk(Reference value) { this.dokumentpakkefingeravtrykk = value; } /** * Gets the value of the mottaksdato property. * * @return * possible object is * {@link String } * */ public LocalDate getMottaksdato() { return mottaksdato; } /** * Sets the value of the mottaksdato property. * * @param value * allowed object is * {@link String } * */ public void setMottaksdato(LocalDate value) { this.mottaksdato = value; } /** * Gets the value of the aapnet property. * */ public boolean isAapnet() { return aapnet; } /** * Sets the value of the aapnet property. * */ public void setAapnet(boolean value) { this.aapnet = 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) { super.appendFields(locator, buffer, strategy); { SDPAvsender theAvsender; theAvsender = this.getAvsender(); strategy.appendField(locator, this, "avsender", buffer, theAvsender, (this.avsender!= null)); } { SDPMottaker theMottaker; theMottaker = this.getMottaker(); strategy.appendField(locator, this, "mottaker", buffer, theMottaker, (this.mottaker!= null)); } { SDPDigitalPostInfo theDigitalPostInfo; theDigitalPostInfo = this.getDigitalPostInfo(); strategy.appendField(locator, this, "digitalPostInfo", buffer, theDigitalPostInfo, (this.digitalPostInfo!= null)); } { Reference theDokumentpakkefingeravtrykk; theDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk(); strategy.appendField(locator, this, "dokumentpakkefingeravtrykk", buffer, theDokumentpakkefingeravtrykk, (this.dokumentpakkefingeravtrykk!= null)); } { LocalDate theMottaksdato; theMottaksdato = this.getMottaksdato(); strategy.appendField(locator, this, "mottaksdato", buffer, theMottaksdato, (this.mottaksdato!= null)); } { boolean theAapnet; theAapnet = this.isAapnet(); strategy.appendField(locator, this, "aapnet", buffer, theAapnet, true); } 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; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final SDPFlyttetDigitalPost that = ((SDPFlyttetDigitalPost) object); { SDPAvsender lhsAvsender; lhsAvsender = this.getAvsender(); SDPAvsender rhsAvsender; rhsAvsender = that.getAvsender(); if (!strategy.equals(LocatorUtils.property(thisLocator, "avsender", lhsAvsender), LocatorUtils.property(thatLocator, "avsender", rhsAvsender), lhsAvsender, rhsAvsender, (this.avsender!= null), (that.avsender!= null))) { return false; } } { SDPMottaker lhsMottaker; lhsMottaker = this.getMottaker(); SDPMottaker rhsMottaker; rhsMottaker = that.getMottaker(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mottaker", lhsMottaker), LocatorUtils.property(thatLocator, "mottaker", rhsMottaker), lhsMottaker, rhsMottaker, (this.mottaker!= null), (that.mottaker!= null))) { return false; } } { SDPDigitalPostInfo lhsDigitalPostInfo; lhsDigitalPostInfo = this.getDigitalPostInfo(); SDPDigitalPostInfo rhsDigitalPostInfo; rhsDigitalPostInfo = that.getDigitalPostInfo(); if (!strategy.equals(LocatorUtils.property(thisLocator, "digitalPostInfo", lhsDigitalPostInfo), LocatorUtils.property(thatLocator, "digitalPostInfo", rhsDigitalPostInfo), lhsDigitalPostInfo, rhsDigitalPostInfo, (this.digitalPostInfo!= null), (that.digitalPostInfo!= null))) { return false; } } { Reference lhsDokumentpakkefingeravtrykk; lhsDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk(); Reference rhsDokumentpakkefingeravtrykk; rhsDokumentpakkefingeravtrykk = that.getDokumentpakkefingeravtrykk(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dokumentpakkefingeravtrykk", lhsDokumentpakkefingeravtrykk), LocatorUtils.property(thatLocator, "dokumentpakkefingeravtrykk", rhsDokumentpakkefingeravtrykk), lhsDokumentpakkefingeravtrykk, rhsDokumentpakkefingeravtrykk, (this.dokumentpakkefingeravtrykk!= null), (that.dokumentpakkefingeravtrykk!= null))) { return false; } } { LocalDate lhsMottaksdato; lhsMottaksdato = this.getMottaksdato(); LocalDate rhsMottaksdato; rhsMottaksdato = that.getMottaksdato(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mottaksdato", lhsMottaksdato), LocatorUtils.property(thatLocator, "mottaksdato", rhsMottaksdato), lhsMottaksdato, rhsMottaksdato, (this.mottaksdato!= null), (that.mottaksdato!= null))) { return false; } } { boolean lhsAapnet; lhsAapnet = this.isAapnet(); boolean rhsAapnet; rhsAapnet = that.isAapnet(); if (!strategy.equals(LocatorUtils.property(thisLocator, "aapnet", lhsAapnet), LocatorUtils.property(thatLocator, "aapnet", rhsAapnet), lhsAapnet, rhsAapnet, true, true)) { 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 = super.hashCode(locator, strategy); { SDPAvsender theAvsender; theAvsender = this.getAvsender(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "avsender", theAvsender), currentHashCode, theAvsender, (this.avsender!= null)); } { SDPMottaker theMottaker; theMottaker = this.getMottaker(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mottaker", theMottaker), currentHashCode, theMottaker, (this.mottaker!= null)); } { SDPDigitalPostInfo theDigitalPostInfo; theDigitalPostInfo = this.getDigitalPostInfo(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "digitalPostInfo", theDigitalPostInfo), currentHashCode, theDigitalPostInfo, (this.digitalPostInfo!= null)); } { Reference theDokumentpakkefingeravtrykk; theDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dokumentpakkefingeravtrykk", theDokumentpakkefingeravtrykk), currentHashCode, theDokumentpakkefingeravtrykk, (this.dokumentpakkefingeravtrykk!= null)); } { LocalDate theMottaksdato; theMottaksdato = this.getMottaksdato(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mottaksdato", theMottaksdato), currentHashCode, theMottaksdato, (this.mottaksdato!= null)); } { boolean theAapnet; theAapnet = this.isAapnet(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "aapnet", theAapnet), currentHashCode, theAapnet, true); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public SDPFlyttetDigitalPost withAvsender(SDPAvsender value) { setAvsender(value); return this; } public SDPFlyttetDigitalPost withMottaker(SDPMottaker value) { setMottaker(value); return this; } public SDPFlyttetDigitalPost withDigitalPostInfo(SDPDigitalPostInfo value) { setDigitalPostInfo(value); return this; } public SDPFlyttetDigitalPost withDokumentpakkefingeravtrykk(Reference value) { setDokumentpakkefingeravtrykk(value); return this; } public SDPFlyttetDigitalPost withMottaksdato(LocalDate value) { setMottaksdato(value); return this; } public SDPFlyttetDigitalPost withAapnet(boolean value) { setAapnet(value); return this; } @Override public SDPFlyttetDigitalPost withSignature(Signature value) { setSignature(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy