no.nav.gosys.journal.ReturInfo Maven / Gradle / Ivy
package no.nav.gosys.journal;
import java.util.Calendar;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
import org.w3._2001.xmlschema.Adapter1;
/**
* Java class for ReturInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ReturInfo">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="returInfoId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="returDato" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="arsakRetur" type="{http://nav.no/virksomhet/gjennomforing/arkiv/journal/v2}ArsakRetur" minOccurs="0"/>
* <element name="adresseSendtIgjen" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="sendtIgjenDato" type="{http://www.w3.org/2001/XMLSchema}dateTime" 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}ReturInfoUtvidelse1" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReturInfo", propOrder = {
"returInfoId",
"returDato",
"arsakRetur",
"adresseSendtIgjen",
"sendtIgjenDato",
"sporing",
"versjon",
"utvidelse"
})
public class ReturInfo
implements Equals, HashCode, ToString
{
protected Long returInfoId;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar returDato;
protected ArsakRetur arsakRetur;
protected String adresseSendtIgjen;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar sendtIgjenDato;
protected Sporing sporing;
protected Long versjon;
protected ReturInfoUtvidelse1 utvidelse;
/**
* Gets the value of the returInfoId property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getReturInfoId() {
return returInfoId;
}
/**
* Sets the value of the returInfoId property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setReturInfoId(Long value) {
this.returInfoId = value;
}
/**
* Gets the value of the returDato property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getReturDato() {
return returDato;
}
/**
* Sets the value of the returDato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReturDato(Calendar value) {
this.returDato = value;
}
/**
* Gets the value of the arsakRetur property.
*
* @return
* possible object is
* {@link ArsakRetur }
*
*/
public ArsakRetur getArsakRetur() {
return arsakRetur;
}
/**
* Sets the value of the arsakRetur property.
*
* @param value
* allowed object is
* {@link ArsakRetur }
*
*/
public void setArsakRetur(ArsakRetur value) {
this.arsakRetur = value;
}
/**
* Gets the value of the adresseSendtIgjen property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdresseSendtIgjen() {
return adresseSendtIgjen;
}
/**
* Sets the value of the adresseSendtIgjen property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAdresseSendtIgjen(String value) {
this.adresseSendtIgjen = value;
}
/**
* Gets the value of the sendtIgjenDato property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getSendtIgjenDato() {
return sendtIgjenDato;
}
/**
* Sets the value of the sendtIgjenDato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSendtIgjenDato(Calendar value) {
this.sendtIgjenDato = 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 ReturInfoUtvidelse1 }
*
*/
public ReturInfoUtvidelse1 getUtvidelse() {
return utvidelse;
}
/**
* Sets the value of the utvidelse property.
*
* @param value
* allowed object is
* {@link ReturInfoUtvidelse1 }
*
*/
public void setUtvidelse(ReturInfoUtvidelse1 value) {
this.utvidelse = value;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
Long theReturInfoId;
theReturInfoId = this.getReturInfoId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "returInfoId", theReturInfoId), currentHashCode, theReturInfoId);
}
{
Calendar theReturDato;
theReturDato = this.getReturDato();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "returDato", theReturDato), currentHashCode, theReturDato);
}
{
ArsakRetur theArsakRetur;
theArsakRetur = this.getArsakRetur();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "arsakRetur", theArsakRetur), currentHashCode, theArsakRetur);
}
{
String theAdresseSendtIgjen;
theAdresseSendtIgjen = this.getAdresseSendtIgjen();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresseSendtIgjen", theAdresseSendtIgjen), currentHashCode, theAdresseSendtIgjen);
}
{
Calendar theSendtIgjenDato;
theSendtIgjenDato = this.getSendtIgjenDato();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sendtIgjenDato", theSendtIgjenDato), currentHashCode, theSendtIgjenDato);
}
{
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);
}
{
ReturInfoUtvidelse1 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 ReturInfo)) {
return false;
}
if (this == object) {
return true;
}
final ReturInfo that = ((ReturInfo) object);
{
Long lhsReturInfoId;
lhsReturInfoId = this.getReturInfoId();
Long rhsReturInfoId;
rhsReturInfoId = that.getReturInfoId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "returInfoId", lhsReturInfoId), LocatorUtils.property(thatLocator, "returInfoId", rhsReturInfoId), lhsReturInfoId, rhsReturInfoId)) {
return false;
}
}
{
Calendar lhsReturDato;
lhsReturDato = this.getReturDato();
Calendar rhsReturDato;
rhsReturDato = that.getReturDato();
if (!strategy.equals(LocatorUtils.property(thisLocator, "returDato", lhsReturDato), LocatorUtils.property(thatLocator, "returDato", rhsReturDato), lhsReturDato, rhsReturDato)) {
return false;
}
}
{
ArsakRetur lhsArsakRetur;
lhsArsakRetur = this.getArsakRetur();
ArsakRetur rhsArsakRetur;
rhsArsakRetur = that.getArsakRetur();
if (!strategy.equals(LocatorUtils.property(thisLocator, "arsakRetur", lhsArsakRetur), LocatorUtils.property(thatLocator, "arsakRetur", rhsArsakRetur), lhsArsakRetur, rhsArsakRetur)) {
return false;
}
}
{
String lhsAdresseSendtIgjen;
lhsAdresseSendtIgjen = this.getAdresseSendtIgjen();
String rhsAdresseSendtIgjen;
rhsAdresseSendtIgjen = that.getAdresseSendtIgjen();
if (!strategy.equals(LocatorUtils.property(thisLocator, "adresseSendtIgjen", lhsAdresseSendtIgjen), LocatorUtils.property(thatLocator, "adresseSendtIgjen", rhsAdresseSendtIgjen), lhsAdresseSendtIgjen, rhsAdresseSendtIgjen)) {
return false;
}
}
{
Calendar lhsSendtIgjenDato;
lhsSendtIgjenDato = this.getSendtIgjenDato();
Calendar rhsSendtIgjenDato;
rhsSendtIgjenDato = that.getSendtIgjenDato();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sendtIgjenDato", lhsSendtIgjenDato), LocatorUtils.property(thatLocator, "sendtIgjenDato", rhsSendtIgjenDato), lhsSendtIgjenDato, rhsSendtIgjenDato)) {
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;
}
}
{
ReturInfoUtvidelse1 lhsUtvidelse;
lhsUtvidelse = this.getUtvidelse();
ReturInfoUtvidelse1 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 theReturInfoId;
theReturInfoId = this.getReturInfoId();
strategy.appendField(locator, this, "returInfoId", buffer, theReturInfoId);
}
{
Calendar theReturDato;
theReturDato = this.getReturDato();
strategy.appendField(locator, this, "returDato", buffer, theReturDato);
}
{
ArsakRetur theArsakRetur;
theArsakRetur = this.getArsakRetur();
strategy.appendField(locator, this, "arsakRetur", buffer, theArsakRetur);
}
{
String theAdresseSendtIgjen;
theAdresseSendtIgjen = this.getAdresseSendtIgjen();
strategy.appendField(locator, this, "adresseSendtIgjen", buffer, theAdresseSendtIgjen);
}
{
Calendar theSendtIgjenDato;
theSendtIgjenDato = this.getSendtIgjenDato();
strategy.appendField(locator, this, "sendtIgjenDato", buffer, theSendtIgjenDato);
}
{
Sporing theSporing;
theSporing = this.getSporing();
strategy.appendField(locator, this, "sporing", buffer, theSporing);
}
{
Long theVersjon;
theVersjon = this.getVersjon();
strategy.appendField(locator, this, "versjon", buffer, theVersjon);
}
{
ReturInfoUtvidelse1 theUtvidelse;
theUtvidelse = this.getUtvidelse();
strategy.appendField(locator, this, "utvidelse", buffer, theUtvidelse);
}
return buffer;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy