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

no.difi.begrep.sdp.utvidelser.bevis.SDPBruker Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.11.16 at 09:22:53 AM UTC 
//


package no.difi.begrep.sdp.utvidelser.bevis;

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.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for Bruker complex type. * *

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

 * <complexType name="Bruker">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="fornavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="etternavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="foedselsnummer" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Foedselsnummer" minOccurs="0"/>
 *         <element name="adresse" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Adresse" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Bruker", propOrder = { "fornavn", "etternavn", "foedselsnummer", "adresse" }) public class SDPBruker implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected String fornavn; @XmlElement(required = true) protected String etternavn; protected String foedselsnummer; protected SDPAdresse adresse; /** * Default no-arg constructor * */ public SDPBruker() { super(); } /** * Fully-initialising value constructor * */ public SDPBruker(final String fornavn, final String etternavn, final String foedselsnummer, final SDPAdresse adresse) { this.fornavn = fornavn; this.etternavn = etternavn; this.foedselsnummer = foedselsnummer; this.adresse = adresse; } /** * Gets the value of the fornavn property. * * @return * possible object is * {@link String } * */ public String getFornavn() { return fornavn; } /** * Sets the value of the fornavn property. * * @param value * allowed object is * {@link String } * */ public void setFornavn(String value) { this.fornavn = value; } /** * Gets the value of the etternavn property. * * @return * possible object is * {@link String } * */ public String getEtternavn() { return etternavn; } /** * Sets the value of the etternavn property. * * @param value * allowed object is * {@link String } * */ public void setEtternavn(String value) { this.etternavn = value; } /** * Gets the value of the foedselsnummer property. * * @return * possible object is * {@link String } * */ public String getFoedselsnummer() { return foedselsnummer; } /** * Sets the value of the foedselsnummer property. * * @param value * allowed object is * {@link String } * */ public void setFoedselsnummer(String value) { this.foedselsnummer = value; } /** * Gets the value of the adresse property. * * @return * possible object is * {@link SDPAdresse } * */ public SDPAdresse getAdresse() { return adresse; } /** * Sets the value of the adresse property. * * @param value * allowed object is * {@link SDPAdresse } * */ public void setAdresse(SDPAdresse value) { this.adresse = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theFornavn; theFornavn = this.getFornavn(); strategy.appendField(locator, this, "fornavn", buffer, theFornavn, (this.fornavn!= null)); } { String theEtternavn; theEtternavn = this.getEtternavn(); strategy.appendField(locator, this, "etternavn", buffer, theEtternavn, (this.etternavn!= null)); } { String theFoedselsnummer; theFoedselsnummer = this.getFoedselsnummer(); strategy.appendField(locator, this, "foedselsnummer", buffer, theFoedselsnummer, (this.foedselsnummer!= null)); } { SDPAdresse theAdresse; theAdresse = this.getAdresse(); strategy.appendField(locator, this, "adresse", buffer, theAdresse, (this.adresse!= null)); } return buffer; } 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 SDPBruker that = ((SDPBruker) object); { String lhsFornavn; lhsFornavn = this.getFornavn(); String rhsFornavn; rhsFornavn = that.getFornavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fornavn", lhsFornavn), LocatorUtils.property(thatLocator, "fornavn", rhsFornavn), lhsFornavn, rhsFornavn, (this.fornavn!= null), (that.fornavn!= null))) { return false; } } { String lhsEtternavn; lhsEtternavn = this.getEtternavn(); String rhsEtternavn; rhsEtternavn = that.getEtternavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "etternavn", lhsEtternavn), LocatorUtils.property(thatLocator, "etternavn", rhsEtternavn), lhsEtternavn, rhsEtternavn, (this.etternavn!= null), (that.etternavn!= null))) { return false; } } { String lhsFoedselsnummer; lhsFoedselsnummer = this.getFoedselsnummer(); String rhsFoedselsnummer; rhsFoedselsnummer = that.getFoedselsnummer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "foedselsnummer", lhsFoedselsnummer), LocatorUtils.property(thatLocator, "foedselsnummer", rhsFoedselsnummer), lhsFoedselsnummer, rhsFoedselsnummer, (this.foedselsnummer!= null), (that.foedselsnummer!= null))) { return false; } } { SDPAdresse lhsAdresse; lhsAdresse = this.getAdresse(); SDPAdresse rhsAdresse; rhsAdresse = that.getAdresse(); if (!strategy.equals(LocatorUtils.property(thisLocator, "adresse", lhsAdresse), LocatorUtils.property(thatLocator, "adresse", rhsAdresse), lhsAdresse, rhsAdresse, (this.adresse!= null), (that.adresse!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theFornavn; theFornavn = this.getFornavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fornavn", theFornavn), currentHashCode, theFornavn, (this.fornavn!= null)); } { String theEtternavn; theEtternavn = this.getEtternavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "etternavn", theEtternavn), currentHashCode, theEtternavn, (this.etternavn!= null)); } { String theFoedselsnummer; theFoedselsnummer = this.getFoedselsnummer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "foedselsnummer", theFoedselsnummer), currentHashCode, theFoedselsnummer, (this.foedselsnummer!= null)); } { SDPAdresse theAdresse; theAdresse = this.getAdresse(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresse", theAdresse), currentHashCode, theAdresse, (this.adresse!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public SDPBruker withFornavn(String value) { setFornavn(value); return this; } public SDPBruker withEtternavn(String value) { setEtternavn(value); return this; } public SDPBruker withFoedselsnummer(String value) { setFoedselsnummer(value); return this; } public SDPBruker withAdresse(SDPAdresse value) { setAdresse(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy