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

no.ks.fiks.arkiv.v1.arkivstruktur.minimum.RegistreringMinimum 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.arkivstruktur.minimum;

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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
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;


/**
 * 

Java class for registreringMinimum complex type. * *

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

 * <complexType name="registreringMinimum">
 *   <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="skjerming" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/minimum/v1}skjermingMinimum" minOccurs="0"/>
 *         <element name="gradering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/minimum/v1}graderingMinimum" minOccurs="0"/>
 *         <element name="dokumentbeskrivelse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/minimum/v1}dokumentbeskrivelseMinimum" 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="tittel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tittel"/>
 *         <element name="offentligTittel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}offentligTittel" minOccurs="0"/>
 *         <element name="korrespondansepart" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/minimum/v1}korrespondansepartMinimum" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "registreringMinimum", propOrder = { "systemID", "skjerming", "gradering", "dokumentbeskrivelses", "registreringsID", "tittel", "offentligTittel", "korrespondanseparts" }) @XmlSeeAlso({ JournalpostMinimum.class }) public class RegistreringMinimum { @XmlElement(required = true) protected SystemID systemID; protected SkjermingMinimum skjerming; protected GraderingMinimum gradering; @XmlElement(name = "dokumentbeskrivelse") protected List dokumentbeskrivelses; protected String registreringsID; @XmlElement(required = true) protected String tittel; protected String offentligTittel; @XmlElement(name = "korrespondansepart") protected List korrespondanseparts; /** * 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 skjerming property. * * @return * possible object is * {@link SkjermingMinimum } * */ public SkjermingMinimum getSkjerming() { return skjerming; } /** * Sets the value of the skjerming property. * * @param value * allowed object is * {@link SkjermingMinimum } * */ public void setSkjerming(SkjermingMinimum value) { this.skjerming = value; } /** * Gets the value of the gradering property. * * @return * possible object is * {@link GraderingMinimum } * */ public GraderingMinimum getGradering() { return gradering; } /** * Sets the value of the gradering property. * * @param value * allowed object is * {@link GraderingMinimum } * */ public void setGradering(GraderingMinimum value) { this.gradering = value; } /** * Gets the value of the dokumentbeskrivelses 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 dokumentbeskrivelses property. * *

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

     *    getDokumentbeskrivelses().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DokumentbeskrivelseMinimum } * * */ public List getDokumentbeskrivelses() { if (dokumentbeskrivelses == null) { dokumentbeskrivelses = new ArrayList(); } return this.dokumentbeskrivelses; } /** * 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 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 offentligTittel property. * * @return * possible object is * {@link String } * */ public String getOffentligTittel() { return offentligTittel; } /** * Sets the value of the offentligTittel property. * * @param value * allowed object is * {@link String } * */ public void setOffentligTittel(String value) { this.offentligTittel = value; } /** * Gets the value of the korrespondanseparts 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 korrespondanseparts property. * *

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

     *    getKorrespondanseparts().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link KorrespondansepartMinimum } * * */ public List getKorrespondanseparts() { if (korrespondanseparts == null) { korrespondanseparts = new ArrayList(); } return this.korrespondanseparts; } /** * 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 RegistreringMinimum.Builder<_B> _other) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other)); _other.skjerming = ((this.skjerming == null)?null:this.skjerming.newCopyBuilder(_other)); _other.gradering = ((this.gradering == null)?null:this.gradering.newCopyBuilder(_other)); if (this.dokumentbeskrivelses == null) { _other.dokumentbeskrivelses = null; } else { _other.dokumentbeskrivelses = new ArrayList>>(); for (DokumentbeskrivelseMinimum _item: this.dokumentbeskrivelses) { _other.dokumentbeskrivelses.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } _other.registreringsID = this.registreringsID; _other.tittel = this.tittel; _other.offentligTittel = this.offentligTittel; if (this.korrespondanseparts == null) { _other.korrespondanseparts = null; } else { _other.korrespondanseparts = new ArrayList>>(); for (KorrespondansepartMinimum _item: this.korrespondanseparts) { _other.korrespondanseparts.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >RegistreringMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new RegistreringMinimum.Builder<_B>(_parentBuilder, this, true); } public RegistreringMinimum.Builder newCopyBuilder() { return newCopyBuilder(null); } public static RegistreringMinimum.Builder builder() { return new RegistreringMinimum.Builder(null, null, false); } public static<_B >RegistreringMinimum.Builder<_B> copyOf(final RegistreringMinimum _other) { final RegistreringMinimum.Builder<_B> _newBuilder = new RegistreringMinimum.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 RegistreringMinimum.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 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 dokumentbeskrivelsesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentbeskrivelses")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentbeskrivelsesPropertyTree!= null):((dokumentbeskrivelsesPropertyTree == null)||(!dokumentbeskrivelsesPropertyTree.isLeaf())))) { if (this.dokumentbeskrivelses == null) { _other.dokumentbeskrivelses = null; } else { _other.dokumentbeskrivelses = new ArrayList>>(); for (DokumentbeskrivelseMinimum _item: this.dokumentbeskrivelses) { _other.dokumentbeskrivelses.add(((_item == null)?null:_item.newCopyBuilder(_other, dokumentbeskrivelsesPropertyTree, _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 tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) { _other.tittel = this.tittel; } final PropertyTree offentligTittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("offentligTittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(offentligTittelPropertyTree!= null):((offentligTittelPropertyTree == null)||(!offentligTittelPropertyTree.isLeaf())))) { _other.offentligTittel = this.offentligTittel; } final PropertyTree korrespondansepartsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondanseparts")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartsPropertyTree!= null):((korrespondansepartsPropertyTree == null)||(!korrespondansepartsPropertyTree.isLeaf())))) { if (this.korrespondanseparts == null) { _other.korrespondanseparts = null; } else { _other.korrespondanseparts = new ArrayList>>(); for (KorrespondansepartMinimum _item: this.korrespondanseparts) { _other.korrespondanseparts.add(((_item == null)?null:_item.newCopyBuilder(_other, korrespondansepartsPropertyTree, _propertyTreeUse))); } } } } public<_B >RegistreringMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new RegistreringMinimum.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public RegistreringMinimum.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >RegistreringMinimum.Builder<_B> copyOf(final RegistreringMinimum _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final RegistreringMinimum.Builder<_B> _newBuilder = new RegistreringMinimum.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static RegistreringMinimum.Builder copyExcept(final RegistreringMinimum _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static RegistreringMinimum.Builder copyOnly(final RegistreringMinimum _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final RegistreringMinimum _storedValue; private SystemID.Builder> systemID; private SkjermingMinimum.Builder> skjerming; private GraderingMinimum.Builder> gradering; private List>> dokumentbeskrivelses; private String registreringsID; private String tittel; private String offentligTittel; private List>> korrespondanseparts; public Builder(final _B _parentBuilder, final RegistreringMinimum _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.skjerming = ((_other.skjerming == null)?null:_other.skjerming.newCopyBuilder(this)); this.gradering = ((_other.gradering == null)?null:_other.gradering.newCopyBuilder(this)); if (_other.dokumentbeskrivelses == null) { this.dokumentbeskrivelses = null; } else { this.dokumentbeskrivelses = new ArrayList>>(); for (DokumentbeskrivelseMinimum _item: _other.dokumentbeskrivelses) { this.dokumentbeskrivelses.add(((_item == null)?null:_item.newCopyBuilder(this))); } } this.registreringsID = _other.registreringsID; this.tittel = _other.tittel; this.offentligTittel = _other.offentligTittel; if (_other.korrespondanseparts == null) { this.korrespondanseparts = null; } else { this.korrespondanseparts = new ArrayList>>(); for (KorrespondansepartMinimum _item: _other.korrespondanseparts) { this.korrespondanseparts.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final RegistreringMinimum _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 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 dokumentbeskrivelsesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentbeskrivelses")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentbeskrivelsesPropertyTree!= null):((dokumentbeskrivelsesPropertyTree == null)||(!dokumentbeskrivelsesPropertyTree.isLeaf())))) { if (_other.dokumentbeskrivelses == null) { this.dokumentbeskrivelses = null; } else { this.dokumentbeskrivelses = new ArrayList>>(); for (DokumentbeskrivelseMinimum _item: _other.dokumentbeskrivelses) { this.dokumentbeskrivelses.add(((_item == null)?null:_item.newCopyBuilder(this, dokumentbeskrivelsesPropertyTree, _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 tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) { this.tittel = _other.tittel; } final PropertyTree offentligTittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("offentligTittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(offentligTittelPropertyTree!= null):((offentligTittelPropertyTree == null)||(!offentligTittelPropertyTree.isLeaf())))) { this.offentligTittel = _other.offentligTittel; } final PropertyTree korrespondansepartsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondanseparts")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartsPropertyTree!= null):((korrespondansepartsPropertyTree == null)||(!korrespondansepartsPropertyTree.isLeaf())))) { if (_other.korrespondanseparts == null) { this.korrespondanseparts = null; } else { this.korrespondanseparts = new ArrayList>>(); for (KorrespondansepartMinimum _item: _other.korrespondanseparts) { this.korrespondanseparts.add(((_item == null)?null:_item.newCopyBuilder(this, korrespondansepartsPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends RegistreringMinimum >_P init(final _P _product) { _product.systemID = ((this.systemID == null)?null:this.systemID.build()); _product.skjerming = ((this.skjerming == null)?null:this.skjerming.build()); _product.gradering = ((this.gradering == null)?null:this.gradering.build()); if (this.dokumentbeskrivelses!= null) { final List dokumentbeskrivelses = new ArrayList(this.dokumentbeskrivelses.size()); for (DokumentbeskrivelseMinimum.Builder> _item: this.dokumentbeskrivelses) { dokumentbeskrivelses.add(_item.build()); } _product.dokumentbeskrivelses = dokumentbeskrivelses; } _product.registreringsID = this.registreringsID; _product.tittel = this.tittel; _product.offentligTittel = this.offentligTittel; if (this.korrespondanseparts!= null) { final List korrespondanseparts = new ArrayList(this.korrespondanseparts.size()); for (KorrespondansepartMinimum.Builder> _item: this.korrespondanseparts) { korrespondanseparts.add(_item.build()); } _product.korrespondanseparts = korrespondanseparts; } return _product; } /** * Sets the new value of "systemID" (any previous value will be replaced) * * @param systemID * New value of the "systemID" property. */ public RegistreringMinimum.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 "skjerming" (any previous value will be replaced) * * @param skjerming * New value of the "skjerming" property. */ public RegistreringMinimum.Builder<_B> withSkjerming(final SkjermingMinimum skjerming) { this.skjerming = ((skjerming == null)?null:new SkjermingMinimum.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.arkivstruktur.minimum.SkjermingMinimum.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.arkivstruktur.minimum.SkjermingMinimum.Builder#end()} to * return to the current builder. */ public SkjermingMinimum.Builder> withSkjerming() { if (this.skjerming!= null) { return this.skjerming; } return this.skjerming = new SkjermingMinimum.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 RegistreringMinimum.Builder<_B> withGradering(final GraderingMinimum gradering) { this.gradering = ((gradering == null)?null:new GraderingMinimum.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.arkivstruktur.minimum.GraderingMinimum.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.arkivstruktur.minimum.GraderingMinimum.Builder#end()} to * return to the current builder. */ public GraderingMinimum.Builder> withGradering() { if (this.gradering!= null) { return this.gradering; } return this.gradering = new GraderingMinimum.Builder>(this, null, false); } /** * Adds the given items to the value of "dokumentbeskrivelses" * * @param dokumentbeskrivelses * Items to add to the value of the "dokumentbeskrivelses" property */ public RegistreringMinimum.Builder<_B> addDokumentbeskrivelses(final Iterable dokumentbeskrivelses) { if (dokumentbeskrivelses!= null) { if (this.dokumentbeskrivelses == null) { this.dokumentbeskrivelses = new ArrayList>>(); } for (DokumentbeskrivelseMinimum _item: dokumentbeskrivelses) { this.dokumentbeskrivelses.add(new DokumentbeskrivelseMinimum.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "dokumentbeskrivelses" (any previous value will be * replaced) * * @param dokumentbeskrivelses * New value of the "dokumentbeskrivelses" property. */ public RegistreringMinimum.Builder<_B> withDokumentbeskrivelses(final Iterable dokumentbeskrivelses) { if (this.dokumentbeskrivelses!= null) { this.dokumentbeskrivelses.clear(); } return addDokumentbeskrivelses(dokumentbeskrivelses); } /** * Adds the given items to the value of "dokumentbeskrivelses" * * @param dokumentbeskrivelses * Items to add to the value of the "dokumentbeskrivelses" property */ public RegistreringMinimum.Builder<_B> addDokumentbeskrivelses(DokumentbeskrivelseMinimum... dokumentbeskrivelses) { addDokumentbeskrivelses(Arrays.asList(dokumentbeskrivelses)); return this; } /** * Sets the new value of "dokumentbeskrivelses" (any previous value will be * replaced) * * @param dokumentbeskrivelses * New value of the "dokumentbeskrivelses" property. */ public RegistreringMinimum.Builder<_B> withDokumentbeskrivelses(DokumentbeskrivelseMinimum... dokumentbeskrivelses) { withDokumentbeskrivelses(Arrays.asList(dokumentbeskrivelses)); return this; } /** * Returns a new builder to build an additional value of the "Dokumentbeskrivelses" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.minimum.DokumentbeskrivelseMinimum.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "Dokumentbeskrivelses" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.minimum.DokumentbeskrivelseMinimum.Builder#end()} * to return to the current builder. */ public DokumentbeskrivelseMinimum.Builder> addDokumentbeskrivelses() { if (this.dokumentbeskrivelses == null) { this.dokumentbeskrivelses = new ArrayList>>(); } final DokumentbeskrivelseMinimum.Builder> dokumentbeskrivelses_Builder = new DokumentbeskrivelseMinimum.Builder>(this, null, false); this.dokumentbeskrivelses.add(dokumentbeskrivelses_Builder); return dokumentbeskrivelses_Builder; } /** * Sets the new value of "registreringsID" (any previous value will be replaced) * * @param registreringsID * New value of the "registreringsID" property. */ public RegistreringMinimum.Builder<_B> withRegistreringsID(final String registreringsID) { this.registreringsID = registreringsID; return this; } /** * Sets the new value of "tittel" (any previous value will be replaced) * * @param tittel * New value of the "tittel" property. */ public RegistreringMinimum.Builder<_B> withTittel(final String tittel) { this.tittel = tittel; return this; } /** * Sets the new value of "offentligTittel" (any previous value will be replaced) * * @param offentligTittel * New value of the "offentligTittel" property. */ public RegistreringMinimum.Builder<_B> withOffentligTittel(final String offentligTittel) { this.offentligTittel = offentligTittel; return this; } /** * Adds the given items to the value of "korrespondanseparts" * * @param korrespondanseparts * Items to add to the value of the "korrespondanseparts" property */ public RegistreringMinimum.Builder<_B> addKorrespondanseparts(final Iterable korrespondanseparts) { if (korrespondanseparts!= null) { if (this.korrespondanseparts == null) { this.korrespondanseparts = new ArrayList>>(); } for (KorrespondansepartMinimum _item: korrespondanseparts) { this.korrespondanseparts.add(new KorrespondansepartMinimum.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "korrespondanseparts" (any previous value will be * replaced) * * @param korrespondanseparts * New value of the "korrespondanseparts" property. */ public RegistreringMinimum.Builder<_B> withKorrespondanseparts(final Iterable korrespondanseparts) { if (this.korrespondanseparts!= null) { this.korrespondanseparts.clear(); } return addKorrespondanseparts(korrespondanseparts); } /** * Adds the given items to the value of "korrespondanseparts" * * @param korrespondanseparts * Items to add to the value of the "korrespondanseparts" property */ public RegistreringMinimum.Builder<_B> addKorrespondanseparts(KorrespondansepartMinimum... korrespondanseparts) { addKorrespondanseparts(Arrays.asList(korrespondanseparts)); return this; } /** * Sets the new value of "korrespondanseparts" (any previous value will be * replaced) * * @param korrespondanseparts * New value of the "korrespondanseparts" property. */ public RegistreringMinimum.Builder<_B> withKorrespondanseparts(KorrespondansepartMinimum... korrespondanseparts) { withKorrespondanseparts(Arrays.asList(korrespondanseparts)); return this; } /** * Returns a new builder to build an additional value of the "Korrespondanseparts" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.minimum.KorrespondansepartMinimum.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "Korrespondanseparts" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.minimum.KorrespondansepartMinimum.Builder#end()} * to return to the current builder. */ public KorrespondansepartMinimum.Builder> addKorrespondanseparts() { if (this.korrespondanseparts == null) { this.korrespondanseparts = new ArrayList>>(); } final KorrespondansepartMinimum.Builder> korrespondanseparts_Builder = new KorrespondansepartMinimum.Builder>(this, null, false); this.korrespondanseparts.add(korrespondanseparts_Builder); return korrespondanseparts_Builder; } @Override public RegistreringMinimum build() { if (_storedValue == null) { return this.init(new RegistreringMinimum()); } else { return ((RegistreringMinimum) _storedValue); } } public RegistreringMinimum.Builder<_B> copyOf(final RegistreringMinimum _other) { _other.copyTo(this); return this; } public RegistreringMinimum.Builder<_B> copyOf(final RegistreringMinimum.Builder _other) { return copyOf(_other.build()); } } public static class Select extends RegistreringMinimum.Selector { Select() { super(null, null, null); } public static RegistreringMinimum.Select _root() { return new RegistreringMinimum.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private SystemID.Selector> systemID = null; private SkjermingMinimum.Selector> skjerming = null; private GraderingMinimum.Selector> gradering = null; private DokumentbeskrivelseMinimum.Selector> dokumentbeskrivelses = null; private com.kscs.util.jaxb.Selector> registreringsID = null; private com.kscs.util.jaxb.Selector> tittel = null; private com.kscs.util.jaxb.Selector> offentligTittel = null; private KorrespondansepartMinimum.Selector> korrespondanseparts = 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.skjerming!= null) { products.put("skjerming", this.skjerming.init()); } if (this.gradering!= null) { products.put("gradering", this.gradering.init()); } if (this.dokumentbeskrivelses!= null) { products.put("dokumentbeskrivelses", this.dokumentbeskrivelses.init()); } if (this.registreringsID!= null) { products.put("registreringsID", this.registreringsID.init()); } if (this.tittel!= null) { products.put("tittel", this.tittel.init()); } if (this.offentligTittel!= null) { products.put("offentligTittel", this.offentligTittel.init()); } if (this.korrespondanseparts!= null) { products.put("korrespondanseparts", this.korrespondanseparts.init()); } return products; } public SystemID.Selector> systemID() { return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID); } public SkjermingMinimum.Selector> skjerming() { return ((this.skjerming == null)?this.skjerming = new SkjermingMinimum.Selector>(this._root, this, "skjerming"):this.skjerming); } public GraderingMinimum.Selector> gradering() { return ((this.gradering == null)?this.gradering = new GraderingMinimum.Selector>(this._root, this, "gradering"):this.gradering); } public DokumentbeskrivelseMinimum.Selector> dokumentbeskrivelses() { return ((this.dokumentbeskrivelses == null)?this.dokumentbeskrivelses = new DokumentbeskrivelseMinimum.Selector>(this._root, this, "dokumentbeskrivelses"):this.dokumentbeskrivelses); } 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 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> offentligTittel() { return ((this.offentligTittel == null)?this.offentligTittel = new com.kscs.util.jaxb.Selector>(this._root, this, "offentligTittel"):this.offentligTittel); } public KorrespondansepartMinimum.Selector> korrespondanseparts() { return ((this.korrespondanseparts == null)?this.korrespondanseparts = new KorrespondansepartMinimum.Selector>(this._root, this, "korrespondanseparts"):this.korrespondanseparts); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy