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

no.ks.fiks.arkiv.v1.arkivmelding.opprett.Dokumentbeskrivelse 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;

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.Dokumentmedium;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumentstatus;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumenttype;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Kode;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.TilknyttetRegistreringSom;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for dokumentbeskrivelse complex type. * *

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

 * <complexType name="dokumentbeskrivelse">
 *   <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" minOccurs="0"/>
 *         <element name="dokumenttype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}dokumenttype" minOccurs="0"/>
 *         <element name="dokumentstatus" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}dokumentstatus" minOccurs="0"/>
 *         <element name="tittel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tittel"/>
 *         <element name="beskrivelse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}beskrivelse" minOccurs="0"/>
 *         <element name="forfatter" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}forfatter" maxOccurs="unbounded" 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="dokumentmedium" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}dokumentmedium" minOccurs="0"/>
 *         <element name="oppbevaringssted" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}oppbevaringssted" minOccurs="0"/>
 *         <element name="arkivdel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}kode" minOccurs="0"/>
 *         <element name="tilknyttetRegistreringSom" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tilknyttetRegistreringSom"/>
 *         <element name="dokumentnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}dokumentnummer" minOccurs="0"/>
 *         <element name="tilknyttetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tilknyttetDato" minOccurs="0"/>
 *         <element name="tilknyttetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tilknyttetAv" minOccurs="0"/>
 *         <element name="part" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}part" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="merknad" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}merknad" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="skjerming" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}skjerming" minOccurs="0"/>
 *         <element name="gradering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}gradering" minOccurs="0"/>
 *         <element name="dokumentobjekt" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}dokumentobjekt" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "dokumentbeskrivelse", propOrder = { "systemID", "dokumenttype", "dokumentstatus", "tittel", "beskrivelse", "forfatters", "opprettetDato", "opprettetAv", "dokumentmedium", "oppbevaringssted", "arkivdel", "tilknyttetRegistreringSom", "dokumentnummer", "tilknyttetDato", "tilknyttetAv", "parts", "merknads", "skjerming", "gradering", "dokumentobjekts" }) public class Dokumentbeskrivelse { protected SystemID systemID; protected Dokumenttype dokumenttype; protected Dokumentstatus dokumentstatus; @XmlElement(required = true) protected String tittel; protected String beskrivelse; @XmlElement(name = "forfatter") protected List forfatters; @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime opprettetDato; protected String opprettetAv; protected Dokumentmedium dokumentmedium; protected String oppbevaringssted; protected Kode arkivdel; @XmlElement(required = true) protected TilknyttetRegistreringSom tilknyttetRegistreringSom; protected Integer dokumentnummer; @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime tilknyttetDato; protected String tilknyttetAv; @XmlElement(name = "part") protected List parts; @XmlElement(name = "merknad") protected List merknads; protected Skjerming skjerming; protected Gradering gradering; @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 dokumenttype property. * * @return * possible object is * {@link Dokumenttype } * */ public Dokumenttype getDokumenttype() { return dokumenttype; } /** * Sets the value of the dokumenttype property. * * @param value * allowed object is * {@link Dokumenttype } * */ public void setDokumenttype(Dokumenttype value) { this.dokumenttype = value; } /** * Gets the value of the dokumentstatus property. * * @return * possible object is * {@link Dokumentstatus } * */ public Dokumentstatus getDokumentstatus() { return dokumentstatus; } /** * Sets the value of the dokumentstatus property. * * @param value * allowed object is * {@link Dokumentstatus } * */ public void setDokumentstatus(Dokumentstatus value) { this.dokumentstatus = value; } /** * Gets the value of the tittel property. * * @return * possible object is * {@link String } * */ public String getTittel() { return tittel; } /** * Sets the value of the tittel property. * * @param value * allowed object is * {@link String } * */ public void setTittel(String value) { this.tittel = value; } /** * Gets the value of the beskrivelse property. * * @return * possible object is * {@link String } * */ public String getBeskrivelse() { return beskrivelse; } /** * Sets the value of the beskrivelse property. * * @param value * allowed object is * {@link String } * */ public void setBeskrivelse(String value) { this.beskrivelse = value; } /** * Gets the value of the forfatters 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 forfatters property. * *

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

     *    getForfatters().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getForfatters() { if (forfatters == null) { forfatters = new ArrayList(); } return this.forfatters; } /** * 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 dokumentmedium property. * * @return * possible object is * {@link Dokumentmedium } * */ public Dokumentmedium getDokumentmedium() { return dokumentmedium; } /** * Sets the value of the dokumentmedium property. * * @param value * allowed object is * {@link Dokumentmedium } * */ public void setDokumentmedium(Dokumentmedium value) { this.dokumentmedium = value; } /** * Gets the value of the oppbevaringssted property. * * @return * possible object is * {@link String } * */ public String getOppbevaringssted() { return oppbevaringssted; } /** * Sets the value of the oppbevaringssted property. * * @param value * allowed object is * {@link String } * */ public void setOppbevaringssted(String value) { this.oppbevaringssted = value; } /** * Gets the value of the arkivdel property. * * @return * possible object is * {@link Kode } * */ public Kode getArkivdel() { return arkivdel; } /** * Sets the value of the arkivdel property. * * @param value * allowed object is * {@link Kode } * */ public void setArkivdel(Kode value) { this.arkivdel = value; } /** * Gets the value of the tilknyttetRegistreringSom property. * * @return * possible object is * {@link TilknyttetRegistreringSom } * */ public TilknyttetRegistreringSom getTilknyttetRegistreringSom() { return tilknyttetRegistreringSom; } /** * Sets the value of the tilknyttetRegistreringSom property. * * @param value * allowed object is * {@link TilknyttetRegistreringSom } * */ public void setTilknyttetRegistreringSom(TilknyttetRegistreringSom value) { this.tilknyttetRegistreringSom = value; } /** * Gets the value of the dokumentnummer property. * * @return * possible object is * {@link Integer } * */ public Integer getDokumentnummer() { return dokumentnummer; } /** * Sets the value of the dokumentnummer property. * * @param value * allowed object is * {@link Integer } * */ public void setDokumentnummer(Integer value) { this.dokumentnummer = value; } /** * Gets the value of the tilknyttetDato property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getTilknyttetDato() { return tilknyttetDato; } /** * Sets the value of the tilknyttetDato property. * * @param value * allowed object is * {@link String } * */ public void setTilknyttetDato(ZonedDateTime value) { this.tilknyttetDato = value; } /** * Gets the value of the tilknyttetAv property. * * @return * possible object is * {@link String } * */ public String getTilknyttetAv() { return tilknyttetAv; } /** * Sets the value of the tilknyttetAv property. * * @param value * allowed object is * {@link String } * */ public void setTilknyttetAv(String value) { this.tilknyttetAv = value; } /** * Gets the value of the parts 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 parts property. * *

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

     *    getParts().add(newItem);
     * 
* * *

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

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

     *    getMerknads().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Merknad } * * */ public List getMerknads() { if (merknads == null) { merknads = new ArrayList(); } return this.merknads; } /** * Gets the value of the skjerming property. * * @return * possible object is * {@link Skjerming } * */ public Skjerming getSkjerming() { return skjerming; } /** * Sets the value of the skjerming property. * * @param value * allowed object is * {@link Skjerming } * */ public void setSkjerming(Skjerming value) { this.skjerming = value; } /** * Gets the value of the gradering property. * * @return * possible object is * {@link Gradering } * */ public Gradering getGradering() { return gradering; } /** * Sets the value of the gradering property. * * @param value * allowed object is * {@link Gradering } * */ public void setGradering(Gradering value) { this.gradering = 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 Dokumentobjekt } * * */ 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 Dokumentbeskrivelse.Builder<_B> _other) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other)); _other.dokumenttype = ((this.dokumenttype == null)?null:this.dokumenttype.newCopyBuilder(_other)); _other.dokumentstatus = ((this.dokumentstatus == null)?null:this.dokumentstatus.newCopyBuilder(_other)); _other.tittel = this.tittel; _other.beskrivelse = this.beskrivelse; if (this.forfatters == null) { _other.forfatters = null; } else { _other.forfatters = new ArrayList(); for (String _item: this.forfatters) { _other.forfatters.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } _other.opprettetDato = this.opprettetDato; _other.opprettetAv = this.opprettetAv; _other.dokumentmedium = ((this.dokumentmedium == null)?null:this.dokumentmedium.newCopyBuilder(_other)); _other.oppbevaringssted = this.oppbevaringssted; _other.arkivdel = ((this.arkivdel == null)?null:this.arkivdel.newCopyBuilder(_other)); _other.tilknyttetRegistreringSom = ((this.tilknyttetRegistreringSom == null)?null:this.tilknyttetRegistreringSom.newCopyBuilder(_other)); _other.dokumentnummer = this.dokumentnummer; _other.tilknyttetDato = this.tilknyttetDato; _other.tilknyttetAv = this.tilknyttetAv; if (this.parts == null) { _other.parts = null; } else { _other.parts = new ArrayList>>(); for (Part _item: this.parts) { _other.parts.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } if (this.merknads == null) { _other.merknads = null; } else { _other.merknads = new ArrayList>>(); for (Merknad _item: this.merknads) { _other.merknads.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } _other.skjerming = ((this.skjerming == null)?null:this.skjerming.newCopyBuilder(_other)); _other.gradering = ((this.gradering == null)?null:this.gradering.newCopyBuilder(_other)); if (this.dokumentobjekts == null) { _other.dokumentobjekts = null; } else { _other.dokumentobjekts = new ArrayList>>(); for (Dokumentobjekt _item: this.dokumentobjekts) { _other.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >Dokumentbeskrivelse.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Dokumentbeskrivelse.Builder<_B>(_parentBuilder, this, true); } public Dokumentbeskrivelse.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Dokumentbeskrivelse.Builder builder() { return new Dokumentbeskrivelse.Builder(null, null, false); } public static<_B >Dokumentbeskrivelse.Builder<_B> copyOf(final Dokumentbeskrivelse _other) { final Dokumentbeskrivelse.Builder<_B> _newBuilder = new Dokumentbeskrivelse.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 Dokumentbeskrivelse.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 dokumenttypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumenttype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumenttypePropertyTree!= null):((dokumenttypePropertyTree == null)||(!dokumenttypePropertyTree.isLeaf())))) { _other.dokumenttype = ((this.dokumenttype == null)?null:this.dokumenttype.newCopyBuilder(_other, dokumenttypePropertyTree, _propertyTreeUse)); } final PropertyTree dokumentstatusPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentstatus")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentstatusPropertyTree!= null):((dokumentstatusPropertyTree == null)||(!dokumentstatusPropertyTree.isLeaf())))) { _other.dokumentstatus = ((this.dokumentstatus == null)?null:this.dokumentstatus.newCopyBuilder(_other, dokumentstatusPropertyTree, _propertyTreeUse)); } final PropertyTree tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) { _other.tittel = this.tittel; } final PropertyTree beskrivelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("beskrivelse")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(beskrivelsePropertyTree!= null):((beskrivelsePropertyTree == null)||(!beskrivelsePropertyTree.isLeaf())))) { _other.beskrivelse = this.beskrivelse; } final PropertyTree forfattersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("forfatters")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(forfattersPropertyTree!= null):((forfattersPropertyTree == null)||(!forfattersPropertyTree.isLeaf())))) { if (this.forfatters == null) { _other.forfatters = null; } else { _other.forfatters = new ArrayList(); for (String _item: this.forfatters) { _other.forfatters.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } 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 dokumentmediumPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentmedium")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentmediumPropertyTree!= null):((dokumentmediumPropertyTree == null)||(!dokumentmediumPropertyTree.isLeaf())))) { _other.dokumentmedium = ((this.dokumentmedium == null)?null:this.dokumentmedium.newCopyBuilder(_other, dokumentmediumPropertyTree, _propertyTreeUse)); } final PropertyTree oppbevaringsstedPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("oppbevaringssted")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(oppbevaringsstedPropertyTree!= null):((oppbevaringsstedPropertyTree == null)||(!oppbevaringsstedPropertyTree.isLeaf())))) { _other.oppbevaringssted = this.oppbevaringssted; } final PropertyTree arkivdelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arkivdel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arkivdelPropertyTree!= null):((arkivdelPropertyTree == null)||(!arkivdelPropertyTree.isLeaf())))) { _other.arkivdel = ((this.arkivdel == null)?null:this.arkivdel.newCopyBuilder(_other, arkivdelPropertyTree, _propertyTreeUse)); } final PropertyTree tilknyttetRegistreringSomPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tilknyttetRegistreringSom")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tilknyttetRegistreringSomPropertyTree!= null):((tilknyttetRegistreringSomPropertyTree == null)||(!tilknyttetRegistreringSomPropertyTree.isLeaf())))) { _other.tilknyttetRegistreringSom = ((this.tilknyttetRegistreringSom == null)?null:this.tilknyttetRegistreringSom.newCopyBuilder(_other, tilknyttetRegistreringSomPropertyTree, _propertyTreeUse)); } final PropertyTree dokumentnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentnummerPropertyTree!= null):((dokumentnummerPropertyTree == null)||(!dokumentnummerPropertyTree.isLeaf())))) { _other.dokumentnummer = this.dokumentnummer; } final PropertyTree tilknyttetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tilknyttetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tilknyttetDatoPropertyTree!= null):((tilknyttetDatoPropertyTree == null)||(!tilknyttetDatoPropertyTree.isLeaf())))) { _other.tilknyttetDato = this.tilknyttetDato; } final PropertyTree tilknyttetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tilknyttetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tilknyttetAvPropertyTree!= null):((tilknyttetAvPropertyTree == null)||(!tilknyttetAvPropertyTree.isLeaf())))) { _other.tilknyttetAv = this.tilknyttetAv; } final PropertyTree partsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("parts")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partsPropertyTree!= null):((partsPropertyTree == null)||(!partsPropertyTree.isLeaf())))) { if (this.parts == null) { _other.parts = null; } else { _other.parts = new ArrayList>>(); for (Part _item: this.parts) { _other.parts.add(((_item == null)?null:_item.newCopyBuilder(_other, partsPropertyTree, _propertyTreeUse))); } } } final PropertyTree merknadsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknads")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadsPropertyTree!= null):((merknadsPropertyTree == null)||(!merknadsPropertyTree.isLeaf())))) { if (this.merknads == null) { _other.merknads = null; } else { _other.merknads = new ArrayList>>(); for (Merknad _item: this.merknads) { _other.merknads.add(((_item == null)?null:_item.newCopyBuilder(_other, merknadsPropertyTree, _propertyTreeUse))); } } } final PropertyTree skjermingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skjerming")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skjermingPropertyTree!= null):((skjermingPropertyTree == null)||(!skjermingPropertyTree.isLeaf())))) { _other.skjerming = ((this.skjerming == null)?null:this.skjerming.newCopyBuilder(_other, skjermingPropertyTree, _propertyTreeUse)); } final PropertyTree graderingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gradering")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(graderingPropertyTree!= null):((graderingPropertyTree == null)||(!graderingPropertyTree.isLeaf())))) { _other.gradering = ((this.gradering == null)?null:this.gradering.newCopyBuilder(_other, graderingPropertyTree, _propertyTreeUse)); } 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 (Dokumentobjekt _item: this.dokumentobjekts) { _other.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(_other, dokumentobjektsPropertyTree, _propertyTreeUse))); } } } } public<_B >Dokumentbeskrivelse.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Dokumentbeskrivelse.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Dokumentbeskrivelse.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Dokumentbeskrivelse.Builder<_B> copyOf(final Dokumentbeskrivelse _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Dokumentbeskrivelse.Builder<_B> _newBuilder = new Dokumentbeskrivelse.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Dokumentbeskrivelse.Builder copyExcept(final Dokumentbeskrivelse _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Dokumentbeskrivelse.Builder copyOnly(final Dokumentbeskrivelse _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Dokumentbeskrivelse _storedValue; private SystemID.Builder> systemID; private Dokumenttype.Builder> dokumenttype; private Dokumentstatus.Builder> dokumentstatus; private String tittel; private String beskrivelse; private List forfatters; private ZonedDateTime opprettetDato; private String opprettetAv; private Dokumentmedium.Builder> dokumentmedium; private String oppbevaringssted; private Kode.Builder> arkivdel; private TilknyttetRegistreringSom.Builder> tilknyttetRegistreringSom; private Integer dokumentnummer; private ZonedDateTime tilknyttetDato; private String tilknyttetAv; private List>> parts; private List>> merknads; private Skjerming.Builder> skjerming; private Gradering.Builder> gradering; private List>> dokumentobjekts; public Builder(final _B _parentBuilder, final Dokumentbeskrivelse _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.dokumenttype = ((_other.dokumenttype == null)?null:_other.dokumenttype.newCopyBuilder(this)); this.dokumentstatus = ((_other.dokumentstatus == null)?null:_other.dokumentstatus.newCopyBuilder(this)); this.tittel = _other.tittel; this.beskrivelse = _other.beskrivelse; if (_other.forfatters == null) { this.forfatters = null; } else { this.forfatters = new ArrayList(); for (String _item: _other.forfatters) { this.forfatters.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } this.opprettetDato = _other.opprettetDato; this.opprettetAv = _other.opprettetAv; this.dokumentmedium = ((_other.dokumentmedium == null)?null:_other.dokumentmedium.newCopyBuilder(this)); this.oppbevaringssted = _other.oppbevaringssted; this.arkivdel = ((_other.arkivdel == null)?null:_other.arkivdel.newCopyBuilder(this)); this.tilknyttetRegistreringSom = ((_other.tilknyttetRegistreringSom == null)?null:_other.tilknyttetRegistreringSom.newCopyBuilder(this)); this.dokumentnummer = _other.dokumentnummer; this.tilknyttetDato = _other.tilknyttetDato; this.tilknyttetAv = _other.tilknyttetAv; if (_other.parts == null) { this.parts = null; } else { this.parts = new ArrayList>>(); for (Part _item: _other.parts) { this.parts.add(((_item == null)?null:_item.newCopyBuilder(this))); } } if (_other.merknads == null) { this.merknads = null; } else { this.merknads = new ArrayList>>(); for (Merknad _item: _other.merknads) { this.merknads.add(((_item == null)?null:_item.newCopyBuilder(this))); } } this.skjerming = ((_other.skjerming == null)?null:_other.skjerming.newCopyBuilder(this)); this.gradering = ((_other.gradering == null)?null:_other.gradering.newCopyBuilder(this)); if (_other.dokumentobjekts == null) { this.dokumentobjekts = null; } else { this.dokumentobjekts = new ArrayList>>(); for (Dokumentobjekt _item: _other.dokumentobjekts) { this.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Dokumentbeskrivelse _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 dokumenttypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumenttype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumenttypePropertyTree!= null):((dokumenttypePropertyTree == null)||(!dokumenttypePropertyTree.isLeaf())))) { this.dokumenttype = ((_other.dokumenttype == null)?null:_other.dokumenttype.newCopyBuilder(this, dokumenttypePropertyTree, _propertyTreeUse)); } final PropertyTree dokumentstatusPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentstatus")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentstatusPropertyTree!= null):((dokumentstatusPropertyTree == null)||(!dokumentstatusPropertyTree.isLeaf())))) { this.dokumentstatus = ((_other.dokumentstatus == null)?null:_other.dokumentstatus.newCopyBuilder(this, dokumentstatusPropertyTree, _propertyTreeUse)); } final PropertyTree tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) { this.tittel = _other.tittel; } final PropertyTree beskrivelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("beskrivelse")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(beskrivelsePropertyTree!= null):((beskrivelsePropertyTree == null)||(!beskrivelsePropertyTree.isLeaf())))) { this.beskrivelse = _other.beskrivelse; } final PropertyTree forfattersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("forfatters")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(forfattersPropertyTree!= null):((forfattersPropertyTree == null)||(!forfattersPropertyTree.isLeaf())))) { if (_other.forfatters == null) { this.forfatters = null; } else { this.forfatters = new ArrayList(); for (String _item: _other.forfatters) { this.forfatters.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } 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 dokumentmediumPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentmedium")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentmediumPropertyTree!= null):((dokumentmediumPropertyTree == null)||(!dokumentmediumPropertyTree.isLeaf())))) { this.dokumentmedium = ((_other.dokumentmedium == null)?null:_other.dokumentmedium.newCopyBuilder(this, dokumentmediumPropertyTree, _propertyTreeUse)); } final PropertyTree oppbevaringsstedPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("oppbevaringssted")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(oppbevaringsstedPropertyTree!= null):((oppbevaringsstedPropertyTree == null)||(!oppbevaringsstedPropertyTree.isLeaf())))) { this.oppbevaringssted = _other.oppbevaringssted; } final PropertyTree arkivdelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arkivdel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arkivdelPropertyTree!= null):((arkivdelPropertyTree == null)||(!arkivdelPropertyTree.isLeaf())))) { this.arkivdel = ((_other.arkivdel == null)?null:_other.arkivdel.newCopyBuilder(this, arkivdelPropertyTree, _propertyTreeUse)); } final PropertyTree tilknyttetRegistreringSomPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tilknyttetRegistreringSom")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tilknyttetRegistreringSomPropertyTree!= null):((tilknyttetRegistreringSomPropertyTree == null)||(!tilknyttetRegistreringSomPropertyTree.isLeaf())))) { this.tilknyttetRegistreringSom = ((_other.tilknyttetRegistreringSom == null)?null:_other.tilknyttetRegistreringSom.newCopyBuilder(this, tilknyttetRegistreringSomPropertyTree, _propertyTreeUse)); } final PropertyTree dokumentnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentnummerPropertyTree!= null):((dokumentnummerPropertyTree == null)||(!dokumentnummerPropertyTree.isLeaf())))) { this.dokumentnummer = _other.dokumentnummer; } final PropertyTree tilknyttetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tilknyttetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tilknyttetDatoPropertyTree!= null):((tilknyttetDatoPropertyTree == null)||(!tilknyttetDatoPropertyTree.isLeaf())))) { this.tilknyttetDato = _other.tilknyttetDato; } final PropertyTree tilknyttetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tilknyttetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tilknyttetAvPropertyTree!= null):((tilknyttetAvPropertyTree == null)||(!tilknyttetAvPropertyTree.isLeaf())))) { this.tilknyttetAv = _other.tilknyttetAv; } final PropertyTree partsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("parts")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partsPropertyTree!= null):((partsPropertyTree == null)||(!partsPropertyTree.isLeaf())))) { if (_other.parts == null) { this.parts = null; } else { this.parts = new ArrayList>>(); for (Part _item: _other.parts) { this.parts.add(((_item == null)?null:_item.newCopyBuilder(this, partsPropertyTree, _propertyTreeUse))); } } } final PropertyTree merknadsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknads")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadsPropertyTree!= null):((merknadsPropertyTree == null)||(!merknadsPropertyTree.isLeaf())))) { if (_other.merknads == null) { this.merknads = null; } else { this.merknads = new ArrayList>>(); for (Merknad _item: _other.merknads) { this.merknads.add(((_item == null)?null:_item.newCopyBuilder(this, merknadsPropertyTree, _propertyTreeUse))); } } } final PropertyTree skjermingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skjerming")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skjermingPropertyTree!= null):((skjermingPropertyTree == null)||(!skjermingPropertyTree.isLeaf())))) { this.skjerming = ((_other.skjerming == null)?null:_other.skjerming.newCopyBuilder(this, skjermingPropertyTree, _propertyTreeUse)); } final PropertyTree graderingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gradering")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(graderingPropertyTree!= null):((graderingPropertyTree == null)||(!graderingPropertyTree.isLeaf())))) { this.gradering = ((_other.gradering == null)?null:_other.gradering.newCopyBuilder(this, graderingPropertyTree, _propertyTreeUse)); } 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 (Dokumentobjekt _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 Dokumentbeskrivelse >_P init(final _P _product) { _product.systemID = ((this.systemID == null)?null:this.systemID.build()); _product.dokumenttype = ((this.dokumenttype == null)?null:this.dokumenttype.build()); _product.dokumentstatus = ((this.dokumentstatus == null)?null:this.dokumentstatus.build()); _product.tittel = this.tittel; _product.beskrivelse = this.beskrivelse; if (this.forfatters!= null) { final List forfatters = new ArrayList(this.forfatters.size()); for (Buildable _item: this.forfatters) { forfatters.add(((String) _item.build())); } _product.forfatters = forfatters; } _product.opprettetDato = this.opprettetDato; _product.opprettetAv = this.opprettetAv; _product.dokumentmedium = ((this.dokumentmedium == null)?null:this.dokumentmedium.build()); _product.oppbevaringssted = this.oppbevaringssted; _product.arkivdel = ((this.arkivdel == null)?null:this.arkivdel.build()); _product.tilknyttetRegistreringSom = ((this.tilknyttetRegistreringSom == null)?null:this.tilknyttetRegistreringSom.build()); _product.dokumentnummer = this.dokumentnummer; _product.tilknyttetDato = this.tilknyttetDato; _product.tilknyttetAv = this.tilknyttetAv; if (this.parts!= null) { final List parts = new ArrayList(this.parts.size()); for (Part.Builder> _item: this.parts) { parts.add(_item.build()); } _product.parts = parts; } if (this.merknads!= null) { final List merknads = new ArrayList(this.merknads.size()); for (Merknad.Builder> _item: this.merknads) { merknads.add(_item.build()); } _product.merknads = merknads; } _product.skjerming = ((this.skjerming == null)?null:this.skjerming.build()); _product.gradering = ((this.gradering == null)?null:this.gradering.build()); if (this.dokumentobjekts!= null) { final List dokumentobjekts = new ArrayList(this.dokumentobjekts.size()); for (Dokumentobjekt.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 Dokumentbeskrivelse.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 "dokumenttype" (any previous value will be replaced) * * @param dokumenttype * New value of the "dokumenttype" property. */ public Dokumentbeskrivelse.Builder<_B> withDokumenttype(final Dokumenttype dokumenttype) { this.dokumenttype = ((dokumenttype == null)?null:new Dokumenttype.Builder>(this, dokumenttype, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "dokumenttype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumenttype.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "dokumenttype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumenttype.Builder#end()} to * return to the current builder. */ public Dokumenttype.Builder> withDokumenttype() { if (this.dokumenttype!= null) { return this.dokumenttype; } return this.dokumenttype = new Dokumenttype.Builder>(this, null, false); } /** * Sets the new value of "dokumentstatus" (any previous value will be replaced) * * @param dokumentstatus * New value of the "dokumentstatus" property. */ public Dokumentbeskrivelse.Builder<_B> withDokumentstatus(final Dokumentstatus dokumentstatus) { this.dokumentstatus = ((dokumentstatus == null)?null:new Dokumentstatus.Builder>(this, dokumentstatus, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "dokumentstatus" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumentstatus.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "dokumentstatus" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumentstatus.Builder#end()} * to return to the current builder. */ public Dokumentstatus.Builder> withDokumentstatus() { if (this.dokumentstatus!= null) { return this.dokumentstatus; } return this.dokumentstatus = new Dokumentstatus.Builder>(this, null, false); } /** * Sets the new value of "tittel" (any previous value will be replaced) * * @param tittel * New value of the "tittel" property. */ public Dokumentbeskrivelse.Builder<_B> withTittel(final String tittel) { this.tittel = tittel; return this; } /** * Sets the new value of "beskrivelse" (any previous value will be replaced) * * @param beskrivelse * New value of the "beskrivelse" property. */ public Dokumentbeskrivelse.Builder<_B> withBeskrivelse(final String beskrivelse) { this.beskrivelse = beskrivelse; return this; } /** * Adds the given items to the value of "forfatters" * * @param forfatters * Items to add to the value of the "forfatters" property */ public Dokumentbeskrivelse.Builder<_B> addForfatters(final Iterable forfatters) { if (forfatters!= null) { if (this.forfatters == null) { this.forfatters = new ArrayList(); } for (String _item: forfatters) { this.forfatters.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Sets the new value of "forfatters" (any previous value will be replaced) * * @param forfatters * New value of the "forfatters" property. */ public Dokumentbeskrivelse.Builder<_B> withForfatters(final Iterable forfatters) { if (this.forfatters!= null) { this.forfatters.clear(); } return addForfatters(forfatters); } /** * Adds the given items to the value of "forfatters" * * @param forfatters * Items to add to the value of the "forfatters" property */ public Dokumentbeskrivelse.Builder<_B> addForfatters(String... forfatters) { addForfatters(Arrays.asList(forfatters)); return this; } /** * Sets the new value of "forfatters" (any previous value will be replaced) * * @param forfatters * New value of the "forfatters" property. */ public Dokumentbeskrivelse.Builder<_B> withForfatters(String... forfatters) { withForfatters(Arrays.asList(forfatters)); return this; } /** * Sets the new value of "opprettetDato" (any previous value will be replaced) * * @param opprettetDato * New value of the "opprettetDato" property. */ public Dokumentbeskrivelse.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 Dokumentbeskrivelse.Builder<_B> withOpprettetAv(final String opprettetAv) { this.opprettetAv = opprettetAv; return this; } /** * Sets the new value of "dokumentmedium" (any previous value will be replaced) * * @param dokumentmedium * New value of the "dokumentmedium" property. */ public Dokumentbeskrivelse.Builder<_B> withDokumentmedium(final Dokumentmedium dokumentmedium) { this.dokumentmedium = ((dokumentmedium == null)?null:new Dokumentmedium.Builder>(this, dokumentmedium, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "dokumentmedium" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumentmedium.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "dokumentmedium" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumentmedium.Builder#end()} * to return to the current builder. */ public Dokumentmedium.Builder> withDokumentmedium() { if (this.dokumentmedium!= null) { return this.dokumentmedium; } return this.dokumentmedium = new Dokumentmedium.Builder>(this, null, false); } /** * Sets the new value of "oppbevaringssted" (any previous value will be replaced) * * @param oppbevaringssted * New value of the "oppbevaringssted" property. */ public Dokumentbeskrivelse.Builder<_B> withOppbevaringssted(final String oppbevaringssted) { this.oppbevaringssted = oppbevaringssted; return this; } /** * Sets the new value of "arkivdel" (any previous value will be replaced) * * @param arkivdel * New value of the "arkivdel" property. */ public Dokumentbeskrivelse.Builder<_B> withArkivdel(final Kode arkivdel) { this.arkivdel = ((arkivdel == null)?null:new Kode.Builder>(this, arkivdel, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "arkivdel" property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Kode.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "arkivdel" property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Kode.Builder#end()} * to return to the current builder. */ public Kode.Builder> withArkivdel() { if (this.arkivdel!= null) { return this.arkivdel; } return this.arkivdel = new Kode.Builder>(this, null, false); } /** * Sets the new value of "tilknyttetRegistreringSom" (any previous value will be * replaced) * * @param tilknyttetRegistreringSom * New value of the "tilknyttetRegistreringSom" property. */ public Dokumentbeskrivelse.Builder<_B> withTilknyttetRegistreringSom(final TilknyttetRegistreringSom tilknyttetRegistreringSom) { this.tilknyttetRegistreringSom = ((tilknyttetRegistreringSom == null)?null:new TilknyttetRegistreringSom.Builder>(this, tilknyttetRegistreringSom, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "tilknyttetRegistreringSom" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.TilknyttetRegistreringSom.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "tilknyttetRegistreringSom" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.TilknyttetRegistreringSom.Builder#end()} * to return to the current builder. */ public TilknyttetRegistreringSom.Builder> withTilknyttetRegistreringSom() { if (this.tilknyttetRegistreringSom!= null) { return this.tilknyttetRegistreringSom; } return this.tilknyttetRegistreringSom = new TilknyttetRegistreringSom.Builder>(this, null, false); } /** * Sets the new value of "dokumentnummer" (any previous value will be replaced) * * @param dokumentnummer * New value of the "dokumentnummer" property. */ public Dokumentbeskrivelse.Builder<_B> withDokumentnummer(final Integer dokumentnummer) { this.dokumentnummer = dokumentnummer; return this; } /** * Sets the new value of "tilknyttetDato" (any previous value will be replaced) * * @param tilknyttetDato * New value of the "tilknyttetDato" property. */ public Dokumentbeskrivelse.Builder<_B> withTilknyttetDato(final ZonedDateTime tilknyttetDato) { this.tilknyttetDato = tilknyttetDato; return this; } /** * Sets the new value of "tilknyttetAv" (any previous value will be replaced) * * @param tilknyttetAv * New value of the "tilknyttetAv" property. */ public Dokumentbeskrivelse.Builder<_B> withTilknyttetAv(final String tilknyttetAv) { this.tilknyttetAv = tilknyttetAv; return this; } /** * Adds the given items to the value of "parts" * * @param parts * Items to add to the value of the "parts" property */ public Dokumentbeskrivelse.Builder<_B> addParts(final Iterable parts) { if (parts!= null) { if (this.parts == null) { this.parts = new ArrayList>>(); } for (Part _item: parts) { this.parts.add(new Part.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "parts" (any previous value will be replaced) * * @param parts * New value of the "parts" property. */ public Dokumentbeskrivelse.Builder<_B> withParts(final Iterable parts) { if (this.parts!= null) { this.parts.clear(); } return addParts(parts); } /** * Adds the given items to the value of "parts" * * @param parts * Items to add to the value of the "parts" property */ public Dokumentbeskrivelse.Builder<_B> addParts(Part... parts) { addParts(Arrays.asList(parts)); return this; } /** * Sets the new value of "parts" (any previous value will be replaced) * * @param parts * New value of the "parts" property. */ public Dokumentbeskrivelse.Builder<_B> withParts(Part... parts) { withParts(Arrays.asList(parts)); return this; } /** * Returns a new builder to build an additional value of the "Parts" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Part.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Parts" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Part.Builder#end()} to * return to the current builder. */ public Part.Builder> addParts() { if (this.parts == null) { this.parts = new ArrayList>>(); } final Part.Builder> parts_Builder = new Part.Builder>(this, null, false); this.parts.add(parts_Builder); return parts_Builder; } /** * Adds the given items to the value of "merknads" * * @param merknads * Items to add to the value of the "merknads" property */ public Dokumentbeskrivelse.Builder<_B> addMerknads(final Iterable merknads) { if (merknads!= null) { if (this.merknads == null) { this.merknads = new ArrayList>>(); } for (Merknad _item: merknads) { this.merknads.add(new Merknad.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "merknads" (any previous value will be replaced) * * @param merknads * New value of the "merknads" property. */ public Dokumentbeskrivelse.Builder<_B> withMerknads(final Iterable merknads) { if (this.merknads!= null) { this.merknads.clear(); } return addMerknads(merknads); } /** * Adds the given items to the value of "merknads" * * @param merknads * Items to add to the value of the "merknads" property */ public Dokumentbeskrivelse.Builder<_B> addMerknads(Merknad... merknads) { addMerknads(Arrays.asList(merknads)); return this; } /** * Sets the new value of "merknads" (any previous value will be replaced) * * @param merknads * New value of the "merknads" property. */ public Dokumentbeskrivelse.Builder<_B> withMerknads(Merknad... merknads) { withMerknads(Arrays.asList(merknads)); return this; } /** * Returns a new builder to build an additional value of the "Merknads" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Merknad.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Merknads" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Merknad.Builder#end()} to * return to the current builder. */ public Merknad.Builder> addMerknads() { if (this.merknads == null) { this.merknads = new ArrayList>>(); } final Merknad.Builder> merknads_Builder = new Merknad.Builder>(this, null, false); this.merknads.add(merknads_Builder); return merknads_Builder; } /** * Sets the new value of "skjerming" (any previous value will be replaced) * * @param skjerming * New value of the "skjerming" property. */ public Dokumentbeskrivelse.Builder<_B> withSkjerming(final Skjerming skjerming) { this.skjerming = ((skjerming == null)?null:new Skjerming.Builder>(this, skjerming, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "skjerming" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Skjerming.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "skjerming" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Skjerming.Builder#end()} to * return to the current builder. */ public Skjerming.Builder> withSkjerming() { if (this.skjerming!= null) { return this.skjerming; } return this.skjerming = new Skjerming.Builder>(this, null, false); } /** * Sets the new value of "gradering" (any previous value will be replaced) * * @param gradering * New value of the "gradering" property. */ public Dokumentbeskrivelse.Builder<_B> withGradering(final Gradering gradering) { this.gradering = ((gradering == null)?null:new Gradering.Builder>(this, gradering, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "gradering" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Gradering.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "gradering" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Gradering.Builder#end()} to * return to the current builder. */ public Gradering.Builder> withGradering() { if (this.gradering!= null) { return this.gradering; } return this.gradering = new Gradering.Builder>(this, null, false); } /** * Adds the given items to the value of "dokumentobjekts" * * @param dokumentobjekts * Items to add to the value of the "dokumentobjekts" property */ public Dokumentbeskrivelse.Builder<_B> addDokumentobjekts(final Iterable dokumentobjekts) { if (dokumentobjekts!= null) { if (this.dokumentobjekts == null) { this.dokumentobjekts = new ArrayList>>(); } for (Dokumentobjekt _item: dokumentobjekts) { this.dokumentobjekts.add(new Dokumentobjekt.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 Dokumentbeskrivelse.Builder<_B> withDokumentobjekts(final Iterable 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 Dokumentbeskrivelse.Builder<_B> addDokumentobjekts(Dokumentobjekt... 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 Dokumentbeskrivelse.Builder<_B> withDokumentobjekts(Dokumentobjekt... 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.Dokumentobjekt.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.Dokumentobjekt.Builder#end()} to return * to the current builder. */ public Dokumentobjekt.Builder> addDokumentobjekts() { if (this.dokumentobjekts == null) { this.dokumentobjekts = new ArrayList>>(); } final Dokumentobjekt.Builder> dokumentobjekts_Builder = new Dokumentobjekt.Builder>(this, null, false); this.dokumentobjekts.add(dokumentobjekts_Builder); return dokumentobjekts_Builder; } @Override public Dokumentbeskrivelse build() { if (_storedValue == null) { return this.init(new Dokumentbeskrivelse()); } else { return ((Dokumentbeskrivelse) _storedValue); } } public Dokumentbeskrivelse.Builder<_B> copyOf(final Dokumentbeskrivelse _other) { _other.copyTo(this); return this; } public Dokumentbeskrivelse.Builder<_B> copyOf(final Dokumentbeskrivelse.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Dokumentbeskrivelse.Selector { Select() { super(null, null, null); } public static Dokumentbeskrivelse.Select _root() { return new Dokumentbeskrivelse.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private SystemID.Selector> systemID = null; private Dokumenttype.Selector> dokumenttype = null; private Dokumentstatus.Selector> dokumentstatus = null; private com.kscs.util.jaxb.Selector> tittel = null; private com.kscs.util.jaxb.Selector> beskrivelse = null; private com.kscs.util.jaxb.Selector> forfatters = null; private com.kscs.util.jaxb.Selector> opprettetDato = null; private com.kscs.util.jaxb.Selector> opprettetAv = null; private Dokumentmedium.Selector> dokumentmedium = null; private com.kscs.util.jaxb.Selector> oppbevaringssted = null; private Kode.Selector> arkivdel = null; private TilknyttetRegistreringSom.Selector> tilknyttetRegistreringSom = null; private com.kscs.util.jaxb.Selector> dokumentnummer = null; private com.kscs.util.jaxb.Selector> tilknyttetDato = null; private com.kscs.util.jaxb.Selector> tilknyttetAv = null; private Part.Selector> parts = null; private Merknad.Selector> merknads = null; private Skjerming.Selector> skjerming = null; private Gradering.Selector> gradering = null; private Dokumentobjekt.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.dokumenttype!= null) { products.put("dokumenttype", this.dokumenttype.init()); } if (this.dokumentstatus!= null) { products.put("dokumentstatus", this.dokumentstatus.init()); } if (this.tittel!= null) { products.put("tittel", this.tittel.init()); } if (this.beskrivelse!= null) { products.put("beskrivelse", this.beskrivelse.init()); } if (this.forfatters!= null) { products.put("forfatters", this.forfatters.init()); } if (this.opprettetDato!= null) { products.put("opprettetDato", this.opprettetDato.init()); } if (this.opprettetAv!= null) { products.put("opprettetAv", this.opprettetAv.init()); } if (this.dokumentmedium!= null) { products.put("dokumentmedium", this.dokumentmedium.init()); } if (this.oppbevaringssted!= null) { products.put("oppbevaringssted", this.oppbevaringssted.init()); } if (this.arkivdel!= null) { products.put("arkivdel", this.arkivdel.init()); } if (this.tilknyttetRegistreringSom!= null) { products.put("tilknyttetRegistreringSom", this.tilknyttetRegistreringSom.init()); } if (this.dokumentnummer!= null) { products.put("dokumentnummer", this.dokumentnummer.init()); } if (this.tilknyttetDato!= null) { products.put("tilknyttetDato", this.tilknyttetDato.init()); } if (this.tilknyttetAv!= null) { products.put("tilknyttetAv", this.tilknyttetAv.init()); } if (this.parts!= null) { products.put("parts", this.parts.init()); } if (this.merknads!= null) { products.put("merknads", this.merknads.init()); } if (this.skjerming!= null) { products.put("skjerming", this.skjerming.init()); } if (this.gradering!= null) { products.put("gradering", this.gradering.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 Dokumenttype.Selector> dokumenttype() { return ((this.dokumenttype == null)?this.dokumenttype = new Dokumenttype.Selector>(this._root, this, "dokumenttype"):this.dokumenttype); } public Dokumentstatus.Selector> dokumentstatus() { return ((this.dokumentstatus == null)?this.dokumentstatus = new Dokumentstatus.Selector>(this._root, this, "dokumentstatus"):this.dokumentstatus); } public com.kscs.util.jaxb.Selector> tittel() { return ((this.tittel == null)?this.tittel = new com.kscs.util.jaxb.Selector>(this._root, this, "tittel"):this.tittel); } public com.kscs.util.jaxb.Selector> beskrivelse() { return ((this.beskrivelse == null)?this.beskrivelse = new com.kscs.util.jaxb.Selector>(this._root, this, "beskrivelse"):this.beskrivelse); } public com.kscs.util.jaxb.Selector> forfatters() { return ((this.forfatters == null)?this.forfatters = new com.kscs.util.jaxb.Selector>(this._root, this, "forfatters"):this.forfatters); } 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 Dokumentmedium.Selector> dokumentmedium() { return ((this.dokumentmedium == null)?this.dokumentmedium = new Dokumentmedium.Selector>(this._root, this, "dokumentmedium"):this.dokumentmedium); } public com.kscs.util.jaxb.Selector> oppbevaringssted() { return ((this.oppbevaringssted == null)?this.oppbevaringssted = new com.kscs.util.jaxb.Selector>(this._root, this, "oppbevaringssted"):this.oppbevaringssted); } public Kode.Selector> arkivdel() { return ((this.arkivdel == null)?this.arkivdel = new Kode.Selector>(this._root, this, "arkivdel"):this.arkivdel); } public TilknyttetRegistreringSom.Selector> tilknyttetRegistreringSom() { return ((this.tilknyttetRegistreringSom == null)?this.tilknyttetRegistreringSom = new TilknyttetRegistreringSom.Selector>(this._root, this, "tilknyttetRegistreringSom"):this.tilknyttetRegistreringSom); } public com.kscs.util.jaxb.Selector> dokumentnummer() { return ((this.dokumentnummer == null)?this.dokumentnummer = new com.kscs.util.jaxb.Selector>(this._root, this, "dokumentnummer"):this.dokumentnummer); } public com.kscs.util.jaxb.Selector> tilknyttetDato() { return ((this.tilknyttetDato == null)?this.tilknyttetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "tilknyttetDato"):this.tilknyttetDato); } public com.kscs.util.jaxb.Selector> tilknyttetAv() { return ((this.tilknyttetAv == null)?this.tilknyttetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "tilknyttetAv"):this.tilknyttetAv); } public Part.Selector> parts() { return ((this.parts == null)?this.parts = new Part.Selector>(this._root, this, "parts"):this.parts); } public Merknad.Selector> merknads() { return ((this.merknads == null)?this.merknads = new Merknad.Selector>(this._root, this, "merknads"):this.merknads); } public Skjerming.Selector> skjerming() { return ((this.skjerming == null)?this.skjerming = new Skjerming.Selector>(this._root, this, "skjerming"):this.skjerming); } public Gradering.Selector> gradering() { return ((this.gradering == null)?this.gradering = new Gradering.Selector>(this._root, this, "gradering"):this.gradering); } public Dokumentobjekt.Selector> dokumentobjekts() { return ((this.dokumentobjekts == null)?this.dokumentobjekts = new Dokumentobjekt.Selector>(this._root, this, "dokumentobjekts"):this.dokumentobjekts); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy