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

no.nhn.schemas.reg.hprv2.WSHentRegisterEndringer 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 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.XmlRootElement;
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 anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="fra" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="til" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="side" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *         <element name="resultaterPerSide" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "fra", "til", "side", "resultaterPerSide" }) @XmlRootElement(name = "HentRegisterEndringer") public class WSHentRegisterEndringer implements Equals, HashCode { @XmlElement(type = String.class) @XmlJavaTypeAdapter(LocalDateTimeXmlAdapter.class) @XmlSchemaType(name = "dateTime") protected LocalDateTime fra; @XmlElement(type = String.class) @XmlJavaTypeAdapter(LocalDateTimeXmlAdapter.class) @XmlSchemaType(name = "dateTime") protected LocalDateTime til; protected Integer side; protected Integer resultaterPerSide; /** * Gets the value of the fra property. * * @return * possible object is * {@link String } * */ public LocalDateTime getFra() { return fra; } /** * Sets the value of the fra property. * * @param value * allowed object is * {@link String } * */ public void setFra(LocalDateTime value) { this.fra = value; } /** * Gets the value of the til property. * * @return * possible object is * {@link String } * */ public LocalDateTime getTil() { return til; } /** * Sets the value of the til property. * * @param value * allowed object is * {@link String } * */ public void setTil(LocalDateTime value) { this.til = value; } /** * Gets the value of the side property. * * @return * possible object is * {@link Integer } * */ public Integer getSide() { return side; } /** * Sets the value of the side property. * * @param value * allowed object is * {@link Integer } * */ public void setSide(Integer value) { this.side = value; } /** * Gets the value of the resultaterPerSide property. * * @return * possible object is * {@link Integer } * */ public Integer getResultaterPerSide() { return resultaterPerSide; } /** * Sets the value of the resultaterPerSide property. * * @param value * allowed object is * {@link Integer } * */ public void setResultaterPerSide(Integer value) { this.resultaterPerSide = value; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { LocalDateTime theFra; theFra = this.getFra(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fra", theFra), currentHashCode, theFra); } { LocalDateTime theTil; theTil = this.getTil(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "til", theTil), currentHashCode, theTil); } { Integer theSide; theSide = this.getSide(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "side", theSide), currentHashCode, theSide); } { Integer theResultaterPerSide; theResultaterPerSide = this.getResultaterPerSide(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resultaterPerSide", theResultaterPerSide), currentHashCode, theResultaterPerSide); } 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 WSHentRegisterEndringer)) { return false; } if (this == object) { return true; } final WSHentRegisterEndringer that = ((WSHentRegisterEndringer) object); { LocalDateTime lhsFra; lhsFra = this.getFra(); LocalDateTime rhsFra; rhsFra = that.getFra(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fra", lhsFra), LocatorUtils.property(thatLocator, "fra", rhsFra), lhsFra, rhsFra)) { return false; } } { LocalDateTime lhsTil; lhsTil = this.getTil(); LocalDateTime rhsTil; rhsTil = that.getTil(); if (!strategy.equals(LocatorUtils.property(thisLocator, "til", lhsTil), LocatorUtils.property(thatLocator, "til", rhsTil), lhsTil, rhsTil)) { return false; } } { Integer lhsSide; lhsSide = this.getSide(); Integer rhsSide; rhsSide = that.getSide(); if (!strategy.equals(LocatorUtils.property(thisLocator, "side", lhsSide), LocatorUtils.property(thatLocator, "side", rhsSide), lhsSide, rhsSide)) { return false; } } { Integer lhsResultaterPerSide; lhsResultaterPerSide = this.getResultaterPerSide(); Integer rhsResultaterPerSide; rhsResultaterPerSide = that.getResultaterPerSide(); if (!strategy.equals(LocatorUtils.property(thisLocator, "resultaterPerSide", lhsResultaterPerSide), LocatorUtils.property(thatLocator, "resultaterPerSide", rhsResultaterPerSide), lhsResultaterPerSide, rhsResultaterPerSide)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public WSHentRegisterEndringer withFra(LocalDateTime value) { setFra(value); return this; } public WSHentRegisterEndringer withTil(LocalDateTime value) { setTil(value); return this; } public WSHentRegisterEndringer withSide(Integer value) { setSide(value); return this; } public WSHentRegisterEndringer withResultaterPerSide(Integer value) { setResultaterPerSide(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy