
no.udi.common.v2.Kodeverk Maven / Gradle / Ivy
package no.udi.common.v2;
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 Kodeverk complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Kodeverk">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Kode" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Visningsnavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Kodeverk", propOrder = {
"kode",
"visningsnavn",
"type"
})
public class Kodeverk
implements Serializable, Equals, HashCode
{
@XmlElement(name = "Kode", required = true)
protected String kode;
@XmlElement(name = "Visningsnavn", required = true)
protected String visningsnavn;
@XmlElement(name = "Type", required = true)
protected String type;
/**
* Gets the value of the kode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKode() {
return kode;
}
/**
* Sets the value of the kode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKode(String value) {
this.kode = value;
}
/**
* Gets the value of the visningsnavn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVisningsnavn() {
return visningsnavn;
}
/**
* Sets the value of the visningsnavn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVisningsnavn(String value) {
this.visningsnavn = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
public Kodeverk withKode(String value) {
setKode(value);
return this;
}
public Kodeverk withVisningsnavn(String value) {
setVisningsnavn(value);
return this;
}
public Kodeverk withType(String value) {
setType(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theKode;
theKode = this.getKode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kode", theKode), currentHashCode, theKode);
}
{
String theVisningsnavn;
theVisningsnavn = this.getVisningsnavn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "visningsnavn", theVisningsnavn), currentHashCode, theVisningsnavn);
}
{
String theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
}
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 Kodeverk)) {
return false;
}
if (this == object) {
return true;
}
final Kodeverk that = ((Kodeverk) object);
{
String lhsKode;
lhsKode = this.getKode();
String rhsKode;
rhsKode = that.getKode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "kode", lhsKode), LocatorUtils.property(thatLocator, "kode", rhsKode), lhsKode, rhsKode)) {
return false;
}
}
{
String lhsVisningsnavn;
lhsVisningsnavn = this.getVisningsnavn();
String rhsVisningsnavn;
rhsVisningsnavn = that.getVisningsnavn();
if (!strategy.equals(LocatorUtils.property(thisLocator, "visningsnavn", lhsVisningsnavn), LocatorUtils.property(thatLocator, "visningsnavn", rhsVisningsnavn), lhsVisningsnavn, rhsVisningsnavn)) {
return false;
}
}
{
String lhsType;
lhsType = this.getType();
String rhsType;
rhsType = that.getType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) {
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