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

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

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.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.Signature;
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 Kvittering complex type. * *

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

 * <complexType name="Kvittering">
 *   <complexContent>
 *     <extension base="{http://begrep.difi.no/sdp/schema_v10}Melding">
 *       <sequence>
 *         <element name="tidspunkt" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <choice>
 *           <element name="mottak" type="{http://begrep.difi.no/sdp/schema_v10}Mottak"/>
 *           <element name="levering" type="{http://begrep.difi.no/sdp/schema_v10}Levering"/>
 *           <element name="aapning" type="{http://begrep.difi.no/sdp/schema_v10}Aapning"/>
 *           <element name="varslingfeilet" type="{http://begrep.difi.no/sdp/schema_v10}Varslingfeilet"/>
 *           <element name="returpost" type="{http://begrep.difi.no/sdp/schema_v10}Returpost"/>
 *         </choice>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Kvittering", propOrder = { "tidspunkt", "returpost", "varslingfeilet", "aapning", "levering", "mottak" }) @XmlRootElement(name = "kvittering") public class SDPKvittering extends SDPMelding implements Equals2, HashCode2, ToString2 { @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime tidspunkt; protected SDPReturpost returpost; protected SDPVarslingfeilet varslingfeilet; protected SDPAapning aapning; protected SDPLevering levering; protected SDPMottak mottak; /** * Default no-arg constructor * */ public SDPKvittering() { super(); } /** * Fully-initialising value constructor * */ public SDPKvittering(final Signature signature, final ZonedDateTime tidspunkt, final SDPReturpost returpost, final SDPVarslingfeilet varslingfeilet, final SDPAapning aapning, final SDPLevering levering, final SDPMottak mottak) { super(signature); this.tidspunkt = tidspunkt; this.returpost = returpost; this.varslingfeilet = varslingfeilet; this.aapning = aapning; this.levering = levering; this.mottak = mottak; } /** * Gets the value of the tidspunkt property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getTidspunkt() { return tidspunkt; } /** * Sets the value of the tidspunkt property. * * @param value * allowed object is * {@link String } * */ public void setTidspunkt(ZonedDateTime value) { this.tidspunkt = value; } /** * Gets the value of the returpost property. * * @return * possible object is * {@link SDPReturpost } * */ public SDPReturpost getReturpost() { return returpost; } /** * Sets the value of the returpost property. * * @param value * allowed object is * {@link SDPReturpost } * */ public void setReturpost(SDPReturpost value) { this.returpost = value; } /** * Gets the value of the varslingfeilet property. * * @return * possible object is * {@link SDPVarslingfeilet } * */ public SDPVarslingfeilet getVarslingfeilet() { return varslingfeilet; } /** * Sets the value of the varslingfeilet property. * * @param value * allowed object is * {@link SDPVarslingfeilet } * */ public void setVarslingfeilet(SDPVarslingfeilet value) { this.varslingfeilet = value; } /** * Gets the value of the aapning property. * * @return * possible object is * {@link SDPAapning } * */ public SDPAapning getAapning() { return aapning; } /** * Sets the value of the aapning property. * * @param value * allowed object is * {@link SDPAapning } * */ public void setAapning(SDPAapning value) { this.aapning = value; } /** * Gets the value of the levering property. * * @return * possible object is * {@link SDPLevering } * */ public SDPLevering getLevering() { return levering; } /** * Sets the value of the levering property. * * @param value * allowed object is * {@link SDPLevering } * */ public void setLevering(SDPLevering value) { this.levering = value; } /** * Gets the value of the mottak property. * * @return * possible object is * {@link SDPMottak } * */ public SDPMottak getMottak() { return mottak; } /** * Sets the value of the mottak property. * * @param value * allowed object is * {@link SDPMottak } * */ public void setMottak(SDPMottak value) { this.mottak = 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) { super.appendFields(locator, buffer, strategy); { ZonedDateTime theTidspunkt; theTidspunkt = this.getTidspunkt(); strategy.appendField(locator, this, "tidspunkt", buffer, theTidspunkt, (this.tidspunkt!= null)); } { SDPReturpost theReturpost; theReturpost = this.getReturpost(); strategy.appendField(locator, this, "returpost", buffer, theReturpost, (this.returpost!= null)); } { SDPVarslingfeilet theVarslingfeilet; theVarslingfeilet = this.getVarslingfeilet(); strategy.appendField(locator, this, "varslingfeilet", buffer, theVarslingfeilet, (this.varslingfeilet!= null)); } { SDPAapning theAapning; theAapning = this.getAapning(); strategy.appendField(locator, this, "aapning", buffer, theAapning, (this.aapning!= null)); } { SDPLevering theLevering; theLevering = this.getLevering(); strategy.appendField(locator, this, "levering", buffer, theLevering, (this.levering!= null)); } { SDPMottak theMottak; theMottak = this.getMottak(); strategy.appendField(locator, this, "mottak", buffer, theMottak, (this.mottak!= 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; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final SDPKvittering that = ((SDPKvittering) object); { ZonedDateTime lhsTidspunkt; lhsTidspunkt = this.getTidspunkt(); ZonedDateTime rhsTidspunkt; rhsTidspunkt = that.getTidspunkt(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tidspunkt", lhsTidspunkt), LocatorUtils.property(thatLocator, "tidspunkt", rhsTidspunkt), lhsTidspunkt, rhsTidspunkt, (this.tidspunkt!= null), (that.tidspunkt!= null))) { return false; } } { SDPReturpost lhsReturpost; lhsReturpost = this.getReturpost(); SDPReturpost rhsReturpost; rhsReturpost = that.getReturpost(); if (!strategy.equals(LocatorUtils.property(thisLocator, "returpost", lhsReturpost), LocatorUtils.property(thatLocator, "returpost", rhsReturpost), lhsReturpost, rhsReturpost, (this.returpost!= null), (that.returpost!= null))) { return false; } } { SDPVarslingfeilet lhsVarslingfeilet; lhsVarslingfeilet = this.getVarslingfeilet(); SDPVarslingfeilet rhsVarslingfeilet; rhsVarslingfeilet = that.getVarslingfeilet(); if (!strategy.equals(LocatorUtils.property(thisLocator, "varslingfeilet", lhsVarslingfeilet), LocatorUtils.property(thatLocator, "varslingfeilet", rhsVarslingfeilet), lhsVarslingfeilet, rhsVarslingfeilet, (this.varslingfeilet!= null), (that.varslingfeilet!= null))) { return false; } } { SDPAapning lhsAapning; lhsAapning = this.getAapning(); SDPAapning rhsAapning; rhsAapning = that.getAapning(); if (!strategy.equals(LocatorUtils.property(thisLocator, "aapning", lhsAapning), LocatorUtils.property(thatLocator, "aapning", rhsAapning), lhsAapning, rhsAapning, (this.aapning!= null), (that.aapning!= null))) { return false; } } { SDPLevering lhsLevering; lhsLevering = this.getLevering(); SDPLevering rhsLevering; rhsLevering = that.getLevering(); if (!strategy.equals(LocatorUtils.property(thisLocator, "levering", lhsLevering), LocatorUtils.property(thatLocator, "levering", rhsLevering), lhsLevering, rhsLevering, (this.levering!= null), (that.levering!= null))) { return false; } } { SDPMottak lhsMottak; lhsMottak = this.getMottak(); SDPMottak rhsMottak; rhsMottak = that.getMottak(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mottak", lhsMottak), LocatorUtils.property(thatLocator, "mottak", rhsMottak), lhsMottak, rhsMottak, (this.mottak!= null), (that.mottak!= 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 = super.hashCode(locator, strategy); { ZonedDateTime theTidspunkt; theTidspunkt = this.getTidspunkt(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tidspunkt", theTidspunkt), currentHashCode, theTidspunkt, (this.tidspunkt!= null)); } { SDPReturpost theReturpost; theReturpost = this.getReturpost(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "returpost", theReturpost), currentHashCode, theReturpost, (this.returpost!= null)); } { SDPVarslingfeilet theVarslingfeilet; theVarslingfeilet = this.getVarslingfeilet(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "varslingfeilet", theVarslingfeilet), currentHashCode, theVarslingfeilet, (this.varslingfeilet!= null)); } { SDPAapning theAapning; theAapning = this.getAapning(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "aapning", theAapning), currentHashCode, theAapning, (this.aapning!= null)); } { SDPLevering theLevering; theLevering = this.getLevering(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "levering", theLevering), currentHashCode, theLevering, (this.levering!= null)); } { SDPMottak theMottak; theMottak = this.getMottak(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mottak", theMottak), currentHashCode, theMottak, (this.mottak!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPKvittering withTidspunkt(ZonedDateTime value) { setTidspunkt(value); return this; } public SDPKvittering withReturpost(SDPReturpost value) { setReturpost(value); return this; } public SDPKvittering withVarslingfeilet(SDPVarslingfeilet value) { setVarslingfeilet(value); return this; } public SDPKvittering withAapning(SDPAapning value) { setAapning(value); return this; } public SDPKvittering withLevering(SDPLevering value) { setLevering(value); return this; } public SDPKvittering withMottak(SDPMottak value) { setMottak(value); return this; } @Override public SDPKvittering withSignature(Signature value) { setSignature(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy