
no.udi.mt_1067_nav_data.v1.UtvistMedInnreiseForbud Maven / Gradle / Ivy
package no.udi.mt_1067_nav_data.v1;
import java.io.Serializable;
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.datatype.XMLGregorianCalendar;
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 UtvistMedInnreiseForbud complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="UtvistMedInnreiseForbud">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="InnreiseForbud" type="{http://udi.no/MT_1067_NAV_Data/v1}JaNeiUavklart"/>
* <element name="VedtaksDato" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="Varighet" type="{http://udi.no/MT_1067_NAV_Data/v1}Varighet"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "UtvistMedInnreiseForbud", propOrder = {
"innreiseForbud",
"vedtaksDato",
"varighet"
})
public class UtvistMedInnreiseForbud
implements Serializable, Equals, HashCode
{
@XmlElement(name = "InnreiseForbud", required = true, nillable = true)
@XmlSchemaType(name = "string")
protected JaNeiUavklart innreiseForbud;
@XmlElement(name = "VedtaksDato", required = true, nillable = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar vedtaksDato;
@XmlElement(name = "Varighet", required = true, nillable = true)
@XmlSchemaType(name = "string")
protected Varighet varighet;
/**
* Gets the value of the innreiseForbud property.
*
* @return
* possible object is
* {@link JaNeiUavklart }
*
*/
public JaNeiUavklart getInnreiseForbud() {
return innreiseForbud;
}
/**
* Sets the value of the innreiseForbud property.
*
* @param value
* allowed object is
* {@link JaNeiUavklart }
*
*/
public void setInnreiseForbud(JaNeiUavklart value) {
this.innreiseForbud = value;
}
/**
* Gets the value of the vedtaksDato property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getVedtaksDato() {
return vedtaksDato;
}
/**
* Sets the value of the vedtaksDato property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setVedtaksDato(XMLGregorianCalendar value) {
this.vedtaksDato = value;
}
/**
* Gets the value of the varighet property.
*
* @return
* possible object is
* {@link Varighet }
*
*/
public Varighet getVarighet() {
return varighet;
}
/**
* Sets the value of the varighet property.
*
* @param value
* allowed object is
* {@link Varighet }
*
*/
public void setVarighet(Varighet value) {
this.varighet = value;
}
public UtvistMedInnreiseForbud withInnreiseForbud(JaNeiUavklart value) {
setInnreiseForbud(value);
return this;
}
public UtvistMedInnreiseForbud withVedtaksDato(XMLGregorianCalendar value) {
setVedtaksDato(value);
return this;
}
public UtvistMedInnreiseForbud withVarighet(Varighet value) {
setVarighet(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
JaNeiUavklart theInnreiseForbud;
theInnreiseForbud = this.getInnreiseForbud();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "innreiseForbud", theInnreiseForbud), currentHashCode, theInnreiseForbud);
}
{
XMLGregorianCalendar theVedtaksDato;
theVedtaksDato = this.getVedtaksDato();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "vedtaksDato", theVedtaksDato), currentHashCode, theVedtaksDato);
}
{
Varighet theVarighet;
theVarighet = this.getVarighet();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "varighet", theVarighet), currentHashCode, theVarighet);
}
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 UtvistMedInnreiseForbud)) {
return false;
}
if (this == object) {
return true;
}
final UtvistMedInnreiseForbud that = ((UtvistMedInnreiseForbud) object);
{
JaNeiUavklart lhsInnreiseForbud;
lhsInnreiseForbud = this.getInnreiseForbud();
JaNeiUavklart rhsInnreiseForbud;
rhsInnreiseForbud = that.getInnreiseForbud();
if (!strategy.equals(LocatorUtils.property(thisLocator, "innreiseForbud", lhsInnreiseForbud), LocatorUtils.property(thatLocator, "innreiseForbud", rhsInnreiseForbud), lhsInnreiseForbud, rhsInnreiseForbud)) {
return false;
}
}
{
XMLGregorianCalendar lhsVedtaksDato;
lhsVedtaksDato = this.getVedtaksDato();
XMLGregorianCalendar rhsVedtaksDato;
rhsVedtaksDato = that.getVedtaksDato();
if (!strategy.equals(LocatorUtils.property(thisLocator, "vedtaksDato", lhsVedtaksDato), LocatorUtils.property(thatLocator, "vedtaksDato", rhsVedtaksDato), lhsVedtaksDato, rhsVedtaksDato)) {
return false;
}
}
{
Varighet lhsVarighet;
lhsVarighet = this.getVarighet();
Varighet rhsVarighet;
rhsVarighet = that.getVarighet();
if (!strategy.equals(LocatorUtils.property(thisLocator, "varighet", lhsVarighet), LocatorUtils.property(thatLocator, "varighet", rhsVarighet), lhsVarighet, rhsVarighet)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy