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

no.ks.fiks.arkiv.v1.arkivstruktur.minimum.DokumentbeskrivelseMinimum 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.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.Dokumentstatus;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Dokumenttype;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;


/**
 * 

Java class for dokumentbeskrivelseMinimum complex type. * *

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

 * <complexType name="dokumentbeskrivelseMinimum">
 *   <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="dokumenttype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}dokumenttype"/>
 *         <element name="dokumentstatus" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}dokumentstatus"/>
 *         <element name="tittel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tittel"/>
 *         <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="dokumentobjekt" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/minimum/v1}dokumentobjektMinimum" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "dokumentbeskrivelseMinimum", propOrder = { "systemID", "dokumenttype", "dokumentstatus", "tittel", "skjerming", "gradering", "dokumentobjekts" }) public class DokumentbeskrivelseMinimum { @XmlElement(required = true) protected SystemID systemID; @XmlElement(required = true) protected Dokumenttype dokumenttype; @XmlElement(required = true) protected Dokumentstatus dokumentstatus; @XmlElement(required = true) protected String tittel; protected SkjermingMinimum skjerming; protected GraderingMinimum 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 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 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 DokumentobjektMinimum } * * */ 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 DokumentbeskrivelseMinimum.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.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 (DokumentobjektMinimum _item: this.dokumentobjekts) { _other.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >DokumentbeskrivelseMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new DokumentbeskrivelseMinimum.Builder<_B>(_parentBuilder, this, true); } public DokumentbeskrivelseMinimum.Builder newCopyBuilder() { return newCopyBuilder(null); } public static DokumentbeskrivelseMinimum.Builder builder() { return new DokumentbeskrivelseMinimum.Builder(null, null, false); } public static<_B >DokumentbeskrivelseMinimum.Builder<_B> copyOf(final DokumentbeskrivelseMinimum _other) { final DokumentbeskrivelseMinimum.Builder<_B> _newBuilder = new DokumentbeskrivelseMinimum.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 DokumentbeskrivelseMinimum.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 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 (DokumentobjektMinimum _item: this.dokumentobjekts) { _other.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(_other, dokumentobjektsPropertyTree, _propertyTreeUse))); } } } } public<_B >DokumentbeskrivelseMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new DokumentbeskrivelseMinimum.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public DokumentbeskrivelseMinimum.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >DokumentbeskrivelseMinimum.Builder<_B> copyOf(final DokumentbeskrivelseMinimum _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final DokumentbeskrivelseMinimum.Builder<_B> _newBuilder = new DokumentbeskrivelseMinimum.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static DokumentbeskrivelseMinimum.Builder copyExcept(final DokumentbeskrivelseMinimum _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static DokumentbeskrivelseMinimum.Builder copyOnly(final DokumentbeskrivelseMinimum _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final DokumentbeskrivelseMinimum _storedValue; private SystemID.Builder> systemID; private Dokumenttype.Builder> dokumenttype; private Dokumentstatus.Builder> dokumentstatus; private String tittel; private SkjermingMinimum.Builder> skjerming; private GraderingMinimum.Builder> gradering; private List>> dokumentobjekts; public Builder(final _B _parentBuilder, final DokumentbeskrivelseMinimum _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.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 (DokumentobjektMinimum _item: _other.dokumentobjekts) { this.dokumentobjekts.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final DokumentbeskrivelseMinimum _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 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 (DokumentobjektMinimum _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 DokumentbeskrivelseMinimum >_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.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 (DokumentobjektMinimum.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 DokumentbeskrivelseMinimum.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 DokumentbeskrivelseMinimum.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 DokumentbeskrivelseMinimum.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 DokumentbeskrivelseMinimum.Builder<_B> withTittel(final String tittel) { this.tittel = tittel; return this; } /** * Sets the new value of "skjerming" (any previous value will be replaced) * * @param skjerming * New value of the "skjerming" property. */ public DokumentbeskrivelseMinimum.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 DokumentbeskrivelseMinimum.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 "dokumentobjekts" * * @param dokumentobjekts * Items to add to the value of the "dokumentobjekts" property */ public DokumentbeskrivelseMinimum.Builder<_B> addDokumentobjekts(final Iterable dokumentobjekts) { if (dokumentobjekts!= null) { if (this.dokumentobjekts == null) { this.dokumentobjekts = new ArrayList>>(); } for (DokumentobjektMinimum _item: dokumentobjekts) { this.dokumentobjekts.add(new DokumentobjektMinimum.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 DokumentbeskrivelseMinimum.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 DokumentbeskrivelseMinimum.Builder<_B> addDokumentobjekts(DokumentobjektMinimum... 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 DokumentbeskrivelseMinimum.Builder<_B> withDokumentobjekts(DokumentobjektMinimum... 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.arkivstruktur.minimum.DokumentobjektMinimum.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.arkivstruktur.minimum.DokumentobjektMinimum.Builder#end()} * to return to the current builder. */ public DokumentobjektMinimum.Builder> addDokumentobjekts() { if (this.dokumentobjekts == null) { this.dokumentobjekts = new ArrayList>>(); } final DokumentobjektMinimum.Builder> dokumentobjekts_Builder = new DokumentobjektMinimum.Builder>(this, null, false); this.dokumentobjekts.add(dokumentobjekts_Builder); return dokumentobjekts_Builder; } @Override public DokumentbeskrivelseMinimum build() { if (_storedValue == null) { return this.init(new DokumentbeskrivelseMinimum()); } else { return ((DokumentbeskrivelseMinimum) _storedValue); } } public DokumentbeskrivelseMinimum.Builder<_B> copyOf(final DokumentbeskrivelseMinimum _other) { _other.copyTo(this); return this; } public DokumentbeskrivelseMinimum.Builder<_B> copyOf(final DokumentbeskrivelseMinimum.Builder _other) { return copyOf(_other.build()); } } public static class Select extends DokumentbeskrivelseMinimum.Selector { Select() { super(null, null, null); } public static DokumentbeskrivelseMinimum.Select _root() { return new DokumentbeskrivelseMinimum.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 SkjermingMinimum.Selector> skjerming = null; private GraderingMinimum.Selector> gradering = null; private DokumentobjektMinimum.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.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 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 DokumentobjektMinimum.Selector> dokumentobjekts() { return ((this.dokumentobjekts == null)?this.dokumentobjekts = new DokumentobjektMinimum.Selector>(this._root, this, "dokumentobjekts"):this.dokumentobjekts); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy