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

no.udi.common.v2.ApenPeriode Maven / Gradle / Ivy

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

package no.udi.common.v2;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
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;


/**
 * Opplysninger om en periode der fra- og tildato kan være ukjent
 * 
 * 

Java class for ApenPeriode complex type. * *

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

 * <complexType name="ApenPeriode">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="FraDato" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="TilDato" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ApenPeriode", propOrder = { "fraDato", "tilDato" }) public class ApenPeriode implements Serializable, Equals, HashCode { @XmlElement(name = "FraDato", required = true, nillable = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar fraDato; @XmlElement(name = "TilDato", required = true, nillable = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar tilDato; /** * Gets the value of the fraDato property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getFraDato() { return fraDato; } /** * Sets the value of the fraDato property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setFraDato(XMLGregorianCalendar value) { this.fraDato = value; } /** * Gets the value of the tilDato property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getTilDato() { return tilDato; } /** * Sets the value of the tilDato property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTilDato(XMLGregorianCalendar value) { this.tilDato = value; } public ApenPeriode withFraDato(XMLGregorianCalendar value) { setFraDato(value); return this; } public ApenPeriode withTilDato(XMLGregorianCalendar value) { setTilDato(value); return this; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XMLGregorianCalendar theFraDato; theFraDato = this.getFraDato(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fraDato", theFraDato), currentHashCode, theFraDato); } { XMLGregorianCalendar theTilDato; theTilDato = this.getTilDato(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tilDato", theTilDato), currentHashCode, theTilDato); } 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 ApenPeriode)) { return false; } if (this == object) { return true; } final ApenPeriode that = ((ApenPeriode) object); { XMLGregorianCalendar lhsFraDato; lhsFraDato = this.getFraDato(); XMLGregorianCalendar rhsFraDato; rhsFraDato = that.getFraDato(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fraDato", lhsFraDato), LocatorUtils.property(thatLocator, "fraDato", rhsFraDato), lhsFraDato, rhsFraDato)) { return false; } } { XMLGregorianCalendar lhsTilDato; lhsTilDato = this.getTilDato(); XMLGregorianCalendar rhsTilDato; rhsTilDato = that.getTilDato(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tilDato", lhsTilDato), LocatorUtils.property(thatLocator, "tilDato", rhsTilDato), lhsTilDato, rhsTilDato)) { 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