no.nhn.schemas.reg.hprv2.WSTilleggskompetanse Maven / Gradle / Ivy
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 no.nhn.schemas.reg.common.no.WSKode;
import no.nhn.schemas.reg.common.no.WSPeriode;
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 Tilleggskompetanse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Tilleggskompetanse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AvsluttetStatus" type="{http://schemas.nhn.no/reg/Common/no}Kode" minOccurs="0"/>
* <element name="ETag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Gyldig" type="{http://schemas.nhn.no/reg/Common/no}Periode" minOccurs="0"/>
* <element name="Id" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="Type" type="{http://schemas.nhn.no/reg/Common/no}Kode" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Tilleggskompetanse", propOrder = {
"avsluttetStatus",
"eTag",
"gyldig",
"id",
"type"
})
public class WSTilleggskompetanse
implements Equals, HashCode
{
@XmlElement(name = "AvsluttetStatus", nillable = true)
protected WSKode avsluttetStatus;
@XmlElement(name = "ETag", nillable = true)
protected String eTag;
@XmlElement(name = "Gyldig", nillable = true)
protected WSPeriode gyldig;
@XmlElement(name = "Id")
protected Integer id;
@XmlElement(name = "Type", nillable = true)
protected WSKode type;
/**
* Gets the value of the avsluttetStatus property.
*
* @return
* possible object is
* {@link WSKode }
*
*/
public WSKode getAvsluttetStatus() {
return avsluttetStatus;
}
/**
* Sets the value of the avsluttetStatus property.
*
* @param value
* allowed object is
* {@link WSKode }
*
*/
public void setAvsluttetStatus(WSKode value) {
this.avsluttetStatus = value;
}
/**
* 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 gyldig property.
*
* @return
* possible object is
* {@link WSPeriode }
*
*/
public WSPeriode getGyldig() {
return gyldig;
}
/**
* Sets the value of the gyldig property.
*
* @param value
* allowed object is
* {@link WSPeriode }
*
*/
public void setGyldig(WSPeriode value) {
this.gyldig = 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 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;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
WSKode theAvsluttetStatus;
theAvsluttetStatus = this.getAvsluttetStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "avsluttetStatus", theAvsluttetStatus), currentHashCode, theAvsluttetStatus);
}
{
String theETag;
theETag = this.getETag();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eTag", theETag), currentHashCode, theETag);
}
{
WSPeriode theGyldig;
theGyldig = this.getGyldig();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gyldig", theGyldig), currentHashCode, theGyldig);
}
{
Integer theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
}
{
WSKode 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 WSTilleggskompetanse)) {
return false;
}
if (this == object) {
return true;
}
final WSTilleggskompetanse that = ((WSTilleggskompetanse) object);
{
WSKode lhsAvsluttetStatus;
lhsAvsluttetStatus = this.getAvsluttetStatus();
WSKode rhsAvsluttetStatus;
rhsAvsluttetStatus = that.getAvsluttetStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "avsluttetStatus", lhsAvsluttetStatus), LocatorUtils.property(thatLocator, "avsluttetStatus", rhsAvsluttetStatus), lhsAvsluttetStatus, rhsAvsluttetStatus)) {
return false;
}
}
{
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;
}
}
{
WSPeriode lhsGyldig;
lhsGyldig = this.getGyldig();
WSPeriode rhsGyldig;
rhsGyldig = that.getGyldig();
if (!strategy.equals(LocatorUtils.property(thisLocator, "gyldig", lhsGyldig), LocatorUtils.property(thatLocator, "gyldig", rhsGyldig), lhsGyldig, rhsGyldig)) {
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;
}
}
{
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;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public WSTilleggskompetanse withAvsluttetStatus(WSKode value) {
setAvsluttetStatus(value);
return this;
}
public WSTilleggskompetanse withETag(String value) {
setETag(value);
return this;
}
public WSTilleggskompetanse withGyldig(WSPeriode value) {
setGyldig(value);
return this;
}
public WSTilleggskompetanse withId(Integer value) {
setId(value);
return this;
}
public WSTilleggskompetanse withType(WSKode value) {
setType(value);
return this;
}
}