no.nav.tjeneste.virksomhet.oppgave.v3.meldinger.WSHentOppgaveResponse Maven / Gradle / Ivy
package no.nav.tjeneste.virksomhet.oppgave.v3.meldinger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import no.nav.tjeneste.virksomhet.oppgave.v3.informasjon.oppgave.WSOppgave;
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.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for HentOppgaveResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="HentOppgaveResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="oppgave" type="{http://nav.no/tjeneste/virksomhet/oppgave/v3/informasjon/oppgave}Oppgave"/>
* <element name="utvidelse" type="{http://nav.no/tjeneste/virksomhet/oppgave/v3/meldinger}HentOppgaveUtvidelse1" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HentOppgaveResponse", propOrder = {
"oppgave",
"utvidelse"
})
public class WSHentOppgaveResponse
implements Equals, HashCode
{
@XmlElement(required = true)
protected WSOppgave oppgave;
protected WSHentOppgaveUtvidelse1 utvidelse;
/**
* Gets the value of the oppgave property.
*
* @return
* possible object is
* {@link WSOppgave }
*
*/
public WSOppgave getOppgave() {
return oppgave;
}
/**
* Sets the value of the oppgave property.
*
* @param value
* allowed object is
* {@link WSOppgave }
*
*/
public void setOppgave(WSOppgave value) {
this.oppgave = value;
}
/**
* Gets the value of the utvidelse property.
*
* @return
* possible object is
* {@link WSHentOppgaveUtvidelse1 }
*
*/
public WSHentOppgaveUtvidelse1 getUtvidelse() {
return utvidelse;
}
/**
* Sets the value of the utvidelse property.
*
* @param value
* allowed object is
* {@link WSHentOppgaveUtvidelse1 }
*
*/
public void setUtvidelse(WSHentOppgaveUtvidelse1 value) {
this.utvidelse = value;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
WSOppgave theOppgave;
theOppgave = this.getOppgave();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oppgave", theOppgave), currentHashCode, theOppgave);
}
{
WSHentOppgaveUtvidelse1 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 WSHentOppgaveResponse)) {
return false;
}
if (this == object) {
return true;
}
final WSHentOppgaveResponse that = ((WSHentOppgaveResponse) object);
{
WSOppgave lhsOppgave;
lhsOppgave = this.getOppgave();
WSOppgave rhsOppgave;
rhsOppgave = that.getOppgave();
if (!strategy.equals(LocatorUtils.property(thisLocator, "oppgave", lhsOppgave), LocatorUtils.property(thatLocator, "oppgave", rhsOppgave), lhsOppgave, rhsOppgave)) {
return false;
}
}
{
WSHentOppgaveUtvidelse1 lhsUtvidelse;
lhsUtvidelse = this.getUtvidelse();
WSHentOppgaveUtvidelse1 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 WSHentOppgaveResponse withOppgave(WSOppgave value) {
setOppgave(value);
return this;
}
public WSHentOppgaveResponse withUtvidelse(WSHentOppgaveUtvidelse1 value) {
setUtvidelse(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy