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

no.ks.fiks.arkiv.v1.arkivstruktur.minimum.MappeMinimum 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.EksternNoekkel;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;


/**
 * 

Java class for mappeMinimum complex type. * *

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

 * <complexType name="mappeMinimum">
 *   <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="mappeID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}mappeID"/>
 *         <element name="referanseForeldermappe" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseTilMappe" 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="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="klassifikasjon" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/minimum/v1}klassifikasjon" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="referanseEksternNoekkel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}eksternNoekkel" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "mappeMinimum", propOrder = { "systemID", "mappeID", "referanseForeldermappe", "tittel", "offentligTittel", "skjerming", "gradering", "klassifikasjons", "referanseEksternNoekkel" }) @XmlSeeAlso({ SaksmappeMinimum.class }) public class MappeMinimum { @XmlElement(required = true) protected SystemID systemID; @XmlElement(required = true) protected String mappeID; protected ReferanseTilMappe referanseForeldermappe; @XmlElement(required = true) protected String tittel; protected String offentligTittel; protected SkjermingMinimum skjerming; protected GraderingMinimum gradering; @XmlElement(name = "klassifikasjon") protected List klassifikasjons; protected EksternNoekkel referanseEksternNoekkel; /** * Gets the value of the systemID property. * * @return * possible object is * {@link SystemID } * */ public SystemID getSystemID() { return systemID; } /** * Sets the value of the systemID property. * * @param value * allowed object is * {@link SystemID } * */ public void setSystemID(SystemID value) { this.systemID = value; } /** * Gets the value of the mappeID property. * * @return * possible object is * {@link String } * */ public String getMappeID() { return mappeID; } /** * Sets the value of the mappeID property. * * @param value * allowed object is * {@link String } * */ public void setMappeID(String value) { this.mappeID = value; } /** * Gets the value of the referanseForeldermappe property. * * @return * possible object is * {@link ReferanseTilMappe } * */ public ReferanseTilMappe getReferanseForeldermappe() { return referanseForeldermappe; } /** * Sets the value of the referanseForeldermappe property. * * @param value * allowed object is * {@link ReferanseTilMappe } * */ public void setReferanseForeldermappe(ReferanseTilMappe value) { this.referanseForeldermappe = 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 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 klassifikasjons 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 klassifikasjons property. * *

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

     *    getKlassifikasjons().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Klassifikasjon } * * */ public List getKlassifikasjons() { if (klassifikasjons == null) { klassifikasjons = new ArrayList(); } return this.klassifikasjons; } /** * Gets the value of the referanseEksternNoekkel property. * * @return * possible object is * {@link EksternNoekkel } * */ public EksternNoekkel getReferanseEksternNoekkel() { return referanseEksternNoekkel; } /** * Sets the value of the referanseEksternNoekkel property. * * @param value * allowed object is * {@link EksternNoekkel } * */ public void setReferanseEksternNoekkel(EksternNoekkel value) { this.referanseEksternNoekkel = value; } /** * Copies all state of this object to a builder. This method is used by the {@link * #copyOf} method and should not be called directly by client code. * * @param _other * A builder instance to which the state of this object will be copied. */ public<_B >void copyTo(final MappeMinimum.Builder<_B> _other) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other)); _other.mappeID = this.mappeID; _other.referanseForeldermappe = ((this.referanseForeldermappe == null)?null:this.referanseForeldermappe.newCopyBuilder(_other)); _other.tittel = this.tittel; _other.offentligTittel = this.offentligTittel; _other.skjerming = ((this.skjerming == null)?null:this.skjerming.newCopyBuilder(_other)); _other.gradering = ((this.gradering == null)?null:this.gradering.newCopyBuilder(_other)); if (this.klassifikasjons == null) { _other.klassifikasjons = null; } else { _other.klassifikasjons = new ArrayList>>(); for (Klassifikasjon _item: this.klassifikasjons) { _other.klassifikasjons.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } _other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other)); } public<_B >MappeMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new MappeMinimum.Builder<_B>(_parentBuilder, this, true); } public MappeMinimum.Builder newCopyBuilder() { return newCopyBuilder(null); } public static MappeMinimum.Builder builder() { return new MappeMinimum.Builder(null, null, false); } public static<_B >MappeMinimum.Builder<_B> copyOf(final MappeMinimum _other) { final MappeMinimum.Builder<_B> _newBuilder = new MappeMinimum.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 MappeMinimum.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 mappeIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeIDPropertyTree!= null):((mappeIDPropertyTree == null)||(!mappeIDPropertyTree.isLeaf())))) { _other.mappeID = this.mappeID; } final PropertyTree referanseForeldermappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseForeldermappe")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseForeldermappePropertyTree!= null):((referanseForeldermappePropertyTree == null)||(!referanseForeldermappePropertyTree.isLeaf())))) { _other.referanseForeldermappe = ((this.referanseForeldermappe == null)?null:this.referanseForeldermappe.newCopyBuilder(_other, referanseForeldermappePropertyTree, _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 offentligTittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("offentligTittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(offentligTittelPropertyTree!= null):((offentligTittelPropertyTree == null)||(!offentligTittelPropertyTree.isLeaf())))) { _other.offentligTittel = this.offentligTittel; } 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 klassifikasjonsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klassifikasjons")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klassifikasjonsPropertyTree!= null):((klassifikasjonsPropertyTree == null)||(!klassifikasjonsPropertyTree.isLeaf())))) { if (this.klassifikasjons == null) { _other.klassifikasjons = null; } else { _other.klassifikasjons = new ArrayList>>(); for (Klassifikasjon _item: this.klassifikasjons) { _other.klassifikasjons.add(((_item == null)?null:_item.newCopyBuilder(_other, klassifikasjonsPropertyTree, _propertyTreeUse))); } } } final PropertyTree referanseEksternNoekkelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseEksternNoekkel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseEksternNoekkelPropertyTree!= null):((referanseEksternNoekkelPropertyTree == null)||(!referanseEksternNoekkelPropertyTree.isLeaf())))) { _other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other, referanseEksternNoekkelPropertyTree, _propertyTreeUse)); } } public<_B >MappeMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new MappeMinimum.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public MappeMinimum.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >MappeMinimum.Builder<_B> copyOf(final MappeMinimum _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final MappeMinimum.Builder<_B> _newBuilder = new MappeMinimum.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static MappeMinimum.Builder copyExcept(final MappeMinimum _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static MappeMinimum.Builder copyOnly(final MappeMinimum _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final MappeMinimum _storedValue; private SystemID.Builder> systemID; private String mappeID; private ReferanseTilMappe.Builder> referanseForeldermappe; private String tittel; private String offentligTittel; private SkjermingMinimum.Builder> skjerming; private GraderingMinimum.Builder> gradering; private List>> klassifikasjons; private EksternNoekkel.Builder> referanseEksternNoekkel; public Builder(final _B _parentBuilder, final MappeMinimum _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.mappeID = _other.mappeID; this.referanseForeldermappe = ((_other.referanseForeldermappe == null)?null:_other.referanseForeldermappe.newCopyBuilder(this)); this.tittel = _other.tittel; this.offentligTittel = _other.offentligTittel; this.skjerming = ((_other.skjerming == null)?null:_other.skjerming.newCopyBuilder(this)); this.gradering = ((_other.gradering == null)?null:_other.gradering.newCopyBuilder(this)); if (_other.klassifikasjons == null) { this.klassifikasjons = null; } else { this.klassifikasjons = new ArrayList>>(); for (Klassifikasjon _item: _other.klassifikasjons) { this.klassifikasjons.add(((_item == null)?null:_item.newCopyBuilder(this))); } } this.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final MappeMinimum _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 mappeIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeIDPropertyTree!= null):((mappeIDPropertyTree == null)||(!mappeIDPropertyTree.isLeaf())))) { this.mappeID = _other.mappeID; } final PropertyTree referanseForeldermappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseForeldermappe")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseForeldermappePropertyTree!= null):((referanseForeldermappePropertyTree == null)||(!referanseForeldermappePropertyTree.isLeaf())))) { this.referanseForeldermappe = ((_other.referanseForeldermappe == null)?null:_other.referanseForeldermappe.newCopyBuilder(this, referanseForeldermappePropertyTree, _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 offentligTittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("offentligTittel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(offentligTittelPropertyTree!= null):((offentligTittelPropertyTree == null)||(!offentligTittelPropertyTree.isLeaf())))) { this.offentligTittel = _other.offentligTittel; } 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 klassifikasjonsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klassifikasjons")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klassifikasjonsPropertyTree!= null):((klassifikasjonsPropertyTree == null)||(!klassifikasjonsPropertyTree.isLeaf())))) { if (_other.klassifikasjons == null) { this.klassifikasjons = null; } else { this.klassifikasjons = new ArrayList>>(); for (Klassifikasjon _item: _other.klassifikasjons) { this.klassifikasjons.add(((_item == null)?null:_item.newCopyBuilder(this, klassifikasjonsPropertyTree, _propertyTreeUse))); } } } final PropertyTree referanseEksternNoekkelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseEksternNoekkel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseEksternNoekkelPropertyTree!= null):((referanseEksternNoekkelPropertyTree == null)||(!referanseEksternNoekkelPropertyTree.isLeaf())))) { this.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this, referanseEksternNoekkelPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends MappeMinimum >_P init(final _P _product) { _product.systemID = ((this.systemID == null)?null:this.systemID.build()); _product.mappeID = this.mappeID; _product.referanseForeldermappe = ((this.referanseForeldermappe == null)?null:this.referanseForeldermappe.build()); _product.tittel = this.tittel; _product.offentligTittel = this.offentligTittel; _product.skjerming = ((this.skjerming == null)?null:this.skjerming.build()); _product.gradering = ((this.gradering == null)?null:this.gradering.build()); if (this.klassifikasjons!= null) { final List klassifikasjons = new ArrayList(this.klassifikasjons.size()); for (Klassifikasjon.Builder> _item: this.klassifikasjons) { klassifikasjons.add(_item.build()); } _product.klassifikasjons = klassifikasjons; } _product.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.build()); return _product; } /** * Sets the new value of "systemID" (any previous value will be replaced) * * @param systemID * New value of the "systemID" property. */ public MappeMinimum.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 "mappeID" (any previous value will be replaced) * * @param mappeID * New value of the "mappeID" property. */ public MappeMinimum.Builder<_B> withMappeID(final String mappeID) { this.mappeID = mappeID; return this; } /** * Sets the new value of "referanseForeldermappe" (any previous value will be * replaced) * * @param referanseForeldermappe * New value of the "referanseForeldermappe" property. */ public MappeMinimum.Builder<_B> withReferanseForeldermappe(final ReferanseTilMappe referanseForeldermappe) { this.referanseForeldermappe = ((referanseForeldermappe == null)?null:new ReferanseTilMappe.Builder>(this, referanseForeldermappe, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseForeldermappe" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "referanseForeldermappe" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe.Builder#end()} * to return to the current builder. */ public ReferanseTilMappe.Builder> withReferanseForeldermappe() { if (this.referanseForeldermappe!= null) { return this.referanseForeldermappe; } return this.referanseForeldermappe = new ReferanseTilMappe.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 MappeMinimum.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 MappeMinimum.Builder<_B> withOffentligTittel(final String offentligTittel) { this.offentligTittel = offentligTittel; return this; } /** * Sets the new value of "skjerming" (any previous value will be replaced) * * @param skjerming * New value of the "skjerming" property. */ public MappeMinimum.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 MappeMinimum.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 "klassifikasjons" * * @param klassifikasjons * Items to add to the value of the "klassifikasjons" property */ public MappeMinimum.Builder<_B> addKlassifikasjons(final Iterable klassifikasjons) { if (klassifikasjons!= null) { if (this.klassifikasjons == null) { this.klassifikasjons = new ArrayList>>(); } for (Klassifikasjon _item: klassifikasjons) { this.klassifikasjons.add(new Klassifikasjon.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "klassifikasjons" (any previous value will be replaced) * * @param klassifikasjons * New value of the "klassifikasjons" property. */ public MappeMinimum.Builder<_B> withKlassifikasjons(final Iterable klassifikasjons) { if (this.klassifikasjons!= null) { this.klassifikasjons.clear(); } return addKlassifikasjons(klassifikasjons); } /** * Adds the given items to the value of "klassifikasjons" * * @param klassifikasjons * Items to add to the value of the "klassifikasjons" property */ public MappeMinimum.Builder<_B> addKlassifikasjons(Klassifikasjon... klassifikasjons) { addKlassifikasjons(Arrays.asList(klassifikasjons)); return this; } /** * Sets the new value of "klassifikasjons" (any previous value will be replaced) * * @param klassifikasjons * New value of the "klassifikasjons" property. */ public MappeMinimum.Builder<_B> withKlassifikasjons(Klassifikasjon... klassifikasjons) { withKlassifikasjons(Arrays.asList(klassifikasjons)); return this; } /** * Returns a new builder to build an additional value of the "Klassifikasjons" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.minimum.Klassifikasjon.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Klassifikasjons" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.minimum.Klassifikasjon.Builder#end()} to * return to the current builder. */ public Klassifikasjon.Builder> addKlassifikasjons() { if (this.klassifikasjons == null) { this.klassifikasjons = new ArrayList>>(); } final Klassifikasjon.Builder> klassifikasjons_Builder = new Klassifikasjon.Builder>(this, null, false); this.klassifikasjons.add(klassifikasjons_Builder); return klassifikasjons_Builder; } /** * Sets the new value of "referanseEksternNoekkel" (any previous value will be * replaced) * * @param referanseEksternNoekkel * New value of the "referanseEksternNoekkel" property. */ public MappeMinimum.Builder<_B> withReferanseEksternNoekkel(final EksternNoekkel referanseEksternNoekkel) { this.referanseEksternNoekkel = ((referanseEksternNoekkel == null)?null:new EksternNoekkel.Builder>(this, referanseEksternNoekkel, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseEksternNoekkel" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "referanseEksternNoekkel" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel.Builder#end()} * to return to the current builder. */ public EksternNoekkel.Builder> withReferanseEksternNoekkel() { if (this.referanseEksternNoekkel!= null) { return this.referanseEksternNoekkel; } return this.referanseEksternNoekkel = new EksternNoekkel.Builder>(this, null, false); } @Override public MappeMinimum build() { if (_storedValue == null) { return this.init(new MappeMinimum()); } else { return ((MappeMinimum) _storedValue); } } public MappeMinimum.Builder<_B> copyOf(final MappeMinimum _other) { _other.copyTo(this); return this; } public MappeMinimum.Builder<_B> copyOf(final MappeMinimum.Builder _other) { return copyOf(_other.build()); } } public static class Select extends MappeMinimum.Selector { Select() { super(null, null, null); } public static MappeMinimum.Select _root() { return new MappeMinimum.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private SystemID.Selector> systemID = null; private com.kscs.util.jaxb.Selector> mappeID = null; private ReferanseTilMappe.Selector> referanseForeldermappe = null; private com.kscs.util.jaxb.Selector> tittel = null; private com.kscs.util.jaxb.Selector> offentligTittel = null; private SkjermingMinimum.Selector> skjerming = null; private GraderingMinimum.Selector> gradering = null; private Klassifikasjon.Selector> klassifikasjons = null; private EksternNoekkel.Selector> referanseEksternNoekkel = null; public Selector(final TRoot root, final TParent parent, final String propertyName) { super(root, parent, propertyName); } @Override public Map buildChildren() { final Map products = new HashMap(); products.putAll(super.buildChildren()); if (this.systemID!= null) { products.put("systemID", this.systemID.init()); } if (this.mappeID!= null) { products.put("mappeID", this.mappeID.init()); } if (this.referanseForeldermappe!= null) { products.put("referanseForeldermappe", this.referanseForeldermappe.init()); } if (this.tittel!= null) { products.put("tittel", this.tittel.init()); } if (this.offentligTittel!= null) { products.put("offentligTittel", this.offentligTittel.init()); } if (this.skjerming!= null) { products.put("skjerming", this.skjerming.init()); } if (this.gradering!= null) { products.put("gradering", this.gradering.init()); } if (this.klassifikasjons!= null) { products.put("klassifikasjons", this.klassifikasjons.init()); } if (this.referanseEksternNoekkel!= null) { products.put("referanseEksternNoekkel", this.referanseEksternNoekkel.init()); } return products; } public SystemID.Selector> systemID() { return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID); } public com.kscs.util.jaxb.Selector> mappeID() { return ((this.mappeID == null)?this.mappeID = new com.kscs.util.jaxb.Selector>(this._root, this, "mappeID"):this.mappeID); } public ReferanseTilMappe.Selector> referanseForeldermappe() { return ((this.referanseForeldermappe == null)?this.referanseForeldermappe = new ReferanseTilMappe.Selector>(this._root, this, "referanseForeldermappe"):this.referanseForeldermappe); } 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 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 Klassifikasjon.Selector> klassifikasjons() { return ((this.klassifikasjons == null)?this.klassifikasjons = new Klassifikasjon.Selector>(this._root, this, "klassifikasjons"):this.klassifikasjons); } public EksternNoekkel.Selector> referanseEksternNoekkel() { return ((this.referanseEksternNoekkel == null)?this.referanseEksternNoekkel = new EksternNoekkel.Selector>(this._root, this, "referanseEksternNoekkel"):this.referanseEksternNoekkel); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy