no.nhn.schemas.reg.hprv2.WSEndringslogginnslag Maven / Gradle / Ivy
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 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 Endringslogginnslag complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Endringslogginnslag">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="BrukersVirksomhet" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="EndredeEntiteter" type="{http://schemas.nhn.no/reg/HPRv2}ArrayOfEndretEntitet" minOccurs="0"/>
* <element name="FaktiskBruker" 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="Sporingsgruppe" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Sporingsveri" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Tidspunkt" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="Tjenestebruker" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Endringslogginnslag", propOrder = {
"brukersVirksomhet",
"endredeEntiteter",
"faktiskBruker",
"id",
"sporingsgruppe",
"sporingsveri",
"tidspunkt",
"tjenestebruker"
})
public class WSEndringslogginnslag
implements Equals, HashCode
{
@XmlElement(name = "BrukersVirksomhet", nillable = true)
protected String brukersVirksomhet;
@XmlElement(name = "EndredeEntiteter", nillable = true)
protected WSArrayOfEndretEntitet endredeEntiteter;
@XmlElement(name = "FaktiskBruker", nillable = true)
protected String faktiskBruker;
@XmlElement(name = "Id")
protected Integer id;
@XmlElement(name = "Sporingsgruppe", nillable = true)
protected String sporingsgruppe;
@XmlElement(name = "Sporingsveri", nillable = true)
protected String sporingsveri;
@XmlElement(name = "Tidspunkt", type = String.class)
@XmlJavaTypeAdapter(LocalDateTimeXmlAdapter.class)
@XmlSchemaType(name = "dateTime")
protected LocalDateTime tidspunkt;
@XmlElement(name = "Tjenestebruker", nillable = true)
protected String tjenestebruker;
/**
* Gets the value of the brukersVirksomhet property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrukersVirksomhet() {
return brukersVirksomhet;
}
/**
* Sets the value of the brukersVirksomhet property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrukersVirksomhet(String value) {
this.brukersVirksomhet = value;
}
/**
* Gets the value of the endredeEntiteter property.
*
* @return
* possible object is
* {@link WSArrayOfEndretEntitet }
*
*/
public WSArrayOfEndretEntitet getEndredeEntiteter() {
return endredeEntiteter;
}
/**
* Sets the value of the endredeEntiteter property.
*
* @param value
* allowed object is
* {@link WSArrayOfEndretEntitet }
*
*/
public void setEndredeEntiteter(WSArrayOfEndretEntitet value) {
this.endredeEntiteter = value;
}
/**
* Gets the value of the faktiskBruker property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaktiskBruker() {
return faktiskBruker;
}
/**
* Sets the value of the faktiskBruker property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaktiskBruker(String value) {
this.faktiskBruker = 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 sporingsgruppe property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSporingsgruppe() {
return sporingsgruppe;
}
/**
* Sets the value of the sporingsgruppe property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSporingsgruppe(String value) {
this.sporingsgruppe = value;
}
/**
* Gets the value of the sporingsveri property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSporingsveri() {
return sporingsveri;
}
/**
* Sets the value of the sporingsveri property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSporingsveri(String value) {
this.sporingsveri = value;
}
/**
* Gets the value of the tidspunkt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDateTime getTidspunkt() {
return tidspunkt;
}
/**
* Sets the value of the tidspunkt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTidspunkt(LocalDateTime value) {
this.tidspunkt = value;
}
/**
* Gets the value of the tjenestebruker property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTjenestebruker() {
return tjenestebruker;
}
/**
* Sets the value of the tjenestebruker property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTjenestebruker(String value) {
this.tjenestebruker = value;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theBrukersVirksomhet;
theBrukersVirksomhet = this.getBrukersVirksomhet();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brukersVirksomhet", theBrukersVirksomhet), currentHashCode, theBrukersVirksomhet);
}
{
WSArrayOfEndretEntitet theEndredeEntiteter;
theEndredeEntiteter = this.getEndredeEntiteter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endredeEntiteter", theEndredeEntiteter), currentHashCode, theEndredeEntiteter);
}
{
String theFaktiskBruker;
theFaktiskBruker = this.getFaktiskBruker();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faktiskBruker", theFaktiskBruker), currentHashCode, theFaktiskBruker);
}
{
Integer theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
}
{
String theSporingsgruppe;
theSporingsgruppe = this.getSporingsgruppe();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sporingsgruppe", theSporingsgruppe), currentHashCode, theSporingsgruppe);
}
{
String theSporingsveri;
theSporingsveri = this.getSporingsveri();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sporingsveri", theSporingsveri), currentHashCode, theSporingsveri);
}
{
LocalDateTime theTidspunkt;
theTidspunkt = this.getTidspunkt();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tidspunkt", theTidspunkt), currentHashCode, theTidspunkt);
}
{
String theTjenestebruker;
theTjenestebruker = this.getTjenestebruker();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tjenestebruker", theTjenestebruker), currentHashCode, theTjenestebruker);
}
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 WSEndringslogginnslag)) {
return false;
}
if (this == object) {
return true;
}
final WSEndringslogginnslag that = ((WSEndringslogginnslag) object);
{
String lhsBrukersVirksomhet;
lhsBrukersVirksomhet = this.getBrukersVirksomhet();
String rhsBrukersVirksomhet;
rhsBrukersVirksomhet = that.getBrukersVirksomhet();
if (!strategy.equals(LocatorUtils.property(thisLocator, "brukersVirksomhet", lhsBrukersVirksomhet), LocatorUtils.property(thatLocator, "brukersVirksomhet", rhsBrukersVirksomhet), lhsBrukersVirksomhet, rhsBrukersVirksomhet)) {
return false;
}
}
{
WSArrayOfEndretEntitet lhsEndredeEntiteter;
lhsEndredeEntiteter = this.getEndredeEntiteter();
WSArrayOfEndretEntitet rhsEndredeEntiteter;
rhsEndredeEntiteter = that.getEndredeEntiteter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "endredeEntiteter", lhsEndredeEntiteter), LocatorUtils.property(thatLocator, "endredeEntiteter", rhsEndredeEntiteter), lhsEndredeEntiteter, rhsEndredeEntiteter)) {
return false;
}
}
{
String lhsFaktiskBruker;
lhsFaktiskBruker = this.getFaktiskBruker();
String rhsFaktiskBruker;
rhsFaktiskBruker = that.getFaktiskBruker();
if (!strategy.equals(LocatorUtils.property(thisLocator, "faktiskBruker", lhsFaktiskBruker), LocatorUtils.property(thatLocator, "faktiskBruker", rhsFaktiskBruker), lhsFaktiskBruker, rhsFaktiskBruker)) {
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 lhsSporingsgruppe;
lhsSporingsgruppe = this.getSporingsgruppe();
String rhsSporingsgruppe;
rhsSporingsgruppe = that.getSporingsgruppe();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sporingsgruppe", lhsSporingsgruppe), LocatorUtils.property(thatLocator, "sporingsgruppe", rhsSporingsgruppe), lhsSporingsgruppe, rhsSporingsgruppe)) {
return false;
}
}
{
String lhsSporingsveri;
lhsSporingsveri = this.getSporingsveri();
String rhsSporingsveri;
rhsSporingsveri = that.getSporingsveri();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sporingsveri", lhsSporingsveri), LocatorUtils.property(thatLocator, "sporingsveri", rhsSporingsveri), lhsSporingsveri, rhsSporingsveri)) {
return false;
}
}
{
LocalDateTime lhsTidspunkt;
lhsTidspunkt = this.getTidspunkt();
LocalDateTime rhsTidspunkt;
rhsTidspunkt = that.getTidspunkt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tidspunkt", lhsTidspunkt), LocatorUtils.property(thatLocator, "tidspunkt", rhsTidspunkt), lhsTidspunkt, rhsTidspunkt)) {
return false;
}
}
{
String lhsTjenestebruker;
lhsTjenestebruker = this.getTjenestebruker();
String rhsTjenestebruker;
rhsTjenestebruker = that.getTjenestebruker();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tjenestebruker", lhsTjenestebruker), LocatorUtils.property(thatLocator, "tjenestebruker", rhsTjenestebruker), lhsTjenestebruker, rhsTjenestebruker)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public WSEndringslogginnslag withBrukersVirksomhet(String value) {
setBrukersVirksomhet(value);
return this;
}
public WSEndringslogginnslag withEndredeEntiteter(WSArrayOfEndretEntitet value) {
setEndredeEntiteter(value);
return this;
}
public WSEndringslogginnslag withFaktiskBruker(String value) {
setFaktiskBruker(value);
return this;
}
public WSEndringslogginnslag withId(Integer value) {
setId(value);
return this;
}
public WSEndringslogginnslag withSporingsgruppe(String value) {
setSporingsgruppe(value);
return this;
}
public WSEndringslogginnslag withSporingsveri(String value) {
setSporingsveri(value);
return this;
}
public WSEndringslogginnslag withTidspunkt(LocalDateTime value) {
setTidspunkt(value);
return this;
}
public WSEndringslogginnslag withTjenestebruker(String value) {
setTjenestebruker(value);
return this;
}
}