
no.udi.common.v2.ApenTilPeriode Maven / Gradle / Ivy
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 tildato kan være ukjent
*
* Java class for ApenTilPeriode complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ApenTilPeriode">
* <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 = "ApenTilPeriode", propOrder = {
"fraDato",
"tilDato"
})
public class ApenTilPeriode
implements Serializable, Equals, HashCode
{
@XmlElement(name = "FraDato", required = 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 ApenTilPeriode withFraDato(XMLGregorianCalendar value) {
setFraDato(value);
return this;
}
public ApenTilPeriode 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 ApenTilPeriode)) {
return false;
}
if (this == object) {
return true;
}
final ApenTilPeriode that = ((ApenTilPeriode) 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