All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.udi.mt_1067_nav_data.v1.GjeldendePerson Maven / Gradle / Ivy

There is a newer version: 1.2019.09.25-00.21-49b69f0625e0
Show newest version

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.XmlType;
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 GjeldendePerson complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="GjeldendePerson">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Fodselsnummer" type="{http://udi.no/Common/v2}Fodselsnummer" minOccurs="0"/>
 *         <element name="Navn" type="{http://udi.no/MT_1067_NAV_Data/v1}PersonNavn" minOccurs="0"/>
 *         <element name="Fodselsdato" type="{http://udi.no/MT_1067_NAV_Data/v1}MangelfullDato" minOccurs="0"/>
 *         <element name="Alias" type="{http://udi.no/MT_1067_NAV_Data/v1}AliasListe" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "GjeldendePerson", propOrder = { "fodselsnummer", "navn", "fodselsdato", "alias" }) public class GjeldendePerson implements Serializable, Equals, HashCode { @XmlElement(name = "Fodselsnummer") protected String fodselsnummer; @XmlElement(name = "Navn") protected PersonNavn navn; @XmlElement(name = "Fodselsdato") protected MangelfullDato fodselsdato; @XmlElement(name = "Alias") protected AliasListe alias; /** * Gets the value of the fodselsnummer property. * * @return * possible object is * {@link String } * */ public String getFodselsnummer() { return fodselsnummer; } /** * Sets the value of the fodselsnummer property. * * @param value * allowed object is * {@link String } * */ public void setFodselsnummer(String value) { this.fodselsnummer = value; } /** * Gets the value of the navn property. * * @return * possible object is * {@link PersonNavn } * */ public PersonNavn getNavn() { return navn; } /** * Sets the value of the navn property. * * @param value * allowed object is * {@link PersonNavn } * */ public void setNavn(PersonNavn value) { this.navn = value; } /** * Gets the value of the fodselsdato property. * * @return * possible object is * {@link MangelfullDato } * */ public MangelfullDato getFodselsdato() { return fodselsdato; } /** * Sets the value of the fodselsdato property. * * @param value * allowed object is * {@link MangelfullDato } * */ public void setFodselsdato(MangelfullDato value) { this.fodselsdato = value; } /** * Gets the value of the alias property. * * @return * possible object is * {@link AliasListe } * */ public AliasListe getAlias() { return alias; } /** * Sets the value of the alias property. * * @param value * allowed object is * {@link AliasListe } * */ public void setAlias(AliasListe value) { this.alias = value; } public GjeldendePerson withFodselsnummer(String value) { setFodselsnummer(value); return this; } public GjeldendePerson withNavn(PersonNavn value) { setNavn(value); return this; } public GjeldendePerson withFodselsdato(MangelfullDato value) { setFodselsdato(value); return this; } public GjeldendePerson withAlias(AliasListe value) { setAlias(value); return this; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theFodselsnummer; theFodselsnummer = this.getFodselsnummer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fodselsnummer", theFodselsnummer), currentHashCode, theFodselsnummer); } { PersonNavn theNavn; theNavn = this.getNavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "navn", theNavn), currentHashCode, theNavn); } { MangelfullDato theFodselsdato; theFodselsdato = this.getFodselsdato(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fodselsdato", theFodselsdato), currentHashCode, theFodselsdato); } { AliasListe theAlias; theAlias = this.getAlias(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "alias", theAlias), currentHashCode, theAlias); } 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 GjeldendePerson)) { return false; } if (this == object) { return true; } final GjeldendePerson that = ((GjeldendePerson) object); { String lhsFodselsnummer; lhsFodselsnummer = this.getFodselsnummer(); String rhsFodselsnummer; rhsFodselsnummer = that.getFodselsnummer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fodselsnummer", lhsFodselsnummer), LocatorUtils.property(thatLocator, "fodselsnummer", rhsFodselsnummer), lhsFodselsnummer, rhsFodselsnummer)) { return false; } } { PersonNavn lhsNavn; lhsNavn = this.getNavn(); PersonNavn rhsNavn; rhsNavn = that.getNavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "navn", lhsNavn), LocatorUtils.property(thatLocator, "navn", rhsNavn), lhsNavn, rhsNavn)) { return false; } } { MangelfullDato lhsFodselsdato; lhsFodselsdato = this.getFodselsdato(); MangelfullDato rhsFodselsdato; rhsFodselsdato = that.getFodselsdato(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fodselsdato", lhsFodselsdato), LocatorUtils.property(thatLocator, "fodselsdato", rhsFodselsdato), lhsFodselsdato, rhsFodselsdato)) { return false; } } { AliasListe lhsAlias; lhsAlias = this.getAlias(); AliasListe rhsAlias; rhsAlias = that.getAlias(); if (!strategy.equals(LocatorUtils.property(thisLocator, "alias", lhsAlias), LocatorUtils.property(thatLocator, "alias", rhsAlias), lhsAlias, rhsAlias)) { 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