no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.DokumentbeskrivelseKvittering 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.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.SystemID;
import org.w3._2001.xmlschema.Adapter1;
/**
* Java class for dokumentbeskrivelseKvittering complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="dokumentbeskrivelseKvittering">
* <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="dokumentobjekt" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/kvittering/v1}dokumentobjektKvittering" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dokumentbeskrivelseKvittering", propOrder = {
"systemID",
"opprettetDato",
"opprettetAv",
"dokumentobjekts"
})
public class DokumentbeskrivelseKvittering {
@XmlElement(required = true)
protected SystemID systemID;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime opprettetDato;
protected String opprettetAv;
@XmlElement(name = "dokumentobjekt")
protected List dokumentobjekts;
/**
* 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 dokumentobjekts 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 dokumentobjekts property.
*
*
* For example, to add a new item, do as follows:
*
* getDokumentobjekts().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DokumentobjektKvittering }
*
*
*/
public List getDokumentobjekts() {
if (dokumentobjekts == null) {
dokumentobjekts = new ArrayList();
}
return this.dokumentobjekts;
}
/**
* 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 DokumentbeskrivelseKvittering.Builder<_B> _other) {
_other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other));
_other.opprettetDato = this.opprettetDato;
_other.opprettetAv = this.opprettetAv;
if (this.dokumentobjekts == null) {
_other.dokumentobjekts = null;
} else {
_other.dokumentobjekts = new ArrayList>>();
for (DokumentobjektKvittering _item: this.dokumentobjekts) {
_other.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
}
public<_B >DokumentbeskrivelseKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new DokumentbeskrivelseKvittering.Builder<_B>(_parentBuilder, this, true);
}
public DokumentbeskrivelseKvittering.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static DokumentbeskrivelseKvittering.Builder builder() {
return new DokumentbeskrivelseKvittering.Builder(null, null, false);
}
public static<_B >DokumentbeskrivelseKvittering.Builder<_B> copyOf(final DokumentbeskrivelseKvittering _other) {
final DokumentbeskrivelseKvittering.Builder<_B> _newBuilder = new DokumentbeskrivelseKvittering.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 DokumentbeskrivelseKvittering.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 dokumentobjektsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentobjekts"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentobjektsPropertyTree!= null):((dokumentobjektsPropertyTree == null)||(!dokumentobjektsPropertyTree.isLeaf())))) {
if (this.dokumentobjekts == null) {
_other.dokumentobjekts = null;
} else {
_other.dokumentobjekts = new ArrayList>>();
for (DokumentobjektKvittering _item: this.dokumentobjekts) {
_other.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(_other, dokumentobjektsPropertyTree, _propertyTreeUse)));
}
}
}
}
public<_B >DokumentbeskrivelseKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new DokumentbeskrivelseKvittering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public DokumentbeskrivelseKvittering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >DokumentbeskrivelseKvittering.Builder<_B> copyOf(final DokumentbeskrivelseKvittering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final DokumentbeskrivelseKvittering.Builder<_B> _newBuilder = new DokumentbeskrivelseKvittering.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static DokumentbeskrivelseKvittering.Builder copyExcept(final DokumentbeskrivelseKvittering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static DokumentbeskrivelseKvittering.Builder copyOnly(final DokumentbeskrivelseKvittering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final DokumentbeskrivelseKvittering _storedValue;
private SystemID.Builder> systemID;
private ZonedDateTime opprettetDato;
private String opprettetAv;
private List>> dokumentobjekts;
public Builder(final _B _parentBuilder, final DokumentbeskrivelseKvittering _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;
if (_other.dokumentobjekts == null) {
this.dokumentobjekts = null;
} else {
this.dokumentobjekts = new ArrayList>>();
for (DokumentobjektKvittering _item: _other.dokumentobjekts) {
this.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final DokumentbeskrivelseKvittering _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 dokumentobjektsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentobjekts"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentobjektsPropertyTree!= null):((dokumentobjektsPropertyTree == null)||(!dokumentobjektsPropertyTree.isLeaf())))) {
if (_other.dokumentobjekts == null) {
this.dokumentobjekts = null;
} else {
this.dokumentobjekts = new ArrayList>>();
for (DokumentobjektKvittering _item: _other.dokumentobjekts) {
this.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(this, dokumentobjektsPropertyTree, _propertyTreeUse)));
}
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends DokumentbeskrivelseKvittering >_P init(final _P _product) {
_product.systemID = ((this.systemID == null)?null:this.systemID.build());
_product.opprettetDato = this.opprettetDato;
_product.opprettetAv = this.opprettetAv;
if (this.dokumentobjekts!= null) {
final List dokumentobjekts = new ArrayList(this.dokumentobjekts.size());
for (DokumentobjektKvittering.Builder> _item: this.dokumentobjekts) {
dokumentobjekts.add(_item.build());
}
_product.dokumentobjekts = dokumentobjekts;
}
return _product;
}
/**
* Sets the new value of "systemID" (any previous value will be replaced)
*
* @param systemID
* New value of the "systemID" property.
*/
public DokumentbeskrivelseKvittering.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 DokumentbeskrivelseKvittering.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 DokumentbeskrivelseKvittering.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 DokumentbeskrivelseKvittering.Builder<_B> withOpprettetAv(final String opprettetAv) {
this.opprettetAv = opprettetAv;
return this;
}
/**
* Adds the given items to the value of "dokumentobjekts"
*
* @param dokumentobjekts
* Items to add to the value of the "dokumentobjekts" property
*/
public DokumentbeskrivelseKvittering.Builder<_B> addDokumentobjekts(final Iterable extends DokumentobjektKvittering> dokumentobjekts) {
if (dokumentobjekts!= null) {
if (this.dokumentobjekts == null) {
this.dokumentobjekts = new ArrayList>>();
}
for (DokumentobjektKvittering _item: dokumentobjekts) {
this.dokumentobjekts.add(new DokumentobjektKvittering.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "dokumentobjekts" (any previous value will be replaced)
*
* @param dokumentobjekts
* New value of the "dokumentobjekts" property.
*/
public DokumentbeskrivelseKvittering.Builder<_B> withDokumentobjekts(final Iterable extends DokumentobjektKvittering> dokumentobjekts) {
if (this.dokumentobjekts!= null) {
this.dokumentobjekts.clear();
}
return addDokumentobjekts(dokumentobjekts);
}
/**
* Adds the given items to the value of "dokumentobjekts"
*
* @param dokumentobjekts
* Items to add to the value of the "dokumentobjekts" property
*/
public DokumentbeskrivelseKvittering.Builder<_B> addDokumentobjekts(DokumentobjektKvittering... dokumentobjekts) {
addDokumentobjekts(Arrays.asList(dokumentobjekts));
return this;
}
/**
* Sets the new value of "dokumentobjekts" (any previous value will be replaced)
*
* @param dokumentobjekts
* New value of the "dokumentobjekts" property.
*/
public DokumentbeskrivelseKvittering.Builder<_B> withDokumentobjekts(DokumentobjektKvittering... dokumentobjekts) {
withDokumentobjekts(Arrays.asList(dokumentobjekts));
return this;
}
/**
* Returns a new builder to build an additional value of the "Dokumentobjekts"
* property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.DokumentobjektKvittering.Builder#end()}
* to return to the current builder.
*
* @return
* a new builder to build an additional value of the "Dokumentobjekts" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.DokumentobjektKvittering.Builder#end()}
* to return to the current builder.
*/
public DokumentobjektKvittering.Builder extends DokumentbeskrivelseKvittering.Builder<_B>> addDokumentobjekts() {
if (this.dokumentobjekts == null) {
this.dokumentobjekts = new ArrayList>>();
}
final DokumentobjektKvittering.Builder> dokumentobjekts_Builder = new DokumentobjektKvittering.Builder>(this, null, false);
this.dokumentobjekts.add(dokumentobjekts_Builder);
return dokumentobjekts_Builder;
}
@Override
public DokumentbeskrivelseKvittering build() {
if (_storedValue == null) {
return this.init(new DokumentbeskrivelseKvittering());
} else {
return ((DokumentbeskrivelseKvittering) _storedValue);
}
}
public DokumentbeskrivelseKvittering.Builder<_B> copyOf(final DokumentbeskrivelseKvittering _other) {
_other.copyTo(this);
return this;
}
public DokumentbeskrivelseKvittering.Builder<_B> copyOf(final DokumentbeskrivelseKvittering.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends DokumentbeskrivelseKvittering.Selector
{
Select() {
super(null, null, null);
}
public static DokumentbeskrivelseKvittering.Select _root() {
return new DokumentbeskrivelseKvittering.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 DokumentobjektKvittering.Selector> dokumentobjekts = 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.dokumentobjekts!= null) {
products.put("dokumentobjekts", this.dokumentobjekts.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 DokumentobjektKvittering.Selector> dokumentobjekts() {
return ((this.dokumentobjekts == null)?this.dokumentobjekts = new DokumentobjektKvittering.Selector>(this._root, this, "dokumentobjekts"):this.dokumentobjekts);
}
}
}