
no.udi.common.fault.v3.Fault Maven / Gradle / Ivy
package no.udi.common.fault.v3;
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 Fault complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Fault">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="KodeId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="Feilmelding" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Kategori" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Niva" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Fault", propOrder = {
"kodeId",
"feilmelding",
"kategori",
"niva"
})
public class Fault
implements Serializable, Equals, HashCode
{
@XmlElement(name = "KodeId")
protected Integer kodeId;
@XmlElement(name = "Feilmelding")
protected String feilmelding;
@XmlElement(name = "Kategori")
protected String kategori;
@XmlElement(name = "Niva")
protected String niva;
/**
* Gets the value of the kodeId property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getKodeId() {
return kodeId;
}
/**
* Sets the value of the kodeId property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setKodeId(Integer value) {
this.kodeId = value;
}
/**
* Gets the value of the feilmelding property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFeilmelding() {
return feilmelding;
}
/**
* Sets the value of the feilmelding property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFeilmelding(String value) {
this.feilmelding = value;
}
/**
* Gets the value of the kategori property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKategori() {
return kategori;
}
/**
* Sets the value of the kategori property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKategori(String value) {
this.kategori = value;
}
/**
* Gets the value of the niva property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNiva() {
return niva;
}
/**
* Sets the value of the niva property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNiva(String value) {
this.niva = value;
}
public Fault withKodeId(Integer value) {
setKodeId(value);
return this;
}
public Fault withFeilmelding(String value) {
setFeilmelding(value);
return this;
}
public Fault withKategori(String value) {
setKategori(value);
return this;
}
public Fault withNiva(String value) {
setNiva(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
Integer theKodeId;
theKodeId = this.getKodeId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kodeId", theKodeId), currentHashCode, theKodeId);
}
{
String theFeilmelding;
theFeilmelding = this.getFeilmelding();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "feilmelding", theFeilmelding), currentHashCode, theFeilmelding);
}
{
String theKategori;
theKategori = this.getKategori();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kategori", theKategori), currentHashCode, theKategori);
}
{
String theNiva;
theNiva = this.getNiva();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "niva", theNiva), currentHashCode, theNiva);
}
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 Fault)) {
return false;
}
if (this == object) {
return true;
}
final Fault that = ((Fault) object);
{
Integer lhsKodeId;
lhsKodeId = this.getKodeId();
Integer rhsKodeId;
rhsKodeId = that.getKodeId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "kodeId", lhsKodeId), LocatorUtils.property(thatLocator, "kodeId", rhsKodeId), lhsKodeId, rhsKodeId)) {
return false;
}
}
{
String lhsFeilmelding;
lhsFeilmelding = this.getFeilmelding();
String rhsFeilmelding;
rhsFeilmelding = that.getFeilmelding();
if (!strategy.equals(LocatorUtils.property(thisLocator, "feilmelding", lhsFeilmelding), LocatorUtils.property(thatLocator, "feilmelding", rhsFeilmelding), lhsFeilmelding, rhsFeilmelding)) {
return false;
}
}
{
String lhsKategori;
lhsKategori = this.getKategori();
String rhsKategori;
rhsKategori = that.getKategori();
if (!strategy.equals(LocatorUtils.property(thisLocator, "kategori", lhsKategori), LocatorUtils.property(thatLocator, "kategori", rhsKategori), lhsKategori, rhsKategori)) {
return false;
}
}
{
String lhsNiva;
lhsNiva = this.getNiva();
String rhsNiva;
rhsNiva = that.getNiva();
if (!strategy.equals(LocatorUtils.property(thisLocator, "niva", lhsNiva), LocatorUtils.property(thatLocator, "niva", rhsNiva), lhsNiva, rhsNiva)) {
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