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

no.udi.common.v2.Kodeverksdefinisjon 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;


/**
 * 

Java class for Kodeverksdefinisjon complex type. * *

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

 * <complexType name="Kodeverksdefinisjon">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Kode" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Visningsnavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Beskrivelse" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <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 = "Kodeverksdefinisjon", propOrder = { "kode", "visningsnavn", "type", "beskrivelse", "fraDato", "tilDato" }) public class Kodeverksdefinisjon implements Serializable, Equals, HashCode { @XmlElement(name = "Kode", required = true) protected String kode; @XmlElement(name = "Visningsnavn", required = true) protected String visningsnavn; @XmlElement(name = "Type", required = true) protected String type; @XmlElement(name = "Beskrivelse") protected String beskrivelse; @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 kode property. * * @return * possible object is * {@link String } * */ public String getKode() { return kode; } /** * Sets the value of the kode property. * * @param value * allowed object is * {@link String } * */ public void setKode(String value) { this.kode = value; } /** * Gets the value of the visningsnavn property. * * @return * possible object is * {@link String } * */ public String getVisningsnavn() { return visningsnavn; } /** * Sets the value of the visningsnavn property. * * @param value * allowed object is * {@link String } * */ public void setVisningsnavn(String value) { this.visningsnavn = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the beskrivelse property. * * @return * possible object is * {@link String } * */ public String getBeskrivelse() { return beskrivelse; } /** * Sets the value of the beskrivelse property. * * @param value * allowed object is * {@link String } * */ public void setBeskrivelse(String value) { this.beskrivelse = value; } /** * 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 Kodeverksdefinisjon withKode(String value) { setKode(value); return this; } public Kodeverksdefinisjon withVisningsnavn(String value) { setVisningsnavn(value); return this; } public Kodeverksdefinisjon withType(String value) { setType(value); return this; } public Kodeverksdefinisjon withBeskrivelse(String value) { setBeskrivelse(value); return this; } public Kodeverksdefinisjon withFraDato(XMLGregorianCalendar value) { setFraDato(value); return this; } public Kodeverksdefinisjon withTilDato(XMLGregorianCalendar value) { setTilDato(value); return this; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theKode; theKode = this.getKode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kode", theKode), currentHashCode, theKode); } { String theVisningsnavn; theVisningsnavn = this.getVisningsnavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "visningsnavn", theVisningsnavn), currentHashCode, theVisningsnavn); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { String theBeskrivelse; theBeskrivelse = this.getBeskrivelse(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "beskrivelse", theBeskrivelse), currentHashCode, theBeskrivelse); } { 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 Kodeverksdefinisjon)) { return false; } if (this == object) { return true; } final Kodeverksdefinisjon that = ((Kodeverksdefinisjon) object); { String lhsKode; lhsKode = this.getKode(); String rhsKode; rhsKode = that.getKode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "kode", lhsKode), LocatorUtils.property(thatLocator, "kode", rhsKode), lhsKode, rhsKode)) { return false; } } { String lhsVisningsnavn; lhsVisningsnavn = this.getVisningsnavn(); String rhsVisningsnavn; rhsVisningsnavn = that.getVisningsnavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "visningsnavn", lhsVisningsnavn), LocatorUtils.property(thatLocator, "visningsnavn", rhsVisningsnavn), lhsVisningsnavn, rhsVisningsnavn)) { return false; } } { String lhsType; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; } } { String lhsBeskrivelse; lhsBeskrivelse = this.getBeskrivelse(); String rhsBeskrivelse; rhsBeskrivelse = that.getBeskrivelse(); if (!strategy.equals(LocatorUtils.property(thisLocator, "beskrivelse", lhsBeskrivelse), LocatorUtils.property(thatLocator, "beskrivelse", rhsBeskrivelse), lhsBeskrivelse, rhsBeskrivelse)) { return false; } } { 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