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

no.nhn.schemas.reg.hprv2.WSEndretVerdi 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 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 EndretVerdi complex type. * *

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

 * <complexType name="EndretVerdi">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="GammelVerdi" 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="NyVerdi" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="VerdiNavn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EndretVerdi", propOrder = { "gammelVerdi", "id", "nyVerdi", "verdiNavn" }) public class WSEndretVerdi implements Equals, HashCode { @XmlElement(name = "GammelVerdi", nillable = true) protected String gammelVerdi; @XmlElement(name = "Id") protected Integer id; @XmlElement(name = "NyVerdi", nillable = true) protected String nyVerdi; @XmlElement(name = "VerdiNavn", nillable = true) protected String verdiNavn; /** * Gets the value of the gammelVerdi property. * * @return * possible object is * {@link String } * */ public String getGammelVerdi() { return gammelVerdi; } /** * Sets the value of the gammelVerdi property. * * @param value * allowed object is * {@link String } * */ public void setGammelVerdi(String value) { this.gammelVerdi = 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 nyVerdi property. * * @return * possible object is * {@link String } * */ public String getNyVerdi() { return nyVerdi; } /** * Sets the value of the nyVerdi property. * * @param value * allowed object is * {@link String } * */ public void setNyVerdi(String value) { this.nyVerdi = value; } /** * Gets the value of the verdiNavn property. * * @return * possible object is * {@link String } * */ public String getVerdiNavn() { return verdiNavn; } /** * Sets the value of the verdiNavn property. * * @param value * allowed object is * {@link String } * */ public void setVerdiNavn(String value) { this.verdiNavn = value; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theGammelVerdi; theGammelVerdi = this.getGammelVerdi(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gammelVerdi", theGammelVerdi), currentHashCode, theGammelVerdi); } { Integer theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); } { String theNyVerdi; theNyVerdi = this.getNyVerdi(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "nyVerdi", theNyVerdi), currentHashCode, theNyVerdi); } { String theVerdiNavn; theVerdiNavn = this.getVerdiNavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "verdiNavn", theVerdiNavn), currentHashCode, theVerdiNavn); } 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 WSEndretVerdi)) { return false; } if (this == object) { return true; } final WSEndretVerdi that = ((WSEndretVerdi) object); { String lhsGammelVerdi; lhsGammelVerdi = this.getGammelVerdi(); String rhsGammelVerdi; rhsGammelVerdi = that.getGammelVerdi(); if (!strategy.equals(LocatorUtils.property(thisLocator, "gammelVerdi", lhsGammelVerdi), LocatorUtils.property(thatLocator, "gammelVerdi", rhsGammelVerdi), lhsGammelVerdi, rhsGammelVerdi)) { 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; } } { String lhsNyVerdi; lhsNyVerdi = this.getNyVerdi(); String rhsNyVerdi; rhsNyVerdi = that.getNyVerdi(); if (!strategy.equals(LocatorUtils.property(thisLocator, "nyVerdi", lhsNyVerdi), LocatorUtils.property(thatLocator, "nyVerdi", rhsNyVerdi), lhsNyVerdi, rhsNyVerdi)) { return false; } } { String lhsVerdiNavn; lhsVerdiNavn = this.getVerdiNavn(); String rhsVerdiNavn; rhsVerdiNavn = that.getVerdiNavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "verdiNavn", lhsVerdiNavn), LocatorUtils.property(thatLocator, "verdiNavn", rhsVerdiNavn), lhsVerdiNavn, rhsVerdiNavn)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public WSEndretVerdi withGammelVerdi(String value) { setGammelVerdi(value); return this; } public WSEndretVerdi withId(Integer value) { setId(value); return this; } public WSEndretVerdi withNyVerdi(String value) { setNyVerdi(value); return this; } public WSEndretVerdi withVerdiNavn(String value) { setVerdiNavn(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy