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

no.difi.begrep.sdp.utvidelser.bevis.SDPBevis Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.12.01 at 12:54:39 PM UTC 
//


package no.difi.begrep.sdp.utvidelser.bevis;

import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import no.digipost.xsd.jaxb.XSDateTimeAdapter;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for Bevis complex type. * *

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

 * <complexType name="Bevis">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="utsteder-visningsnavn" type="{http://begrep.difi.no/sdp/utvidelser/bevis}UtstederVisningsnavn" minOccurs="0"/>
 *         <element name="bakgrunnsfarge" type="{http://begrep.difi.no/sdp/utvidelser/bevis}HexFargeKode" minOccurs="0"/>
 *         <element name="utstedt-tidspunkt" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="gyldighetsperiode" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Gyldighetsperiode" minOccurs="0"/>
 *         <element name="bevisholder" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Bruker"/>
 *         <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Tittel"/>
 *         <element name="bevis-id-navn" type="{http://begrep.difi.no/sdp/utvidelser/bevis}BevisIdNavn" minOccurs="0"/>
 *         <element name="bevis-id-verdi" type="{http://begrep.difi.no/sdp/utvidelser/bevis}String100" minOccurs="0"/>
 *         <element name="attributt" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Attributt" maxOccurs="5" minOccurs="0"/>
 *         <element name="info" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Info" maxOccurs="3" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Bevis", propOrder = { "utstederVisningsnavn", "bakgrunnsfarge", "utstedtTidspunkt", "gyldighetsperiode", "bevisholder", "tittel", "bevisIdNavn", "bevisIdVerdi", "attributts", "infos" }) @XmlRootElement(name = "bevis") public class SDPBevis implements Equals2, HashCode2, ToString2 { @XmlElement(name = "utsteder-visningsnavn") protected SDPUtstederVisningsnavn utstederVisningsnavn; protected String bakgrunnsfarge; @XmlElement(name = "utstedt-tidspunkt", type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime utstedtTidspunkt; protected SDPGyldighetsperiode gyldighetsperiode; @XmlElement(required = true) protected SDPBruker bevisholder; @XmlElement(required = true) protected SDPTittel tittel; @XmlElement(name = "bevis-id-navn") protected SDPBevisIdNavn bevisIdNavn; @XmlElement(name = "bevis-id-verdi") protected String bevisIdVerdi; @XmlElement(name = "attributt") protected List attributts; @XmlElement(name = "info") protected List infos; /** * Default no-arg constructor * */ public SDPBevis() { super(); } /** * Fully-initialising value constructor * */ public SDPBevis(final SDPUtstederVisningsnavn utstederVisningsnavn, final String bakgrunnsfarge, final ZonedDateTime utstedtTidspunkt, final SDPGyldighetsperiode gyldighetsperiode, final SDPBruker bevisholder, final SDPTittel tittel, final SDPBevisIdNavn bevisIdNavn, final String bevisIdVerdi, final List attributts, final List infos) { this.utstederVisningsnavn = utstederVisningsnavn; this.bakgrunnsfarge = bakgrunnsfarge; this.utstedtTidspunkt = utstedtTidspunkt; this.gyldighetsperiode = gyldighetsperiode; this.bevisholder = bevisholder; this.tittel = tittel; this.bevisIdNavn = bevisIdNavn; this.bevisIdVerdi = bevisIdVerdi; this.attributts = attributts; this.infos = infos; } /** * Gets the value of the utstederVisningsnavn property. * * @return * possible object is * {@link SDPUtstederVisningsnavn } * */ public SDPUtstederVisningsnavn getUtstederVisningsnavn() { return utstederVisningsnavn; } /** * Sets the value of the utstederVisningsnavn property. * * @param value * allowed object is * {@link SDPUtstederVisningsnavn } * */ public void setUtstederVisningsnavn(SDPUtstederVisningsnavn value) { this.utstederVisningsnavn = value; } /** * Gets the value of the bakgrunnsfarge property. * * @return * possible object is * {@link String } * */ public String getBakgrunnsfarge() { return bakgrunnsfarge; } /** * Sets the value of the bakgrunnsfarge property. * * @param value * allowed object is * {@link String } * */ public void setBakgrunnsfarge(String value) { this.bakgrunnsfarge = value; } /** * Gets the value of the utstedtTidspunkt property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getUtstedtTidspunkt() { return utstedtTidspunkt; } /** * Sets the value of the utstedtTidspunkt property. * * @param value * allowed object is * {@link String } * */ public void setUtstedtTidspunkt(ZonedDateTime value) { this.utstedtTidspunkt = value; } /** * Gets the value of the gyldighetsperiode property. * * @return * possible object is * {@link SDPGyldighetsperiode } * */ public SDPGyldighetsperiode getGyldighetsperiode() { return gyldighetsperiode; } /** * Sets the value of the gyldighetsperiode property. * * @param value * allowed object is * {@link SDPGyldighetsperiode } * */ public void setGyldighetsperiode(SDPGyldighetsperiode value) { this.gyldighetsperiode = value; } /** * Gets the value of the bevisholder property. * * @return * possible object is * {@link SDPBruker } * */ public SDPBruker getBevisholder() { return bevisholder; } /** * Sets the value of the bevisholder property. * * @param value * allowed object is * {@link SDPBruker } * */ public void setBevisholder(SDPBruker value) { this.bevisholder = value; } /** * Gets the value of the tittel property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getTittel() { return tittel; } /** * Sets the value of the tittel property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setTittel(SDPTittel value) { this.tittel = value; } /** * Gets the value of the bevisIdNavn property. * * @return * possible object is * {@link SDPBevisIdNavn } * */ public SDPBevisIdNavn getBevisIdNavn() { return bevisIdNavn; } /** * Sets the value of the bevisIdNavn property. * * @param value * allowed object is * {@link SDPBevisIdNavn } * */ public void setBevisIdNavn(SDPBevisIdNavn value) { this.bevisIdNavn = value; } /** * Gets the value of the bevisIdVerdi property. * * @return * possible object is * {@link String } * */ public String getBevisIdVerdi() { return bevisIdVerdi; } /** * Sets the value of the bevisIdVerdi property. * * @param value * allowed object is * {@link String } * */ public void setBevisIdVerdi(String value) { this.bevisIdVerdi = value; } /** * Gets the value of the attributts property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the attributts property. * *

* For example, to add a new item, do as follows: *

     *    getAttributts().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SDPAttributt } * * */ public List getAttributts() { if (attributts == null) { attributts = new ArrayList(); } return this.attributts; } /** * Gets the value of the infos property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the infos property. * *

* For example, to add a new item, do as follows: *

     *    getInfos().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SDPInfo } * * */ public List getInfos() { if (infos == null) { infos = new ArrayList(); } return this.infos; } public void setAttributts(List value) { this.attributts = null; if (value!= null) { List draftl = this.getAttributts(); draftl.addAll(value); } } public void setInfos(List value) { this.infos = null; if (value!= null) { List draftl = this.getInfos(); draftl.addAll(value); } } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { SDPUtstederVisningsnavn theUtstederVisningsnavn; theUtstederVisningsnavn = this.getUtstederVisningsnavn(); strategy.appendField(locator, this, "utstederVisningsnavn", buffer, theUtstederVisningsnavn, (this.utstederVisningsnavn!= null)); } { String theBakgrunnsfarge; theBakgrunnsfarge = this.getBakgrunnsfarge(); strategy.appendField(locator, this, "bakgrunnsfarge", buffer, theBakgrunnsfarge, (this.bakgrunnsfarge!= null)); } { ZonedDateTime theUtstedtTidspunkt; theUtstedtTidspunkt = this.getUtstedtTidspunkt(); strategy.appendField(locator, this, "utstedtTidspunkt", buffer, theUtstedtTidspunkt, (this.utstedtTidspunkt!= null)); } { SDPGyldighetsperiode theGyldighetsperiode; theGyldighetsperiode = this.getGyldighetsperiode(); strategy.appendField(locator, this, "gyldighetsperiode", buffer, theGyldighetsperiode, (this.gyldighetsperiode!= null)); } { SDPBruker theBevisholder; theBevisholder = this.getBevisholder(); strategy.appendField(locator, this, "bevisholder", buffer, theBevisholder, (this.bevisholder!= null)); } { SDPTittel theTittel; theTittel = this.getTittel(); strategy.appendField(locator, this, "tittel", buffer, theTittel, (this.tittel!= null)); } { SDPBevisIdNavn theBevisIdNavn; theBevisIdNavn = this.getBevisIdNavn(); strategy.appendField(locator, this, "bevisIdNavn", buffer, theBevisIdNavn, (this.bevisIdNavn!= null)); } { String theBevisIdVerdi; theBevisIdVerdi = this.getBevisIdVerdi(); strategy.appendField(locator, this, "bevisIdVerdi", buffer, theBevisIdVerdi, (this.bevisIdVerdi!= null)); } { List theAttributts; theAttributts = (((this.attributts!= null)&&(!this.attributts.isEmpty()))?this.getAttributts():null); strategy.appendField(locator, this, "attributts", buffer, theAttributts, ((this.attributts!= null)&&(!this.attributts.isEmpty()))); } { List theInfos; theInfos = (((this.infos!= null)&&(!this.infos.isEmpty()))?this.getInfos():null); strategy.appendField(locator, this, "infos", buffer, theInfos, ((this.infos!= null)&&(!this.infos.isEmpty()))); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SDPBevis that = ((SDPBevis) object); { SDPUtstederVisningsnavn lhsUtstederVisningsnavn; lhsUtstederVisningsnavn = this.getUtstederVisningsnavn(); SDPUtstederVisningsnavn rhsUtstederVisningsnavn; rhsUtstederVisningsnavn = that.getUtstederVisningsnavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "utstederVisningsnavn", lhsUtstederVisningsnavn), LocatorUtils.property(thatLocator, "utstederVisningsnavn", rhsUtstederVisningsnavn), lhsUtstederVisningsnavn, rhsUtstederVisningsnavn, (this.utstederVisningsnavn!= null), (that.utstederVisningsnavn!= null))) { return false; } } { String lhsBakgrunnsfarge; lhsBakgrunnsfarge = this.getBakgrunnsfarge(); String rhsBakgrunnsfarge; rhsBakgrunnsfarge = that.getBakgrunnsfarge(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bakgrunnsfarge", lhsBakgrunnsfarge), LocatorUtils.property(thatLocator, "bakgrunnsfarge", rhsBakgrunnsfarge), lhsBakgrunnsfarge, rhsBakgrunnsfarge, (this.bakgrunnsfarge!= null), (that.bakgrunnsfarge!= null))) { return false; } } { ZonedDateTime lhsUtstedtTidspunkt; lhsUtstedtTidspunkt = this.getUtstedtTidspunkt(); ZonedDateTime rhsUtstedtTidspunkt; rhsUtstedtTidspunkt = that.getUtstedtTidspunkt(); if (!strategy.equals(LocatorUtils.property(thisLocator, "utstedtTidspunkt", lhsUtstedtTidspunkt), LocatorUtils.property(thatLocator, "utstedtTidspunkt", rhsUtstedtTidspunkt), lhsUtstedtTidspunkt, rhsUtstedtTidspunkt, (this.utstedtTidspunkt!= null), (that.utstedtTidspunkt!= null))) { return false; } } { SDPGyldighetsperiode lhsGyldighetsperiode; lhsGyldighetsperiode = this.getGyldighetsperiode(); SDPGyldighetsperiode rhsGyldighetsperiode; rhsGyldighetsperiode = that.getGyldighetsperiode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "gyldighetsperiode", lhsGyldighetsperiode), LocatorUtils.property(thatLocator, "gyldighetsperiode", rhsGyldighetsperiode), lhsGyldighetsperiode, rhsGyldighetsperiode, (this.gyldighetsperiode!= null), (that.gyldighetsperiode!= null))) { return false; } } { SDPBruker lhsBevisholder; lhsBevisholder = this.getBevisholder(); SDPBruker rhsBevisholder; rhsBevisholder = that.getBevisholder(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bevisholder", lhsBevisholder), LocatorUtils.property(thatLocator, "bevisholder", rhsBevisholder), lhsBevisholder, rhsBevisholder, (this.bevisholder!= null), (that.bevisholder!= null))) { return false; } } { SDPTittel lhsTittel; lhsTittel = this.getTittel(); SDPTittel rhsTittel; rhsTittel = that.getTittel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tittel", lhsTittel), LocatorUtils.property(thatLocator, "tittel", rhsTittel), lhsTittel, rhsTittel, (this.tittel!= null), (that.tittel!= null))) { return false; } } { SDPBevisIdNavn lhsBevisIdNavn; lhsBevisIdNavn = this.getBevisIdNavn(); SDPBevisIdNavn rhsBevisIdNavn; rhsBevisIdNavn = that.getBevisIdNavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bevisIdNavn", lhsBevisIdNavn), LocatorUtils.property(thatLocator, "bevisIdNavn", rhsBevisIdNavn), lhsBevisIdNavn, rhsBevisIdNavn, (this.bevisIdNavn!= null), (that.bevisIdNavn!= null))) { return false; } } { String lhsBevisIdVerdi; lhsBevisIdVerdi = this.getBevisIdVerdi(); String rhsBevisIdVerdi; rhsBevisIdVerdi = that.getBevisIdVerdi(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bevisIdVerdi", lhsBevisIdVerdi), LocatorUtils.property(thatLocator, "bevisIdVerdi", rhsBevisIdVerdi), lhsBevisIdVerdi, rhsBevisIdVerdi, (this.bevisIdVerdi!= null), (that.bevisIdVerdi!= null))) { return false; } } { List lhsAttributts; lhsAttributts = (((this.attributts!= null)&&(!this.attributts.isEmpty()))?this.getAttributts():null); List rhsAttributts; rhsAttributts = (((that.attributts!= null)&&(!that.attributts.isEmpty()))?that.getAttributts():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "attributts", lhsAttributts), LocatorUtils.property(thatLocator, "attributts", rhsAttributts), lhsAttributts, rhsAttributts, ((this.attributts!= null)&&(!this.attributts.isEmpty())), ((that.attributts!= null)&&(!that.attributts.isEmpty())))) { return false; } } { List lhsInfos; lhsInfos = (((this.infos!= null)&&(!this.infos.isEmpty()))?this.getInfos():null); List rhsInfos; rhsInfos = (((that.infos!= null)&&(!that.infos.isEmpty()))?that.getInfos():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "infos", lhsInfos), LocatorUtils.property(thatLocator, "infos", rhsInfos), lhsInfos, rhsInfos, ((this.infos!= null)&&(!this.infos.isEmpty())), ((that.infos!= null)&&(!that.infos.isEmpty())))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { SDPUtstederVisningsnavn theUtstederVisningsnavn; theUtstederVisningsnavn = this.getUtstederVisningsnavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "utstederVisningsnavn", theUtstederVisningsnavn), currentHashCode, theUtstederVisningsnavn, (this.utstederVisningsnavn!= null)); } { String theBakgrunnsfarge; theBakgrunnsfarge = this.getBakgrunnsfarge(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bakgrunnsfarge", theBakgrunnsfarge), currentHashCode, theBakgrunnsfarge, (this.bakgrunnsfarge!= null)); } { ZonedDateTime theUtstedtTidspunkt; theUtstedtTidspunkt = this.getUtstedtTidspunkt(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "utstedtTidspunkt", theUtstedtTidspunkt), currentHashCode, theUtstedtTidspunkt, (this.utstedtTidspunkt!= null)); } { SDPGyldighetsperiode theGyldighetsperiode; theGyldighetsperiode = this.getGyldighetsperiode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gyldighetsperiode", theGyldighetsperiode), currentHashCode, theGyldighetsperiode, (this.gyldighetsperiode!= null)); } { SDPBruker theBevisholder; theBevisholder = this.getBevisholder(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bevisholder", theBevisholder), currentHashCode, theBevisholder, (this.bevisholder!= null)); } { SDPTittel theTittel; theTittel = this.getTittel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tittel", theTittel), currentHashCode, theTittel, (this.tittel!= null)); } { SDPBevisIdNavn theBevisIdNavn; theBevisIdNavn = this.getBevisIdNavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bevisIdNavn", theBevisIdNavn), currentHashCode, theBevisIdNavn, (this.bevisIdNavn!= null)); } { String theBevisIdVerdi; theBevisIdVerdi = this.getBevisIdVerdi(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bevisIdVerdi", theBevisIdVerdi), currentHashCode, theBevisIdVerdi, (this.bevisIdVerdi!= null)); } { List theAttributts; theAttributts = (((this.attributts!= null)&&(!this.attributts.isEmpty()))?this.getAttributts():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributts", theAttributts), currentHashCode, theAttributts, ((this.attributts!= null)&&(!this.attributts.isEmpty()))); } { List theInfos; theInfos = (((this.infos!= null)&&(!this.infos.isEmpty()))?this.getInfos():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "infos", theInfos), currentHashCode, theInfos, ((this.infos!= null)&&(!this.infos.isEmpty()))); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public SDPBevis withUtstederVisningsnavn(SDPUtstederVisningsnavn value) { setUtstederVisningsnavn(value); return this; } public SDPBevis withBakgrunnsfarge(String value) { setBakgrunnsfarge(value); return this; } public SDPBevis withUtstedtTidspunkt(ZonedDateTime value) { setUtstedtTidspunkt(value); return this; } public SDPBevis withGyldighetsperiode(SDPGyldighetsperiode value) { setGyldighetsperiode(value); return this; } public SDPBevis withBevisholder(SDPBruker value) { setBevisholder(value); return this; } public SDPBevis withTittel(SDPTittel value) { setTittel(value); return this; } public SDPBevis withBevisIdNavn(SDPBevisIdNavn value) { setBevisIdNavn(value); return this; } public SDPBevis withBevisIdVerdi(String value) { setBevisIdVerdi(value); return this; } public SDPBevis withAttributts(SDPAttributt... values) { if (values!= null) { for (SDPAttributt value: values) { getAttributts().add(value); } } return this; } public SDPBevis withAttributts(Collection values) { if (values!= null) { getAttributts().addAll(values); } return this; } public SDPBevis withInfos(SDPInfo... values) { if (values!= null) { for (SDPInfo value: values) { getInfos().add(value); } } return this; } public SDPBevis withInfos(Collection values) { if (values!= null) { getInfos().addAll(values); } return this; } public SDPBevis withAttributts(List value) { setAttributts(value); return this; } public SDPBevis withInfos(List value) { setInfos(value); return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy