no.nav.tjeneste.virksomhet.behandleoppgave.v1.meldinger.WSOpprettOppgaveRequest Maven / Gradle / Ivy
package no.nav.tjeneste.virksomhet.behandleoppgave.v1.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 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.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for WSOpprettOppgaveRequest complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="WSOpprettOppgaveRequest">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="wsOppgave" type="{http://nav.no/tjeneste/virksomhet/behandleoppgave/v1/meldinger}WSOppgave"/>
* <element name="opprettetAvEnhetId" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="henvendelsetypeKode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "WSOpprettOppgaveRequest", propOrder = {
"wsOppgave",
"opprettetAvEnhetId",
"henvendelsetypeKode"
})
public class WSOpprettOppgaveRequest implements Equals2, HashCode2
{
@XmlElement(required = true)
protected WSOppgave wsOppgave;
protected int opprettetAvEnhetId;
protected String henvendelsetypeKode;
/**
* Gets the value of the wsOppgave property.
*
* @return
* possible object is
* {@link WSOppgave }
*
*/
public WSOppgave getWsOppgave() {
return wsOppgave;
}
/**
* Sets the value of the wsOppgave property.
*
* @param value
* allowed object is
* {@link WSOppgave }
*
*/
public void setWsOppgave(WSOppgave value) {
this.wsOppgave = value;
}
/**
* Gets the value of the opprettetAvEnhetId property.
*
*/
public int getOpprettetAvEnhetId() {
return opprettetAvEnhetId;
}
/**
* Sets the value of the opprettetAvEnhetId property.
*
*/
public void setOpprettetAvEnhetId(int value) {
this.opprettetAvEnhetId = value;
}
/**
* Gets the value of the henvendelsetypeKode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHenvendelsetypeKode() {
return henvendelsetypeKode;
}
/**
* Sets the value of the henvendelsetypeKode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHenvendelsetypeKode(String value) {
this.henvendelsetypeKode = value;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
WSOppgave theWsOppgave;
theWsOppgave = this.getWsOppgave();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wsOppgave", theWsOppgave), currentHashCode, theWsOppgave, (this.wsOppgave!= null));
}
{
int theOpprettetAvEnhetId;
theOpprettetAvEnhetId = this.getOpprettetAvEnhetId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "opprettetAvEnhetId", theOpprettetAvEnhetId), currentHashCode, theOpprettetAvEnhetId, true);
}
{
String theHenvendelsetypeKode;
theHenvendelsetypeKode = this.getHenvendelsetypeKode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "henvendelsetypeKode", theHenvendelsetypeKode), currentHashCode, theHenvendelsetypeKode, (this.henvendelsetypeKode!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
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 WSOpprettOppgaveRequest that = ((WSOpprettOppgaveRequest) object);
{
WSOppgave lhsWsOppgave;
lhsWsOppgave = this.getWsOppgave();
WSOppgave rhsWsOppgave;
rhsWsOppgave = that.getWsOppgave();
if (!strategy.equals(LocatorUtils.property(thisLocator, "wsOppgave", lhsWsOppgave), LocatorUtils.property(thatLocator, "wsOppgave", rhsWsOppgave), lhsWsOppgave, rhsWsOppgave, (this.wsOppgave!= null), (that.wsOppgave!= null))) {
return false;
}
}
{
int lhsOpprettetAvEnhetId;
lhsOpprettetAvEnhetId = this.getOpprettetAvEnhetId();
int rhsOpprettetAvEnhetId;
rhsOpprettetAvEnhetId = that.getOpprettetAvEnhetId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "opprettetAvEnhetId", lhsOpprettetAvEnhetId), LocatorUtils.property(thatLocator, "opprettetAvEnhetId", rhsOpprettetAvEnhetId), lhsOpprettetAvEnhetId, rhsOpprettetAvEnhetId, true, true)) {
return false;
}
}
{
String lhsHenvendelsetypeKode;
lhsHenvendelsetypeKode = this.getHenvendelsetypeKode();
String rhsHenvendelsetypeKode;
rhsHenvendelsetypeKode = that.getHenvendelsetypeKode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "henvendelsetypeKode", lhsHenvendelsetypeKode), LocatorUtils.property(thatLocator, "henvendelsetypeKode", rhsHenvendelsetypeKode), lhsHenvendelsetypeKode, rhsHenvendelsetypeKode, (this.henvendelsetypeKode!= null), (that.henvendelsetypeKode!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public WSOpprettOppgaveRequest withWsOppgave(WSOppgave value) {
setWsOppgave(value);
return this;
}
public WSOpprettOppgaveRequest withOpprettetAvEnhetId(int value) {
setOpprettetAvEnhetId(value);
return this;
}
public WSOpprettOppgaveRequest withHenvendelsetypeKode(String value) {
setHenvendelsetypeKode(value);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy