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

no.udi.mt_1067_nav_data.v1.MangelfullDato Maven / Gradle / Ivy

There is a newer version: 1.2019.09.25-00.21-49b69f0625e0
Show newest version

package no.udi.mt_1067_nav_data.v1;

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 MangelfullDato complex type. * *

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

 * <complexType name="MangelfullDato">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Ar" type="{http://udi.no/Common/v2}Ar"/>
 *         <element name="Maned" type="{http://udi.no/Common/v2}Maned"/>
 *         <element name="Dag" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MangelfullDato", propOrder = { "ar", "maned", "dag" }) public class MangelfullDato implements Serializable, Equals, HashCode { @XmlElement(name = "Ar", required = true, type = Integer.class, nillable = true) protected Integer ar; @XmlElement(name = "Maned", required = true, type = Integer.class, nillable = true) protected Integer maned; @XmlElement(name = "Dag", required = true, type = Integer.class, nillable = true) protected Integer dag; /** * Gets the value of the ar property. * * @return * possible object is * {@link Integer } * */ public Integer getAr() { return ar; } /** * Sets the value of the ar property. * * @param value * allowed object is * {@link Integer } * */ public void setAr(Integer value) { this.ar = value; } /** * Gets the value of the maned property. * * @return * possible object is * {@link Integer } * */ public Integer getManed() { return maned; } /** * Sets the value of the maned property. * * @param value * allowed object is * {@link Integer } * */ public void setManed(Integer value) { this.maned = value; } /** * Gets the value of the dag property. * * @return * possible object is * {@link Integer } * */ public Integer getDag() { return dag; } /** * Sets the value of the dag property. * * @param value * allowed object is * {@link Integer } * */ public void setDag(Integer value) { this.dag = value; } public MangelfullDato withAr(Integer value) { setAr(value); return this; } public MangelfullDato withManed(Integer value) { setManed(value); return this; } public MangelfullDato withDag(Integer value) { setDag(value); return this; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { Integer theAr; theAr = this.getAr(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ar", theAr), currentHashCode, theAr); } { Integer theManed; theManed = this.getManed(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maned", theManed), currentHashCode, theManed); } { Integer theDag; theDag = this.getDag(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dag", theDag), currentHashCode, theDag); } 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 MangelfullDato)) { return false; } if (this == object) { return true; } final MangelfullDato that = ((MangelfullDato) object); { Integer lhsAr; lhsAr = this.getAr(); Integer rhsAr; rhsAr = that.getAr(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ar", lhsAr), LocatorUtils.property(thatLocator, "ar", rhsAr), lhsAr, rhsAr)) { return false; } } { Integer lhsManed; lhsManed = this.getManed(); Integer rhsManed; rhsManed = that.getManed(); if (!strategy.equals(LocatorUtils.property(thisLocator, "maned", lhsManed), LocatorUtils.property(thatLocator, "maned", rhsManed), lhsManed, rhsManed)) { return false; } } { Integer lhsDag; lhsDag = this.getDag(); Integer rhsDag; rhsDag = that.getDag(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dag", lhsDag), LocatorUtils.property(thatLocator, "dag", rhsDag), lhsDag, rhsDag)) { 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