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

no.nhn.schemas.reg.hprv2.WSUtdannelse Maven / Gradle / Ivy

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

package no.nhn.schemas.reg.hprv2;

import java.time.LocalDateTime;
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 com.migesok.jaxb.adapter.javatime.LocalDateTimeXmlAdapter;
import no.nhn.schemas.reg.common.no.WSKode;
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 Utdannelse complex type. * *

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

 * <complexType name="Utdannelse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ETag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *         <element name="Institution" type="{http://schemas.nhn.no/reg/HPRv2}Utdanningsinstitusjon" minOccurs="0"/>
 *         <element name="Land" type="{http://schemas.nhn.no/reg/Common/no}Kode" minOccurs="0"/>
 *         <element name="Type" type="{http://schemas.nhn.no/reg/Common/no}Kode" minOccurs="0"/>
 *         <element name="Vitnemålsdato" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Utdannelse", propOrder = { "eTag", "id", "institution", "land", "type", "vitnem\u00e5lsdato" }) public class WSUtdannelse implements Equals, HashCode { @XmlElement(name = "ETag", nillable = true) protected String eTag; @XmlElement(name = "Id") protected Integer id; @XmlElement(name = "Institution", nillable = true) protected WSUtdanningsinstitusjon institution; @XmlElement(name = "Land", nillable = true) protected WSKode land; @XmlElement(name = "Type", nillable = true) protected WSKode type; @XmlElement(name = "Vitnem\u00e5lsdato", type = String.class, nillable = true) @XmlJavaTypeAdapter(LocalDateTimeXmlAdapter.class) @XmlSchemaType(name = "dateTime") protected LocalDateTime vitnemålsdato; /** * Gets the value of the eTag property. * * @return * possible object is * {@link String } * */ public String getETag() { return eTag; } /** * Sets the value of the eTag property. * * @param value * allowed object is * {@link String } * */ public void setETag(String value) { this.eTag = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link Integer } * */ public Integer getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link Integer } * */ public void setId(Integer value) { this.id = value; } /** * Gets the value of the institution property. * * @return * possible object is * {@link WSUtdanningsinstitusjon } * */ public WSUtdanningsinstitusjon getInstitution() { return institution; } /** * Sets the value of the institution property. * * @param value * allowed object is * {@link WSUtdanningsinstitusjon } * */ public void setInstitution(WSUtdanningsinstitusjon value) { this.institution = value; } /** * Gets the value of the land property. * * @return * possible object is * {@link WSKode } * */ public WSKode getLand() { return land; } /** * Sets the value of the land property. * * @param value * allowed object is * {@link WSKode } * */ public void setLand(WSKode value) { this.land = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link WSKode } * */ public WSKode getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link WSKode } * */ public void setType(WSKode value) { this.type = value; } /** * Gets the value of the vitnemålsdato property. * * @return * possible object is * {@link String } * */ public LocalDateTime getVitnemålsdato() { return vitnemålsdato; } /** * Sets the value of the vitnemålsdato property. * * @param value * allowed object is * {@link String } * */ public void setVitnemålsdato(LocalDateTime value) { this.vitnemålsdato = value; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theETag; theETag = this.getETag(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eTag", theETag), currentHashCode, theETag); } { Integer theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); } { WSUtdanningsinstitusjon theInstitution; theInstitution = this.getInstitution(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "institution", theInstitution), currentHashCode, theInstitution); } { WSKode theLand; theLand = this.getLand(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "land", theLand), currentHashCode, theLand); } { WSKode theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { LocalDateTime theVitnemålsdato; theVitnemålsdato = this.getVitnemålsdato(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "vitnem\u00e5lsdato", theVitnemålsdato), currentHashCode, theVitnemålsdato); } 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 WSUtdannelse)) { return false; } if (this == object) { return true; } final WSUtdannelse that = ((WSUtdannelse) object); { String lhsETag; lhsETag = this.getETag(); String rhsETag; rhsETag = that.getETag(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eTag", lhsETag), LocatorUtils.property(thatLocator, "eTag", rhsETag), lhsETag, rhsETag)) { return false; } } { Integer lhsId; lhsId = this.getId(); Integer rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) { return false; } } { WSUtdanningsinstitusjon lhsInstitution; lhsInstitution = this.getInstitution(); WSUtdanningsinstitusjon rhsInstitution; rhsInstitution = that.getInstitution(); if (!strategy.equals(LocatorUtils.property(thisLocator, "institution", lhsInstitution), LocatorUtils.property(thatLocator, "institution", rhsInstitution), lhsInstitution, rhsInstitution)) { return false; } } { WSKode lhsLand; lhsLand = this.getLand(); WSKode rhsLand; rhsLand = that.getLand(); if (!strategy.equals(LocatorUtils.property(thisLocator, "land", lhsLand), LocatorUtils.property(thatLocator, "land", rhsLand), lhsLand, rhsLand)) { return false; } } { WSKode lhsType; lhsType = this.getType(); WSKode rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; } } { LocalDateTime lhsVitnemålsdato; lhsVitnemålsdato = this.getVitnemålsdato(); LocalDateTime rhsVitnemålsdato; rhsVitnemålsdato = that.getVitnemålsdato(); if (!strategy.equals(LocatorUtils.property(thisLocator, "vitnem\u00e5lsdato", lhsVitnemålsdato), LocatorUtils.property(thatLocator, "vitnem\u00e5lsdato", rhsVitnemålsdato), lhsVitnemålsdato, rhsVitnemålsdato)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public WSUtdannelse withETag(String value) { setETag(value); return this; } public WSUtdannelse withId(Integer value) { setId(value); return this; } public WSUtdannelse withInstitution(WSUtdanningsinstitusjon value) { setInstitution(value); return this; } public WSUtdannelse withLand(WSKode value) { setLand(value); return this; } public WSUtdannelse withType(WSKode value) { setType(value); return this; } public WSUtdannelse withVitnemålsdato(LocalDateTime value) { setVitnemålsdato(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy