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

no.udi.mt_1067_nav_data.v1.Periode 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.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;


/**
 * 

Java class for Periode complex type. * *

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

 * <complexType name="Periode">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Fra" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="Til" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Periode", propOrder = { "fra", "til" }) public class Periode implements Serializable, Equals, HashCode { @XmlElement(name = "Fra", required = true, nillable = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar fra; @XmlElement(name = "Til", required = true, nillable = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar til; /** * Gets the value of the fra property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getFra() { return fra; } /** * Sets the value of the fra property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setFra(XMLGregorianCalendar value) { this.fra = value; } /** * Gets the value of the til property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getTil() { return til; } /** * Sets the value of the til property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTil(XMLGregorianCalendar value) { this.til = value; } public Periode withFra(XMLGregorianCalendar value) { setFra(value); return this; } public Periode withTil(XMLGregorianCalendar value) { setTil(value); return this; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XMLGregorianCalendar theFra; theFra = this.getFra(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fra", theFra), currentHashCode, theFra); } { XMLGregorianCalendar theTil; theTil = this.getTil(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "til", theTil), currentHashCode, theTil); } 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 Periode)) { return false; } if (this == object) { return true; } final Periode that = ((Periode) object); { XMLGregorianCalendar lhsFra; lhsFra = this.getFra(); XMLGregorianCalendar rhsFra; rhsFra = that.getFra(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fra", lhsFra), LocatorUtils.property(thatLocator, "fra", rhsFra), lhsFra, rhsFra)) { return false; } } { XMLGregorianCalendar lhsTil; lhsTil = this.getTil(); XMLGregorianCalendar rhsTil; rhsTil = that.getTil(); if (!strategy.equals(LocatorUtils.property(thisLocator, "til", lhsTil), LocatorUtils.property(thatLocator, "til", rhsTil), lhsTil, rhsTil)) { 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