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

no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.MappeKvittering Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.6 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.06.23 at 10:32:49 AM CEST 
//


package no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering;

import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for mappeKvittering complex type. * *

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

 * <complexType name="mappeKvittering">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="systemID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}systemID"/>
 *         <element name="mappeID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}mappeID" minOccurs="0"/>
 *         <element name="referanseForeldermappe" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseTilMappe" minOccurs="0"/>
 *         <element name="opprettetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetDato" minOccurs="0"/>
 *         <element name="opprettetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetAv" minOccurs="0"/>
 *         <element name="avsluttetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avsluttetDato" minOccurs="0"/>
 *         <element name="avsluttetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avsluttetAv" minOccurs="0"/>
 *         <element name="referanseEksternNoekkel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}eksternNoekkel" minOccurs="0"/>
 *         <choice>
 *           <element name="mappeKvittering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/kvittering/v1}mappeKvittering" maxOccurs="unbounded" minOccurs="0"/>
 *           <element name="registreringKvittering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/kvittering/v1}registreringKvittering" maxOccurs="unbounded" minOccurs="0"/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "mappeKvittering", propOrder = { "systemID", "mappeID", "referanseForeldermappe", "opprettetDato", "opprettetAv", "avsluttetDato", "avsluttetAv", "referanseEksternNoekkel", "registreringKvitterings", "mappeKvitterings" }) @XmlSeeAlso({ SaksmappeKvittering.class }) public class MappeKvittering { @XmlElement(required = true) protected SystemID systemID; protected String mappeID; protected ReferanseTilMappe referanseForeldermappe; @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime opprettetDato; protected String opprettetAv; @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime avsluttetDato; protected String avsluttetAv; protected EksternNoekkel referanseEksternNoekkel; @XmlElement(name = "registreringKvittering") protected List registreringKvitterings; @XmlElement(name = "mappeKvittering") protected List mappeKvitterings; /** * Gets the value of the systemID property. * * @return * possible object is * {@link SystemID } * */ public SystemID getSystemID() { return systemID; } /** * Sets the value of the systemID property. * * @param value * allowed object is * {@link SystemID } * */ public void setSystemID(SystemID value) { this.systemID = value; } /** * Gets the value of the mappeID property. * * @return * possible object is * {@link String } * */ public String getMappeID() { return mappeID; } /** * Sets the value of the mappeID property. * * @param value * allowed object is * {@link String } * */ public void setMappeID(String value) { this.mappeID = value; } /** * Gets the value of the referanseForeldermappe property. * * @return * possible object is * {@link ReferanseTilMappe } * */ public ReferanseTilMappe getReferanseForeldermappe() { return referanseForeldermappe; } /** * Sets the value of the referanseForeldermappe property. * * @param value * allowed object is * {@link ReferanseTilMappe } * */ public void setReferanseForeldermappe(ReferanseTilMappe value) { this.referanseForeldermappe = value; } /** * Gets the value of the opprettetDato property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getOpprettetDato() { return opprettetDato; } /** * Sets the value of the opprettetDato property. * * @param value * allowed object is * {@link String } * */ public void setOpprettetDato(ZonedDateTime value) { this.opprettetDato = value; } /** * Gets the value of the opprettetAv property. * * @return * possible object is * {@link String } * */ public String getOpprettetAv() { return opprettetAv; } /** * Sets the value of the opprettetAv property. * * @param value * allowed object is * {@link String } * */ public void setOpprettetAv(String value) { this.opprettetAv = value; } /** * Gets the value of the avsluttetDato property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getAvsluttetDato() { return avsluttetDato; } /** * Sets the value of the avsluttetDato property. * * @param value * allowed object is * {@link String } * */ public void setAvsluttetDato(ZonedDateTime value) { this.avsluttetDato = value; } /** * Gets the value of the avsluttetAv property. * * @return * possible object is * {@link String } * */ public String getAvsluttetAv() { return avsluttetAv; } /** * Sets the value of the avsluttetAv property. * * @param value * allowed object is * {@link String } * */ public void setAvsluttetAv(String value) { this.avsluttetAv = value; } /** * Gets the value of the referanseEksternNoekkel property. * * @return * possible object is * {@link EksternNoekkel } * */ public EksternNoekkel getReferanseEksternNoekkel() { return referanseEksternNoekkel; } /** * Sets the value of the referanseEksternNoekkel property. * * @param value * allowed object is * {@link EksternNoekkel } * */ public void setReferanseEksternNoekkel(EksternNoekkel value) { this.referanseEksternNoekkel = value; } /** * Gets the value of the registreringKvitterings 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 registreringKvitterings property. * *

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

     *    getRegistreringKvitterings().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link RegistreringKvittering } * * */ public List getRegistreringKvitterings() { if (registreringKvitterings == null) { registreringKvitterings = new ArrayList(); } return this.registreringKvitterings; } /** * Gets the value of the mappeKvitterings 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 mappeKvitterings property. * *

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

     *    getMappeKvitterings().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MappeKvittering } * * */ public List getMappeKvitterings() { if (mappeKvitterings == null) { mappeKvitterings = new ArrayList(); } return this.mappeKvitterings; } /** * Copies all state of this object to a builder. This method is used by the {@link * #copyOf} method and should not be called directly by client code. * * @param _other * A builder instance to which the state of this object will be copied. */ public<_B >void copyTo(final MappeKvittering.Builder<_B> _other) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other)); _other.mappeID = this.mappeID; _other.referanseForeldermappe = ((this.referanseForeldermappe == null)?null:this.referanseForeldermappe.newCopyBuilder(_other)); _other.opprettetDato = this.opprettetDato; _other.opprettetAv = this.opprettetAv; _other.avsluttetDato = this.avsluttetDato; _other.avsluttetAv = this.avsluttetAv; _other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other)); if (this.registreringKvitterings == null) { _other.registreringKvitterings = null; } else { _other.registreringKvitterings = new ArrayList>>(); for (RegistreringKvittering _item: this.registreringKvitterings) { _other.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } if (this.mappeKvitterings == null) { _other.mappeKvitterings = null; } else { _other.mappeKvitterings = new ArrayList>>(); for (MappeKvittering _item: this.mappeKvitterings) { _other.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >MappeKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new MappeKvittering.Builder<_B>(_parentBuilder, this, true); } public MappeKvittering.Builder newCopyBuilder() { return newCopyBuilder(null); } public static MappeKvittering.Builder builder() { return new MappeKvittering.Builder(null, null, false); } public static<_B >MappeKvittering.Builder<_B> copyOf(final MappeKvittering _other) { final MappeKvittering.Builder<_B> _newBuilder = new MappeKvittering.Builder<_B>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; } /** * Copies all state of this object to a builder. This method is used by the {@link * #copyOf} method and should not be called directly by client code. * * @param _other * A builder instance to which the state of this object will be copied. */ public<_B >void copyTo(final MappeKvittering.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree systemIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("systemID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemIDPropertyTree!= null):((systemIDPropertyTree == null)||(!systemIDPropertyTree.isLeaf())))) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other, systemIDPropertyTree, _propertyTreeUse)); } final PropertyTree mappeIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeIDPropertyTree!= null):((mappeIDPropertyTree == null)||(!mappeIDPropertyTree.isLeaf())))) { _other.mappeID = this.mappeID; } final PropertyTree referanseForeldermappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseForeldermappe")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseForeldermappePropertyTree!= null):((referanseForeldermappePropertyTree == null)||(!referanseForeldermappePropertyTree.isLeaf())))) { _other.referanseForeldermappe = ((this.referanseForeldermappe == null)?null:this.referanseForeldermappe.newCopyBuilder(_other, referanseForeldermappePropertyTree, _propertyTreeUse)); } final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) { _other.opprettetDato = this.opprettetDato; } final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) { _other.opprettetAv = this.opprettetAv; } final PropertyTree avsluttetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetDatoPropertyTree!= null):((avsluttetDatoPropertyTree == null)||(!avsluttetDatoPropertyTree.isLeaf())))) { _other.avsluttetDato = this.avsluttetDato; } final PropertyTree avsluttetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetAvPropertyTree!= null):((avsluttetAvPropertyTree == null)||(!avsluttetAvPropertyTree.isLeaf())))) { _other.avsluttetAv = this.avsluttetAv; } final PropertyTree referanseEksternNoekkelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseEksternNoekkel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseEksternNoekkelPropertyTree!= null):((referanseEksternNoekkelPropertyTree == null)||(!referanseEksternNoekkelPropertyTree.isLeaf())))) { _other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other, referanseEksternNoekkelPropertyTree, _propertyTreeUse)); } final PropertyTree registreringKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registreringKvitterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringKvitteringsPropertyTree!= null):((registreringKvitteringsPropertyTree == null)||(!registreringKvitteringsPropertyTree.isLeaf())))) { if (this.registreringKvitterings == null) { _other.registreringKvitterings = null; } else { _other.registreringKvitterings = new ArrayList>>(); for (RegistreringKvittering _item: this.registreringKvitterings) { _other.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other, registreringKvitteringsPropertyTree, _propertyTreeUse))); } } } final PropertyTree mappeKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeKvitterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeKvitteringsPropertyTree!= null):((mappeKvitteringsPropertyTree == null)||(!mappeKvitteringsPropertyTree.isLeaf())))) { if (this.mappeKvitterings == null) { _other.mappeKvitterings = null; } else { _other.mappeKvitterings = new ArrayList>>(); for (MappeKvittering _item: this.mappeKvitterings) { _other.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other, mappeKvitteringsPropertyTree, _propertyTreeUse))); } } } } public<_B >MappeKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new MappeKvittering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public MappeKvittering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >MappeKvittering.Builder<_B> copyOf(final MappeKvittering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final MappeKvittering.Builder<_B> _newBuilder = new MappeKvittering.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static MappeKvittering.Builder copyExcept(final MappeKvittering _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static MappeKvittering.Builder copyOnly(final MappeKvittering _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final MappeKvittering _storedValue; private SystemID.Builder> systemID; private String mappeID; private ReferanseTilMappe.Builder> referanseForeldermappe; private ZonedDateTime opprettetDato; private String opprettetAv; private ZonedDateTime avsluttetDato; private String avsluttetAv; private EksternNoekkel.Builder> referanseEksternNoekkel; private List>> registreringKvitterings; private List>> mappeKvitterings; public Builder(final _B _parentBuilder, final MappeKvittering _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.systemID = ((_other.systemID == null)?null:_other.systemID.newCopyBuilder(this)); this.mappeID = _other.mappeID; this.referanseForeldermappe = ((_other.referanseForeldermappe == null)?null:_other.referanseForeldermappe.newCopyBuilder(this)); this.opprettetDato = _other.opprettetDato; this.opprettetAv = _other.opprettetAv; this.avsluttetDato = _other.avsluttetDato; this.avsluttetAv = _other.avsluttetAv; this.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this)); if (_other.registreringKvitterings == null) { this.registreringKvitterings = null; } else { this.registreringKvitterings = new ArrayList>>(); for (RegistreringKvittering _item: _other.registreringKvitterings) { this.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this))); } } if (_other.mappeKvitterings == null) { this.mappeKvitterings = null; } else { this.mappeKvitterings = new ArrayList>>(); for (MappeKvittering _item: _other.mappeKvitterings) { this.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final MappeKvittering _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree systemIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("systemID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemIDPropertyTree!= null):((systemIDPropertyTree == null)||(!systemIDPropertyTree.isLeaf())))) { this.systemID = ((_other.systemID == null)?null:_other.systemID.newCopyBuilder(this, systemIDPropertyTree, _propertyTreeUse)); } final PropertyTree mappeIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeIDPropertyTree!= null):((mappeIDPropertyTree == null)||(!mappeIDPropertyTree.isLeaf())))) { this.mappeID = _other.mappeID; } final PropertyTree referanseForeldermappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseForeldermappe")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseForeldermappePropertyTree!= null):((referanseForeldermappePropertyTree == null)||(!referanseForeldermappePropertyTree.isLeaf())))) { this.referanseForeldermappe = ((_other.referanseForeldermappe == null)?null:_other.referanseForeldermappe.newCopyBuilder(this, referanseForeldermappePropertyTree, _propertyTreeUse)); } final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) { this.opprettetDato = _other.opprettetDato; } final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) { this.opprettetAv = _other.opprettetAv; } final PropertyTree avsluttetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetDatoPropertyTree!= null):((avsluttetDatoPropertyTree == null)||(!avsluttetDatoPropertyTree.isLeaf())))) { this.avsluttetDato = _other.avsluttetDato; } final PropertyTree avsluttetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetAvPropertyTree!= null):((avsluttetAvPropertyTree == null)||(!avsluttetAvPropertyTree.isLeaf())))) { this.avsluttetAv = _other.avsluttetAv; } final PropertyTree referanseEksternNoekkelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseEksternNoekkel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseEksternNoekkelPropertyTree!= null):((referanseEksternNoekkelPropertyTree == null)||(!referanseEksternNoekkelPropertyTree.isLeaf())))) { this.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this, referanseEksternNoekkelPropertyTree, _propertyTreeUse)); } final PropertyTree registreringKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registreringKvitterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringKvitteringsPropertyTree!= null):((registreringKvitteringsPropertyTree == null)||(!registreringKvitteringsPropertyTree.isLeaf())))) { if (_other.registreringKvitterings == null) { this.registreringKvitterings = null; } else { this.registreringKvitterings = new ArrayList>>(); for (RegistreringKvittering _item: _other.registreringKvitterings) { this.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this, registreringKvitteringsPropertyTree, _propertyTreeUse))); } } } final PropertyTree mappeKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeKvitterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeKvitteringsPropertyTree!= null):((mappeKvitteringsPropertyTree == null)||(!mappeKvitteringsPropertyTree.isLeaf())))) { if (_other.mappeKvitterings == null) { this.mappeKvitterings = null; } else { this.mappeKvitterings = new ArrayList>>(); for (MappeKvittering _item: _other.mappeKvitterings) { this.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this, mappeKvitteringsPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends MappeKvittering >_P init(final _P _product) { _product.systemID = ((this.systemID == null)?null:this.systemID.build()); _product.mappeID = this.mappeID; _product.referanseForeldermappe = ((this.referanseForeldermappe == null)?null:this.referanseForeldermappe.build()); _product.opprettetDato = this.opprettetDato; _product.opprettetAv = this.opprettetAv; _product.avsluttetDato = this.avsluttetDato; _product.avsluttetAv = this.avsluttetAv; _product.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.build()); if (this.registreringKvitterings!= null) { final List registreringKvitterings = new ArrayList(this.registreringKvitterings.size()); for (RegistreringKvittering.Builder> _item: this.registreringKvitterings) { registreringKvitterings.add(_item.build()); } _product.registreringKvitterings = registreringKvitterings; } if (this.mappeKvitterings!= null) { final List mappeKvitterings = new ArrayList(this.mappeKvitterings.size()); for (MappeKvittering.Builder> _item: this.mappeKvitterings) { mappeKvitterings.add(_item.build()); } _product.mappeKvitterings = mappeKvitterings; } return _product; } /** * Sets the new value of "systemID" (any previous value will be replaced) * * @param systemID * New value of the "systemID" property. */ public MappeKvittering.Builder<_B> withSystemID(final SystemID systemID) { this.systemID = ((systemID == null)?null:new SystemID.Builder>(this, systemID, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "systemID" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "systemID" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID.Builder#end()} to * return to the current builder. */ public SystemID.Builder> withSystemID() { if (this.systemID!= null) { return this.systemID; } return this.systemID = new SystemID.Builder>(this, null, false); } /** * Sets the new value of "mappeID" (any previous value will be replaced) * * @param mappeID * New value of the "mappeID" property. */ public MappeKvittering.Builder<_B> withMappeID(final String mappeID) { this.mappeID = mappeID; return this; } /** * Sets the new value of "referanseForeldermappe" (any previous value will be * replaced) * * @param referanseForeldermappe * New value of the "referanseForeldermappe" property. */ public MappeKvittering.Builder<_B> withReferanseForeldermappe(final ReferanseTilMappe referanseForeldermappe) { this.referanseForeldermappe = ((referanseForeldermappe == null)?null:new ReferanseTilMappe.Builder>(this, referanseForeldermappe, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseForeldermappe" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "referanseForeldermappe" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe.Builder#end()} * to return to the current builder. */ public ReferanseTilMappe.Builder> withReferanseForeldermappe() { if (this.referanseForeldermappe!= null) { return this.referanseForeldermappe; } return this.referanseForeldermappe = new ReferanseTilMappe.Builder>(this, null, false); } /** * Sets the new value of "opprettetDato" (any previous value will be replaced) * * @param opprettetDato * New value of the "opprettetDato" property. */ public MappeKvittering.Builder<_B> withOpprettetDato(final ZonedDateTime opprettetDato) { this.opprettetDato = opprettetDato; return this; } /** * Sets the new value of "opprettetAv" (any previous value will be replaced) * * @param opprettetAv * New value of the "opprettetAv" property. */ public MappeKvittering.Builder<_B> withOpprettetAv(final String opprettetAv) { this.opprettetAv = opprettetAv; return this; } /** * Sets the new value of "avsluttetDato" (any previous value will be replaced) * * @param avsluttetDato * New value of the "avsluttetDato" property. */ public MappeKvittering.Builder<_B> withAvsluttetDato(final ZonedDateTime avsluttetDato) { this.avsluttetDato = avsluttetDato; return this; } /** * Sets the new value of "avsluttetAv" (any previous value will be replaced) * * @param avsluttetAv * New value of the "avsluttetAv" property. */ public MappeKvittering.Builder<_B> withAvsluttetAv(final String avsluttetAv) { this.avsluttetAv = avsluttetAv; return this; } /** * Sets the new value of "referanseEksternNoekkel" (any previous value will be * replaced) * * @param referanseEksternNoekkel * New value of the "referanseEksternNoekkel" property. */ public MappeKvittering.Builder<_B> withReferanseEksternNoekkel(final EksternNoekkel referanseEksternNoekkel) { this.referanseEksternNoekkel = ((referanseEksternNoekkel == null)?null:new EksternNoekkel.Builder>(this, referanseEksternNoekkel, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseEksternNoekkel" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "referanseEksternNoekkel" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel.Builder#end()} * to return to the current builder. */ public EksternNoekkel.Builder> withReferanseEksternNoekkel() { if (this.referanseEksternNoekkel!= null) { return this.referanseEksternNoekkel; } return this.referanseEksternNoekkel = new EksternNoekkel.Builder>(this, null, false); } /** * Adds the given items to the value of "registreringKvitterings" * * @param registreringKvitterings * Items to add to the value of the "registreringKvitterings" property */ public MappeKvittering.Builder<_B> addRegistreringKvitterings(final Iterable registreringKvitterings) { if (registreringKvitterings!= null) { if (this.registreringKvitterings == null) { this.registreringKvitterings = new ArrayList>>(); } for (RegistreringKvittering _item: registreringKvitterings) { this.registreringKvitterings.add(new RegistreringKvittering.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "registreringKvitterings" (any previous value will be * replaced) * * @param registreringKvitterings * New value of the "registreringKvitterings" property. */ public MappeKvittering.Builder<_B> withRegistreringKvitterings(final Iterable registreringKvitterings) { if (this.registreringKvitterings!= null) { this.registreringKvitterings.clear(); } return addRegistreringKvitterings(registreringKvitterings); } /** * Adds the given items to the value of "registreringKvitterings" * * @param registreringKvitterings * Items to add to the value of the "registreringKvitterings" property */ public MappeKvittering.Builder<_B> addRegistreringKvitterings(RegistreringKvittering... registreringKvitterings) { addRegistreringKvitterings(Arrays.asList(registreringKvitterings)); return this; } /** * Sets the new value of "registreringKvitterings" (any previous value will be * replaced) * * @param registreringKvitterings * New value of the "registreringKvitterings" property. */ public MappeKvittering.Builder<_B> withRegistreringKvitterings(RegistreringKvittering... registreringKvitterings) { withRegistreringKvitterings(Arrays.asList(registreringKvitterings)); return this; } /** * Returns a new builder to build an additional value of the * "RegistreringKvitterings" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.RegistreringKvittering.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "RegistreringKvitterings" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.RegistreringKvittering.Builder#end()} * to return to the current builder. */ public RegistreringKvittering.Builder> addRegistreringKvitterings() { if (this.registreringKvitterings == null) { this.registreringKvitterings = new ArrayList>>(); } final RegistreringKvittering.Builder> registreringKvitterings_Builder = new RegistreringKvittering.Builder>(this, null, false); this.registreringKvitterings.add(registreringKvitterings_Builder); return registreringKvitterings_Builder; } /** * Adds the given items to the value of "mappeKvitterings" * * @param mappeKvitterings * Items to add to the value of the "mappeKvitterings" property */ public MappeKvittering.Builder<_B> addMappeKvitterings(final Iterable mappeKvitterings) { if (mappeKvitterings!= null) { if (this.mappeKvitterings == null) { this.mappeKvitterings = new ArrayList>>(); } for (MappeKvittering _item: mappeKvitterings) { this.mappeKvitterings.add(new MappeKvittering.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "mappeKvitterings" (any previous value will be replaced) * * @param mappeKvitterings * New value of the "mappeKvitterings" property. */ public MappeKvittering.Builder<_B> withMappeKvitterings(final Iterable mappeKvitterings) { if (this.mappeKvitterings!= null) { this.mappeKvitterings.clear(); } return addMappeKvitterings(mappeKvitterings); } /** * Adds the given items to the value of "mappeKvitterings" * * @param mappeKvitterings * Items to add to the value of the "mappeKvitterings" property */ public MappeKvittering.Builder<_B> addMappeKvitterings(MappeKvittering... mappeKvitterings) { addMappeKvitterings(Arrays.asList(mappeKvitterings)); return this; } /** * Sets the new value of "mappeKvitterings" (any previous value will be replaced) * * @param mappeKvitterings * New value of the "mappeKvitterings" property. */ public MappeKvittering.Builder<_B> withMappeKvitterings(MappeKvittering... mappeKvitterings) { withMappeKvitterings(Arrays.asList(mappeKvitterings)); return this; } /** * Returns a new builder to build an additional value of the "MappeKvitterings" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.MappeKvittering.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "MappeKvitterings" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.MappeKvittering.Builder#end()} * to return to the current builder. */ public MappeKvittering.Builder> addMappeKvitterings() { if (this.mappeKvitterings == null) { this.mappeKvitterings = new ArrayList>>(); } final MappeKvittering.Builder> mappeKvitterings_Builder = new MappeKvittering.Builder>(this, null, false); this.mappeKvitterings.add(mappeKvitterings_Builder); return mappeKvitterings_Builder; } @Override public MappeKvittering build() { if (_storedValue == null) { return this.init(new MappeKvittering()); } else { return ((MappeKvittering) _storedValue); } } public MappeKvittering.Builder<_B> copyOf(final MappeKvittering _other) { _other.copyTo(this); return this; } public MappeKvittering.Builder<_B> copyOf(final MappeKvittering.Builder _other) { return copyOf(_other.build()); } } public static class Select extends MappeKvittering.Selector { Select() { super(null, null, null); } public static MappeKvittering.Select _root() { return new MappeKvittering.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private SystemID.Selector> systemID = null; private com.kscs.util.jaxb.Selector> mappeID = null; private ReferanseTilMappe.Selector> referanseForeldermappe = null; private com.kscs.util.jaxb.Selector> opprettetDato = null; private com.kscs.util.jaxb.Selector> opprettetAv = null; private com.kscs.util.jaxb.Selector> avsluttetDato = null; private com.kscs.util.jaxb.Selector> avsluttetAv = null; private EksternNoekkel.Selector> referanseEksternNoekkel = null; private RegistreringKvittering.Selector> registreringKvitterings = null; private MappeKvittering.Selector> mappeKvitterings = null; public Selector(final TRoot root, final TParent parent, final String propertyName) { super(root, parent, propertyName); } @Override public Map buildChildren() { final Map products = new HashMap(); products.putAll(super.buildChildren()); if (this.systemID!= null) { products.put("systemID", this.systemID.init()); } if (this.mappeID!= null) { products.put("mappeID", this.mappeID.init()); } if (this.referanseForeldermappe!= null) { products.put("referanseForeldermappe", this.referanseForeldermappe.init()); } if (this.opprettetDato!= null) { products.put("opprettetDato", this.opprettetDato.init()); } if (this.opprettetAv!= null) { products.put("opprettetAv", this.opprettetAv.init()); } if (this.avsluttetDato!= null) { products.put("avsluttetDato", this.avsluttetDato.init()); } if (this.avsluttetAv!= null) { products.put("avsluttetAv", this.avsluttetAv.init()); } if (this.referanseEksternNoekkel!= null) { products.put("referanseEksternNoekkel", this.referanseEksternNoekkel.init()); } if (this.registreringKvitterings!= null) { products.put("registreringKvitterings", this.registreringKvitterings.init()); } if (this.mappeKvitterings!= null) { products.put("mappeKvitterings", this.mappeKvitterings.init()); } return products; } public SystemID.Selector> systemID() { return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID); } public com.kscs.util.jaxb.Selector> mappeID() { return ((this.mappeID == null)?this.mappeID = new com.kscs.util.jaxb.Selector>(this._root, this, "mappeID"):this.mappeID); } public ReferanseTilMappe.Selector> referanseForeldermappe() { return ((this.referanseForeldermappe == null)?this.referanseForeldermappe = new ReferanseTilMappe.Selector>(this._root, this, "referanseForeldermappe"):this.referanseForeldermappe); } public com.kscs.util.jaxb.Selector> opprettetDato() { return ((this.opprettetDato == null)?this.opprettetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetDato"):this.opprettetDato); } public com.kscs.util.jaxb.Selector> opprettetAv() { return ((this.opprettetAv == null)?this.opprettetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetAv"):this.opprettetAv); } public com.kscs.util.jaxb.Selector> avsluttetDato() { return ((this.avsluttetDato == null)?this.avsluttetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "avsluttetDato"):this.avsluttetDato); } public com.kscs.util.jaxb.Selector> avsluttetAv() { return ((this.avsluttetAv == null)?this.avsluttetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "avsluttetAv"):this.avsluttetAv); } public EksternNoekkel.Selector> referanseEksternNoekkel() { return ((this.referanseEksternNoekkel == null)?this.referanseEksternNoekkel = new EksternNoekkel.Selector>(this._root, this, "referanseEksternNoekkel"):this.referanseEksternNoekkel); } public RegistreringKvittering.Selector> registreringKvitterings() { return ((this.registreringKvitterings == null)?this.registreringKvitterings = new RegistreringKvittering.Selector>(this._root, this, "registreringKvitterings"):this.registreringKvitterings); } public MappeKvittering.Selector> mappeKvitterings() { return ((this.mappeKvitterings == null)?this.mappeKvitterings = new MappeKvittering.Selector>(this._root, this, "mappeKvitterings"):this.mappeKvitterings); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy