no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.RegistreringKvittering Maven / Gradle / Ivy
//
// 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.SystemID;
import org.w3._2001.xmlschema.Adapter1;
/**
* Java class for registreringKvittering complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="registreringKvittering">
* <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="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="arkivertDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}arkivertDato" minOccurs="0"/>
* <element name="arkivertAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}arkivertAv" minOccurs="0"/>
* <element name="dokumentbeskrivelseKvittering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/kvittering/v1}dokumentbeskrivelseKvittering" maxOccurs="unbounded" minOccurs="0"/>
* <element name="registreringsID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}registreringsID" minOccurs="0"/>
* <element name="referanseEksternNoekkel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}eksternNoekkel" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "registreringKvittering", propOrder = {
"systemID",
"opprettetDato",
"opprettetAv",
"arkivertDato",
"arkivertAv",
"dokumentbeskrivelseKvitterings",
"registreringsID",
"referanseEksternNoekkel"
})
@XmlSeeAlso({
JournalpostKvittering.class
})
public class RegistreringKvittering {
@XmlElement(required = true)
protected SystemID systemID;
@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 arkivertDato;
protected String arkivertAv;
@XmlElement(name = "dokumentbeskrivelseKvittering")
protected List dokumentbeskrivelseKvitterings;
protected String registreringsID;
protected EksternNoekkel referanseEksternNoekkel;
/**
* 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 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 arkivertDato property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getArkivertDato() {
return arkivertDato;
}
/**
* Sets the value of the arkivertDato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArkivertDato(ZonedDateTime value) {
this.arkivertDato = value;
}
/**
* Gets the value of the arkivertAv property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArkivertAv() {
return arkivertAv;
}
/**
* Sets the value of the arkivertAv property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArkivertAv(String value) {
this.arkivertAv = value;
}
/**
* Gets the value of the dokumentbeskrivelseKvitterings 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 dokumentbeskrivelseKvitterings property.
*
*
* For example, to add a new item, do as follows:
*
* getDokumentbeskrivelseKvitterings().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DokumentbeskrivelseKvittering }
*
*
*/
public List getDokumentbeskrivelseKvitterings() {
if (dokumentbeskrivelseKvitterings == null) {
dokumentbeskrivelseKvitterings = new ArrayList();
}
return this.dokumentbeskrivelseKvitterings;
}
/**
* Gets the value of the registreringsID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRegistreringsID() {
return registreringsID;
}
/**
* Sets the value of the registreringsID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRegistreringsID(String value) {
this.registreringsID = 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;
}
/**
* 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 RegistreringKvittering.Builder<_B> _other) {
_other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other));
_other.opprettetDato = this.opprettetDato;
_other.opprettetAv = this.opprettetAv;
_other.arkivertDato = this.arkivertDato;
_other.arkivertAv = this.arkivertAv;
if (this.dokumentbeskrivelseKvitterings == null) {
_other.dokumentbeskrivelseKvitterings = null;
} else {
_other.dokumentbeskrivelseKvitterings = new ArrayList>>();
for (DokumentbeskrivelseKvittering _item: this.dokumentbeskrivelseKvitterings) {
_other.dokumentbeskrivelseKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
_other.registreringsID = this.registreringsID;
_other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other));
}
public<_B >RegistreringKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new RegistreringKvittering.Builder<_B>(_parentBuilder, this, true);
}
public RegistreringKvittering.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static RegistreringKvittering.Builder builder() {
return new RegistreringKvittering.Builder(null, null, false);
}
public static<_B >RegistreringKvittering.Builder<_B> copyOf(final RegistreringKvittering _other) {
final RegistreringKvittering.Builder<_B> _newBuilder = new RegistreringKvittering.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 RegistreringKvittering.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 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 arkivertDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arkivertDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arkivertDatoPropertyTree!= null):((arkivertDatoPropertyTree == null)||(!arkivertDatoPropertyTree.isLeaf())))) {
_other.arkivertDato = this.arkivertDato;
}
final PropertyTree arkivertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arkivertAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arkivertAvPropertyTree!= null):((arkivertAvPropertyTree == null)||(!arkivertAvPropertyTree.isLeaf())))) {
_other.arkivertAv = this.arkivertAv;
}
final PropertyTree dokumentbeskrivelseKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentbeskrivelseKvitterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentbeskrivelseKvitteringsPropertyTree!= null):((dokumentbeskrivelseKvitteringsPropertyTree == null)||(!dokumentbeskrivelseKvitteringsPropertyTree.isLeaf())))) {
if (this.dokumentbeskrivelseKvitterings == null) {
_other.dokumentbeskrivelseKvitterings = null;
} else {
_other.dokumentbeskrivelseKvitterings = new ArrayList>>();
for (DokumentbeskrivelseKvittering _item: this.dokumentbeskrivelseKvitterings) {
_other.dokumentbeskrivelseKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other, dokumentbeskrivelseKvitteringsPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree registreringsIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registreringsID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringsIDPropertyTree!= null):((registreringsIDPropertyTree == null)||(!registreringsIDPropertyTree.isLeaf())))) {
_other.registreringsID = this.registreringsID;
}
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));
}
}
public<_B >RegistreringKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new RegistreringKvittering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public RegistreringKvittering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >RegistreringKvittering.Builder<_B> copyOf(final RegistreringKvittering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final RegistreringKvittering.Builder<_B> _newBuilder = new RegistreringKvittering.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static RegistreringKvittering.Builder copyExcept(final RegistreringKvittering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static RegistreringKvittering.Builder copyOnly(final RegistreringKvittering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final RegistreringKvittering _storedValue;
private SystemID.Builder> systemID;
private ZonedDateTime opprettetDato;
private String opprettetAv;
private ZonedDateTime arkivertDato;
private String arkivertAv;
private List>> dokumentbeskrivelseKvitterings;
private String registreringsID;
private EksternNoekkel.Builder> referanseEksternNoekkel;
public Builder(final _B _parentBuilder, final RegistreringKvittering _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.opprettetDato = _other.opprettetDato;
this.opprettetAv = _other.opprettetAv;
this.arkivertDato = _other.arkivertDato;
this.arkivertAv = _other.arkivertAv;
if (_other.dokumentbeskrivelseKvitterings == null) {
this.dokumentbeskrivelseKvitterings = null;
} else {
this.dokumentbeskrivelseKvitterings = new ArrayList>>();
for (DokumentbeskrivelseKvittering _item: _other.dokumentbeskrivelseKvitterings) {
this.dokumentbeskrivelseKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
this.registreringsID = _other.registreringsID;
this.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final RegistreringKvittering _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 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 arkivertDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arkivertDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arkivertDatoPropertyTree!= null):((arkivertDatoPropertyTree == null)||(!arkivertDatoPropertyTree.isLeaf())))) {
this.arkivertDato = _other.arkivertDato;
}
final PropertyTree arkivertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arkivertAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arkivertAvPropertyTree!= null):((arkivertAvPropertyTree == null)||(!arkivertAvPropertyTree.isLeaf())))) {
this.arkivertAv = _other.arkivertAv;
}
final PropertyTree dokumentbeskrivelseKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentbeskrivelseKvitterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentbeskrivelseKvitteringsPropertyTree!= null):((dokumentbeskrivelseKvitteringsPropertyTree == null)||(!dokumentbeskrivelseKvitteringsPropertyTree.isLeaf())))) {
if (_other.dokumentbeskrivelseKvitterings == null) {
this.dokumentbeskrivelseKvitterings = null;
} else {
this.dokumentbeskrivelseKvitterings = new ArrayList>>();
for (DokumentbeskrivelseKvittering _item: _other.dokumentbeskrivelseKvitterings) {
this.dokumentbeskrivelseKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this, dokumentbeskrivelseKvitteringsPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree registreringsIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registreringsID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringsIDPropertyTree!= null):((registreringsIDPropertyTree == null)||(!registreringsIDPropertyTree.isLeaf())))) {
this.registreringsID = _other.registreringsID;
}
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));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends RegistreringKvittering >_P init(final _P _product) {
_product.systemID = ((this.systemID == null)?null:this.systemID.build());
_product.opprettetDato = this.opprettetDato;
_product.opprettetAv = this.opprettetAv;
_product.arkivertDato = this.arkivertDato;
_product.arkivertAv = this.arkivertAv;
if (this.dokumentbeskrivelseKvitterings!= null) {
final List dokumentbeskrivelseKvitterings = new ArrayList(this.dokumentbeskrivelseKvitterings.size());
for (DokumentbeskrivelseKvittering.Builder> _item: this.dokumentbeskrivelseKvitterings) {
dokumentbeskrivelseKvitterings.add(_item.build());
}
_product.dokumentbeskrivelseKvitterings = dokumentbeskrivelseKvitterings;
}
_product.registreringsID = this.registreringsID;
_product.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.build());
return _product;
}
/**
* Sets the new value of "systemID" (any previous value will be replaced)
*
* @param systemID
* New value of the "systemID" property.
*/
public RegistreringKvittering.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 extends RegistreringKvittering.Builder<_B>> withSystemID() {
if (this.systemID!= null) {
return this.systemID;
}
return this.systemID = new SystemID.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 RegistreringKvittering.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 RegistreringKvittering.Builder<_B> withOpprettetAv(final String opprettetAv) {
this.opprettetAv = opprettetAv;
return this;
}
/**
* Sets the new value of "arkivertDato" (any previous value will be replaced)
*
* @param arkivertDato
* New value of the "arkivertDato" property.
*/
public RegistreringKvittering.Builder<_B> withArkivertDato(final ZonedDateTime arkivertDato) {
this.arkivertDato = arkivertDato;
return this;
}
/**
* Sets the new value of "arkivertAv" (any previous value will be replaced)
*
* @param arkivertAv
* New value of the "arkivertAv" property.
*/
public RegistreringKvittering.Builder<_B> withArkivertAv(final String arkivertAv) {
this.arkivertAv = arkivertAv;
return this;
}
/**
* Adds the given items to the value of "dokumentbeskrivelseKvitterings"
*
* @param dokumentbeskrivelseKvitterings
* Items to add to the value of the "dokumentbeskrivelseKvitterings" property
*/
public RegistreringKvittering.Builder<_B> addDokumentbeskrivelseKvitterings(final Iterable extends DokumentbeskrivelseKvittering> dokumentbeskrivelseKvitterings) {
if (dokumentbeskrivelseKvitterings!= null) {
if (this.dokumentbeskrivelseKvitterings == null) {
this.dokumentbeskrivelseKvitterings = new ArrayList>>();
}
for (DokumentbeskrivelseKvittering _item: dokumentbeskrivelseKvitterings) {
this.dokumentbeskrivelseKvitterings.add(new DokumentbeskrivelseKvittering.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "dokumentbeskrivelseKvitterings" (any previous value will
* be replaced)
*
* @param dokumentbeskrivelseKvitterings
* New value of the "dokumentbeskrivelseKvitterings" property.
*/
public RegistreringKvittering.Builder<_B> withDokumentbeskrivelseKvitterings(final Iterable extends DokumentbeskrivelseKvittering> dokumentbeskrivelseKvitterings) {
if (this.dokumentbeskrivelseKvitterings!= null) {
this.dokumentbeskrivelseKvitterings.clear();
}
return addDokumentbeskrivelseKvitterings(dokumentbeskrivelseKvitterings);
}
/**
* Adds the given items to the value of "dokumentbeskrivelseKvitterings"
*
* @param dokumentbeskrivelseKvitterings
* Items to add to the value of the "dokumentbeskrivelseKvitterings" property
*/
public RegistreringKvittering.Builder<_B> addDokumentbeskrivelseKvitterings(DokumentbeskrivelseKvittering... dokumentbeskrivelseKvitterings) {
addDokumentbeskrivelseKvitterings(Arrays.asList(dokumentbeskrivelseKvitterings));
return this;
}
/**
* Sets the new value of "dokumentbeskrivelseKvitterings" (any previous value will
* be replaced)
*
* @param dokumentbeskrivelseKvitterings
* New value of the "dokumentbeskrivelseKvitterings" property.
*/
public RegistreringKvittering.Builder<_B> withDokumentbeskrivelseKvitterings(DokumentbeskrivelseKvittering... dokumentbeskrivelseKvitterings) {
withDokumentbeskrivelseKvitterings(Arrays.asList(dokumentbeskrivelseKvitterings));
return this;
}
/**
* Returns a new builder to build an additional value of the
* "DokumentbeskrivelseKvitterings" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.DokumentbeskrivelseKvittering.Builder#end()}
* to return to the current builder.
*
* @return
* a new builder to build an additional value of the
* "DokumentbeskrivelseKvitterings" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.DokumentbeskrivelseKvittering.Builder#end()}
* to return to the current builder.
*/
public DokumentbeskrivelseKvittering.Builder extends RegistreringKvittering.Builder<_B>> addDokumentbeskrivelseKvitterings() {
if (this.dokumentbeskrivelseKvitterings == null) {
this.dokumentbeskrivelseKvitterings = new ArrayList>>();
}
final DokumentbeskrivelseKvittering.Builder> dokumentbeskrivelseKvitterings_Builder = new DokumentbeskrivelseKvittering.Builder>(this, null, false);
this.dokumentbeskrivelseKvitterings.add(dokumentbeskrivelseKvitterings_Builder);
return dokumentbeskrivelseKvitterings_Builder;
}
/**
* Sets the new value of "registreringsID" (any previous value will be replaced)
*
* @param registreringsID
* New value of the "registreringsID" property.
*/
public RegistreringKvittering.Builder<_B> withRegistreringsID(final String registreringsID) {
this.registreringsID = registreringsID;
return this;
}
/**
* Sets the new value of "referanseEksternNoekkel" (any previous value will be
* replaced)
*
* @param referanseEksternNoekkel
* New value of the "referanseEksternNoekkel" property.
*/
public RegistreringKvittering.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 extends RegistreringKvittering.Builder<_B>> withReferanseEksternNoekkel() {
if (this.referanseEksternNoekkel!= null) {
return this.referanseEksternNoekkel;
}
return this.referanseEksternNoekkel = new EksternNoekkel.Builder>(this, null, false);
}
@Override
public RegistreringKvittering build() {
if (_storedValue == null) {
return this.init(new RegistreringKvittering());
} else {
return ((RegistreringKvittering) _storedValue);
}
}
public RegistreringKvittering.Builder<_B> copyOf(final RegistreringKvittering _other) {
_other.copyTo(this);
return this;
}
public RegistreringKvittering.Builder<_B> copyOf(final RegistreringKvittering.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends RegistreringKvittering.Selector
{
Select() {
super(null, null, null);
}
public static RegistreringKvittering.Select _root() {
return new RegistreringKvittering.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private SystemID.Selector> systemID = null;
private com.kscs.util.jaxb.Selector> opprettetDato = null;
private com.kscs.util.jaxb.Selector> opprettetAv = null;
private com.kscs.util.jaxb.Selector> arkivertDato = null;
private com.kscs.util.jaxb.Selector> arkivertAv = null;
private DokumentbeskrivelseKvittering.Selector> dokumentbeskrivelseKvitterings = null;
private com.kscs.util.jaxb.Selector> registreringsID = null;
private EksternNoekkel.Selector> referanseEksternNoekkel = 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.opprettetDato!= null) {
products.put("opprettetDato", this.opprettetDato.init());
}
if (this.opprettetAv!= null) {
products.put("opprettetAv", this.opprettetAv.init());
}
if (this.arkivertDato!= null) {
products.put("arkivertDato", this.arkivertDato.init());
}
if (this.arkivertAv!= null) {
products.put("arkivertAv", this.arkivertAv.init());
}
if (this.dokumentbeskrivelseKvitterings!= null) {
products.put("dokumentbeskrivelseKvitterings", this.dokumentbeskrivelseKvitterings.init());
}
if (this.registreringsID!= null) {
products.put("registreringsID", this.registreringsID.init());
}
if (this.referanseEksternNoekkel!= null) {
products.put("referanseEksternNoekkel", this.referanseEksternNoekkel.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> 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> arkivertDato() {
return ((this.arkivertDato == null)?this.arkivertDato = new com.kscs.util.jaxb.Selector>(this._root, this, "arkivertDato"):this.arkivertDato);
}
public com.kscs.util.jaxb.Selector> arkivertAv() {
return ((this.arkivertAv == null)?this.arkivertAv = new com.kscs.util.jaxb.Selector>(this._root, this, "arkivertAv"):this.arkivertAv);
}
public DokumentbeskrivelseKvittering.Selector> dokumentbeskrivelseKvitterings() {
return ((this.dokumentbeskrivelseKvitterings == null)?this.dokumentbeskrivelseKvitterings = new DokumentbeskrivelseKvittering.Selector>(this._root, this, "dokumentbeskrivelseKvitterings"):this.dokumentbeskrivelseKvitterings);
}
public com.kscs.util.jaxb.Selector> registreringsID() {
return ((this.registreringsID == null)?this.registreringsID = new com.kscs.util.jaxb.Selector>(this._root, this, "registreringsID"):this.registreringsID);
}
public EksternNoekkel.Selector> referanseEksternNoekkel() {
return ((this.referanseEksternNoekkel == null)?this.referanseEksternNoekkel = new EksternNoekkel.Selector>(this._root, this, "referanseEksternNoekkel"):this.referanseEksternNoekkel);
}
}
}