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

no.nav.gosys.journal.Kryssreferanse Maven / Gradle / Ivy

There is a newer version: 1.2019.09.25-00.21-49b69f0625e0
Show newest version

package no.nav.gosys.journal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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 Kryssreferanse complex type. * *

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

 * <complexType name="Kryssreferanse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="kryssreferanseId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="referanseId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="referansetype" type="{http://nav.no/virksomhet/gjennomforing/arkiv/journal/v2}Referansetype" minOccurs="0"/>
 *         <element name="referanseNr" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *         <element name="sporing" type="{http://nav.no/virksomhet/gjennomforing/arkiv/journal/v2}Sporing" minOccurs="0"/>
 *         <element name="versjon" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="utvidelse" type="{http://nav.no/virksomhet/gjennomforing/arkiv/journal/v2}KryssreferanseUtvidelse1" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Kryssreferanse", propOrder = { "kryssreferanseId", "referanseId", "referansetype", "referanseNr", "sporing", "versjon", "utvidelse" }) public class Kryssreferanse implements Equals, HashCode, ToString { protected Long kryssreferanseId; protected String referanseId; protected Referansetype referansetype; protected Integer referanseNr; protected Sporing sporing; protected Long versjon; protected KryssreferanseUtvidelse1 utvidelse; /** * Gets the value of the kryssreferanseId property. * * @return * possible object is * {@link Long } * */ public Long getKryssreferanseId() { return kryssreferanseId; } /** * Sets the value of the kryssreferanseId property. * * @param value * allowed object is * {@link Long } * */ public void setKryssreferanseId(Long value) { this.kryssreferanseId = value; } /** * Gets the value of the referanseId property. * * @return * possible object is * {@link String } * */ public String getReferanseId() { return referanseId; } /** * Sets the value of the referanseId property. * * @param value * allowed object is * {@link String } * */ public void setReferanseId(String value) { this.referanseId = value; } /** * Gets the value of the referansetype property. * * @return * possible object is * {@link Referansetype } * */ public Referansetype getReferansetype() { return referansetype; } /** * Sets the value of the referansetype property. * * @param value * allowed object is * {@link Referansetype } * */ public void setReferansetype(Referansetype value) { this.referansetype = value; } /** * Gets the value of the referanseNr property. * * @return * possible object is * {@link Integer } * */ public Integer getReferanseNr() { return referanseNr; } /** * Sets the value of the referanseNr property. * * @param value * allowed object is * {@link Integer } * */ public void setReferanseNr(Integer value) { this.referanseNr = value; } /** * Gets the value of the sporing property. * * @return * possible object is * {@link Sporing } * */ public Sporing getSporing() { return sporing; } /** * Sets the value of the sporing property. * * @param value * allowed object is * {@link Sporing } * */ public void setSporing(Sporing value) { this.sporing = value; } /** * Gets the value of the versjon property. * * @return * possible object is * {@link Long } * */ public Long getVersjon() { return versjon; } /** * Sets the value of the versjon property. * * @param value * allowed object is * {@link Long } * */ public void setVersjon(Long value) { this.versjon = value; } /** * Gets the value of the utvidelse property. * * @return * possible object is * {@link KryssreferanseUtvidelse1 } * */ public KryssreferanseUtvidelse1 getUtvidelse() { return utvidelse; } /** * Sets the value of the utvidelse property. * * @param value * allowed object is * {@link KryssreferanseUtvidelse1 } * */ public void setUtvidelse(KryssreferanseUtvidelse1 value) { this.utvidelse = value; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { Long theKryssreferanseId; theKryssreferanseId = this.getKryssreferanseId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kryssreferanseId", theKryssreferanseId), currentHashCode, theKryssreferanseId); } { String theReferanseId; theReferanseId = this.getReferanseId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referanseId", theReferanseId), currentHashCode, theReferanseId); } { Referansetype theReferansetype; theReferansetype = this.getReferansetype(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referansetype", theReferansetype), currentHashCode, theReferansetype); } { Integer theReferanseNr; theReferanseNr = this.getReferanseNr(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referanseNr", theReferanseNr), currentHashCode, theReferanseNr); } { Sporing theSporing; theSporing = this.getSporing(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sporing", theSporing), currentHashCode, theSporing); } { Long theVersjon; theVersjon = this.getVersjon(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "versjon", theVersjon), currentHashCode, theVersjon); } { KryssreferanseUtvidelse1 theUtvidelse; theUtvidelse = this.getUtvidelse(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "utvidelse", theUtvidelse), currentHashCode, theUtvidelse); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Kryssreferanse)) { return false; } if (this == object) { return true; } final Kryssreferanse that = ((Kryssreferanse) object); { Long lhsKryssreferanseId; lhsKryssreferanseId = this.getKryssreferanseId(); Long rhsKryssreferanseId; rhsKryssreferanseId = that.getKryssreferanseId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "kryssreferanseId", lhsKryssreferanseId), LocatorUtils.property(thatLocator, "kryssreferanseId", rhsKryssreferanseId), lhsKryssreferanseId, rhsKryssreferanseId)) { return false; } } { String lhsReferanseId; lhsReferanseId = this.getReferanseId(); String rhsReferanseId; rhsReferanseId = that.getReferanseId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referanseId", lhsReferanseId), LocatorUtils.property(thatLocator, "referanseId", rhsReferanseId), lhsReferanseId, rhsReferanseId)) { return false; } } { Referansetype lhsReferansetype; lhsReferansetype = this.getReferansetype(); Referansetype rhsReferansetype; rhsReferansetype = that.getReferansetype(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referansetype", lhsReferansetype), LocatorUtils.property(thatLocator, "referansetype", rhsReferansetype), lhsReferansetype, rhsReferansetype)) { return false; } } { Integer lhsReferanseNr; lhsReferanseNr = this.getReferanseNr(); Integer rhsReferanseNr; rhsReferanseNr = that.getReferanseNr(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referanseNr", lhsReferanseNr), LocatorUtils.property(thatLocator, "referanseNr", rhsReferanseNr), lhsReferanseNr, rhsReferanseNr)) { return false; } } { Sporing lhsSporing; lhsSporing = this.getSporing(); Sporing rhsSporing; rhsSporing = that.getSporing(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sporing", lhsSporing), LocatorUtils.property(thatLocator, "sporing", rhsSporing), lhsSporing, rhsSporing)) { return false; } } { Long lhsVersjon; lhsVersjon = this.getVersjon(); Long rhsVersjon; rhsVersjon = that.getVersjon(); if (!strategy.equals(LocatorUtils.property(thisLocator, "versjon", lhsVersjon), LocatorUtils.property(thatLocator, "versjon", rhsVersjon), lhsVersjon, rhsVersjon)) { return false; } } { KryssreferanseUtvidelse1 lhsUtvidelse; lhsUtvidelse = this.getUtvidelse(); KryssreferanseUtvidelse1 rhsUtvidelse; rhsUtvidelse = that.getUtvidelse(); if (!strategy.equals(LocatorUtils.property(thisLocator, "utvidelse", lhsUtvidelse), LocatorUtils.property(thatLocator, "utvidelse", rhsUtvidelse), lhsUtvidelse, rhsUtvidelse)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } 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) { { Long theKryssreferanseId; theKryssreferanseId = this.getKryssreferanseId(); strategy.appendField(locator, this, "kryssreferanseId", buffer, theKryssreferanseId); } { String theReferanseId; theReferanseId = this.getReferanseId(); strategy.appendField(locator, this, "referanseId", buffer, theReferanseId); } { Referansetype theReferansetype; theReferansetype = this.getReferansetype(); strategy.appendField(locator, this, "referansetype", buffer, theReferansetype); } { Integer theReferanseNr; theReferanseNr = this.getReferanseNr(); strategy.appendField(locator, this, "referanseNr", buffer, theReferanseNr); } { Sporing theSporing; theSporing = this.getSporing(); strategy.appendField(locator, this, "sporing", buffer, theSporing); } { Long theVersjon; theVersjon = this.getVersjon(); strategy.appendField(locator, this, "versjon", buffer, theVersjon); } { KryssreferanseUtvidelse1 theUtvidelse; theUtvidelse = this.getUtvidelse(); strategy.appendField(locator, this, "utvidelse", buffer, theUtvidelse); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy