
no.udi.mt_1067_nav_data.v1.OppholdstillatelseEllerOppholdsPaSammeVilkar 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 OppholdstillatelseEllerOppholdsPaSammeVilkar complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OppholdstillatelseEllerOppholdsPaSammeVilkar">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="OppholdstillatelsePeriode" type="{http://udi.no/MT_1067_NAV_Data/v1}Periode" minOccurs="0"/>
* <element name="Effektueringsdato" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="Oppholdstillatelse" type="{http://udi.no/MT_1067_NAV_Data/v1}Oppholdstillatelse" minOccurs="0"/>
* <element name="OppholdPaSammeVilkar" type="{http://udi.no/MT_1067_NAV_Data/v1}OppholdPaSammeVilkar" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OppholdstillatelseEllerOppholdsPaSammeVilkar", propOrder = {
"oppholdstillatelsePeriode",
"effektueringsdato",
"oppholdstillatelse",
"oppholdPaSammeVilkar"
})
public class OppholdstillatelseEllerOppholdsPaSammeVilkar
implements Serializable, Equals, HashCode
{
@XmlElement(name = "OppholdstillatelsePeriode")
protected Periode oppholdstillatelsePeriode;
@XmlElement(name = "Effektueringsdato", required = true, nillable = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar effektueringsdato;
@XmlElement(name = "Oppholdstillatelse")
protected Oppholdstillatelse oppholdstillatelse;
@XmlElement(name = "OppholdPaSammeVilkar")
protected OppholdPaSammeVilkar oppholdPaSammeVilkar;
/**
* Gets the value of the oppholdstillatelsePeriode property.
*
* @return
* possible object is
* {@link Periode }
*
*/
public Periode getOppholdstillatelsePeriode() {
return oppholdstillatelsePeriode;
}
/**
* Sets the value of the oppholdstillatelsePeriode property.
*
* @param value
* allowed object is
* {@link Periode }
*
*/
public void setOppholdstillatelsePeriode(Periode value) {
this.oppholdstillatelsePeriode = value;
}
/**
* Gets the value of the effektueringsdato property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getEffektueringsdato() {
return effektueringsdato;
}
/**
* Sets the value of the effektueringsdato property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setEffektueringsdato(XMLGregorianCalendar value) {
this.effektueringsdato = value;
}
/**
* Gets the value of the oppholdstillatelse property.
*
* @return
* possible object is
* {@link Oppholdstillatelse }
*
*/
public Oppholdstillatelse getOppholdstillatelse() {
return oppholdstillatelse;
}
/**
* Sets the value of the oppholdstillatelse property.
*
* @param value
* allowed object is
* {@link Oppholdstillatelse }
*
*/
public void setOppholdstillatelse(Oppholdstillatelse value) {
this.oppholdstillatelse = value;
}
/**
* Gets the value of the oppholdPaSammeVilkar property.
*
* @return
* possible object is
* {@link OppholdPaSammeVilkar }
*
*/
public OppholdPaSammeVilkar getOppholdPaSammeVilkar() {
return oppholdPaSammeVilkar;
}
/**
* Sets the value of the oppholdPaSammeVilkar property.
*
* @param value
* allowed object is
* {@link OppholdPaSammeVilkar }
*
*/
public void setOppholdPaSammeVilkar(OppholdPaSammeVilkar value) {
this.oppholdPaSammeVilkar = value;
}
public OppholdstillatelseEllerOppholdsPaSammeVilkar withOppholdstillatelsePeriode(Periode value) {
setOppholdstillatelsePeriode(value);
return this;
}
public OppholdstillatelseEllerOppholdsPaSammeVilkar withEffektueringsdato(XMLGregorianCalendar value) {
setEffektueringsdato(value);
return this;
}
public OppholdstillatelseEllerOppholdsPaSammeVilkar withOppholdstillatelse(Oppholdstillatelse value) {
setOppholdstillatelse(value);
return this;
}
public OppholdstillatelseEllerOppholdsPaSammeVilkar withOppholdPaSammeVilkar(OppholdPaSammeVilkar value) {
setOppholdPaSammeVilkar(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
Periode theOppholdstillatelsePeriode;
theOppholdstillatelsePeriode = this.getOppholdstillatelsePeriode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oppholdstillatelsePeriode", theOppholdstillatelsePeriode), currentHashCode, theOppholdstillatelsePeriode);
}
{
XMLGregorianCalendar theEffektueringsdato;
theEffektueringsdato = this.getEffektueringsdato();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effektueringsdato", theEffektueringsdato), currentHashCode, theEffektueringsdato);
}
{
Oppholdstillatelse theOppholdstillatelse;
theOppholdstillatelse = this.getOppholdstillatelse();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oppholdstillatelse", theOppholdstillatelse), currentHashCode, theOppholdstillatelse);
}
{
OppholdPaSammeVilkar theOppholdPaSammeVilkar;
theOppholdPaSammeVilkar = this.getOppholdPaSammeVilkar();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oppholdPaSammeVilkar", theOppholdPaSammeVilkar), currentHashCode, theOppholdPaSammeVilkar);
}
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 OppholdstillatelseEllerOppholdsPaSammeVilkar)) {
return false;
}
if (this == object) {
return true;
}
final OppholdstillatelseEllerOppholdsPaSammeVilkar that = ((OppholdstillatelseEllerOppholdsPaSammeVilkar) object);
{
Periode lhsOppholdstillatelsePeriode;
lhsOppholdstillatelsePeriode = this.getOppholdstillatelsePeriode();
Periode rhsOppholdstillatelsePeriode;
rhsOppholdstillatelsePeriode = that.getOppholdstillatelsePeriode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "oppholdstillatelsePeriode", lhsOppholdstillatelsePeriode), LocatorUtils.property(thatLocator, "oppholdstillatelsePeriode", rhsOppholdstillatelsePeriode), lhsOppholdstillatelsePeriode, rhsOppholdstillatelsePeriode)) {
return false;
}
}
{
XMLGregorianCalendar lhsEffektueringsdato;
lhsEffektueringsdato = this.getEffektueringsdato();
XMLGregorianCalendar rhsEffektueringsdato;
rhsEffektueringsdato = that.getEffektueringsdato();
if (!strategy.equals(LocatorUtils.property(thisLocator, "effektueringsdato", lhsEffektueringsdato), LocatorUtils.property(thatLocator, "effektueringsdato", rhsEffektueringsdato), lhsEffektueringsdato, rhsEffektueringsdato)) {
return false;
}
}
{
Oppholdstillatelse lhsOppholdstillatelse;
lhsOppholdstillatelse = this.getOppholdstillatelse();
Oppholdstillatelse rhsOppholdstillatelse;
rhsOppholdstillatelse = that.getOppholdstillatelse();
if (!strategy.equals(LocatorUtils.property(thisLocator, "oppholdstillatelse", lhsOppholdstillatelse), LocatorUtils.property(thatLocator, "oppholdstillatelse", rhsOppholdstillatelse), lhsOppholdstillatelse, rhsOppholdstillatelse)) {
return false;
}
}
{
OppholdPaSammeVilkar lhsOppholdPaSammeVilkar;
lhsOppholdPaSammeVilkar = this.getOppholdPaSammeVilkar();
OppholdPaSammeVilkar rhsOppholdPaSammeVilkar;
rhsOppholdPaSammeVilkar = that.getOppholdPaSammeVilkar();
if (!strategy.equals(LocatorUtils.property(thisLocator, "oppholdPaSammeVilkar", lhsOppholdPaSammeVilkar), LocatorUtils.property(thatLocator, "oppholdPaSammeVilkar", rhsOppholdPaSammeVilkar), lhsOppholdPaSammeVilkar, rhsOppholdPaSammeVilkar)) {
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