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

no.ks.fiks.arkiv.v1.arkivmelding.oppdater.KorrespondansepartOppdateringer Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.6 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.06.23 at 10:32:49 AM CEST 
//


package no.ks.fiks.arkiv.v1.arkivmelding.oppdater;

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.arkivmelding.opprett.Korrespondansepart;


/**
 * 

Java class for korrespondansepartOppdateringer complex type. * *

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

 * <complexType name="korrespondansepartOppdateringer">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="oppdatering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/oppdater/v1}korrespondansepartOppdatering" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="slett" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/oppdater/v1}korrespondansepartSlett" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="ny" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}korrespondansepart" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "korrespondansepartOppdateringer", propOrder = { "oppdaterings", "sletts", "nies" }) public class KorrespondansepartOppdateringer { @XmlElement(name = "oppdatering") protected List oppdaterings; @XmlElement(name = "slett") protected List sletts; @XmlElement(name = "ny") protected List nies; /** * Gets the value of the oppdaterings 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 oppdaterings property. * *

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

     *    getOppdaterings().add(newItem);
     * 
* * *

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

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

     *    getSletts().add(newItem);
     * 
* * *

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

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

     *    getNies().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Korrespondansepart } * * */ public List getNies() { if (nies == null) { nies = new ArrayList(); } return this.nies; } /** * 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 KorrespondansepartOppdateringer.Builder<_B> _other) { if (this.oppdaterings == null) { _other.oppdaterings = null; } else { _other.oppdaterings = new ArrayList>>(); for (KorrespondansepartOppdatering _item: this.oppdaterings) { _other.oppdaterings.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } if (this.sletts == null) { _other.sletts = null; } else { _other.sletts = new ArrayList>>(); for (KorrespondansepartSlett _item: this.sletts) { _other.sletts.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } if (this.nies == null) { _other.nies = null; } else { _other.nies = new ArrayList>>(); for (Korrespondansepart _item: this.nies) { _other.nies.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >KorrespondansepartOppdateringer.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new KorrespondansepartOppdateringer.Builder<_B>(_parentBuilder, this, true); } public KorrespondansepartOppdateringer.Builder newCopyBuilder() { return newCopyBuilder(null); } public static KorrespondansepartOppdateringer.Builder builder() { return new KorrespondansepartOppdateringer.Builder(null, null, false); } public static<_B >KorrespondansepartOppdateringer.Builder<_B> copyOf(final KorrespondansepartOppdateringer _other) { final KorrespondansepartOppdateringer.Builder<_B> _newBuilder = new KorrespondansepartOppdateringer.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 KorrespondansepartOppdateringer.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree oppdateringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("oppdaterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(oppdateringsPropertyTree!= null):((oppdateringsPropertyTree == null)||(!oppdateringsPropertyTree.isLeaf())))) { if (this.oppdaterings == null) { _other.oppdaterings = null; } else { _other.oppdaterings = new ArrayList>>(); for (KorrespondansepartOppdatering _item: this.oppdaterings) { _other.oppdaterings.add(((_item == null)?null:_item.newCopyBuilder(_other, oppdateringsPropertyTree, _propertyTreeUse))); } } } final PropertyTree slettsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sletts")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettsPropertyTree!= null):((slettsPropertyTree == null)||(!slettsPropertyTree.isLeaf())))) { if (this.sletts == null) { _other.sletts = null; } else { _other.sletts = new ArrayList>>(); for (KorrespondansepartSlett _item: this.sletts) { _other.sletts.add(((_item == null)?null:_item.newCopyBuilder(_other, slettsPropertyTree, _propertyTreeUse))); } } } final PropertyTree niesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nies")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(niesPropertyTree!= null):((niesPropertyTree == null)||(!niesPropertyTree.isLeaf())))) { if (this.nies == null) { _other.nies = null; } else { _other.nies = new ArrayList>>(); for (Korrespondansepart _item: this.nies) { _other.nies.add(((_item == null)?null:_item.newCopyBuilder(_other, niesPropertyTree, _propertyTreeUse))); } } } } public<_B >KorrespondansepartOppdateringer.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new KorrespondansepartOppdateringer.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public KorrespondansepartOppdateringer.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >KorrespondansepartOppdateringer.Builder<_B> copyOf(final KorrespondansepartOppdateringer _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final KorrespondansepartOppdateringer.Builder<_B> _newBuilder = new KorrespondansepartOppdateringer.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static KorrespondansepartOppdateringer.Builder copyExcept(final KorrespondansepartOppdateringer _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static KorrespondansepartOppdateringer.Builder copyOnly(final KorrespondansepartOppdateringer _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final KorrespondansepartOppdateringer _storedValue; private List>> oppdaterings; private List>> sletts; private List>> nies; public Builder(final _B _parentBuilder, final KorrespondansepartOppdateringer _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.oppdaterings == null) { this.oppdaterings = null; } else { this.oppdaterings = new ArrayList>>(); for (KorrespondansepartOppdatering _item: _other.oppdaterings) { this.oppdaterings.add(((_item == null)?null:_item.newCopyBuilder(this))); } } if (_other.sletts == null) { this.sletts = null; } else { this.sletts = new ArrayList>>(); for (KorrespondansepartSlett _item: _other.sletts) { this.sletts.add(((_item == null)?null:_item.newCopyBuilder(this))); } } if (_other.nies == null) { this.nies = null; } else { this.nies = new ArrayList>>(); for (Korrespondansepart _item: _other.nies) { this.nies.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final KorrespondansepartOppdateringer _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree oppdateringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("oppdaterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(oppdateringsPropertyTree!= null):((oppdateringsPropertyTree == null)||(!oppdateringsPropertyTree.isLeaf())))) { if (_other.oppdaterings == null) { this.oppdaterings = null; } else { this.oppdaterings = new ArrayList>>(); for (KorrespondansepartOppdatering _item: _other.oppdaterings) { this.oppdaterings.add(((_item == null)?null:_item.newCopyBuilder(this, oppdateringsPropertyTree, _propertyTreeUse))); } } } final PropertyTree slettsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sletts")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettsPropertyTree!= null):((slettsPropertyTree == null)||(!slettsPropertyTree.isLeaf())))) { if (_other.sletts == null) { this.sletts = null; } else { this.sletts = new ArrayList>>(); for (KorrespondansepartSlett _item: _other.sletts) { this.sletts.add(((_item == null)?null:_item.newCopyBuilder(this, slettsPropertyTree, _propertyTreeUse))); } } } final PropertyTree niesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nies")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(niesPropertyTree!= null):((niesPropertyTree == null)||(!niesPropertyTree.isLeaf())))) { if (_other.nies == null) { this.nies = null; } else { this.nies = new ArrayList>>(); for (Korrespondansepart _item: _other.nies) { this.nies.add(((_item == null)?null:_item.newCopyBuilder(this, niesPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends KorrespondansepartOppdateringer >_P init(final _P _product) { if (this.oppdaterings!= null) { final List oppdaterings = new ArrayList(this.oppdaterings.size()); for (KorrespondansepartOppdatering.Builder> _item: this.oppdaterings) { oppdaterings.add(_item.build()); } _product.oppdaterings = oppdaterings; } if (this.sletts!= null) { final List sletts = new ArrayList(this.sletts.size()); for (KorrespondansepartSlett.Builder> _item: this.sletts) { sletts.add(_item.build()); } _product.sletts = sletts; } if (this.nies!= null) { final List nies = new ArrayList(this.nies.size()); for (Korrespondansepart.Builder> _item: this.nies) { nies.add(_item.build()); } _product.nies = nies; } return _product; } /** * Adds the given items to the value of "oppdaterings" * * @param oppdaterings * Items to add to the value of the "oppdaterings" property */ public KorrespondansepartOppdateringer.Builder<_B> addOppdaterings(final Iterable oppdaterings) { if (oppdaterings!= null) { if (this.oppdaterings == null) { this.oppdaterings = new ArrayList>>(); } for (KorrespondansepartOppdatering _item: oppdaterings) { this.oppdaterings.add(new KorrespondansepartOppdatering.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "oppdaterings" (any previous value will be replaced) * * @param oppdaterings * New value of the "oppdaterings" property. */ public KorrespondansepartOppdateringer.Builder<_B> withOppdaterings(final Iterable oppdaterings) { if (this.oppdaterings!= null) { this.oppdaterings.clear(); } return addOppdaterings(oppdaterings); } /** * Adds the given items to the value of "oppdaterings" * * @param oppdaterings * Items to add to the value of the "oppdaterings" property */ public KorrespondansepartOppdateringer.Builder<_B> addOppdaterings(KorrespondansepartOppdatering... oppdaterings) { addOppdaterings(Arrays.asList(oppdaterings)); return this; } /** * Sets the new value of "oppdaterings" (any previous value will be replaced) * * @param oppdaterings * New value of the "oppdaterings" property. */ public KorrespondansepartOppdateringer.Builder<_B> withOppdaterings(KorrespondansepartOppdatering... oppdaterings) { withOppdaterings(Arrays.asList(oppdaterings)); return this; } /** * Returns a new builder to build an additional value of the "Oppdaterings" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.oppdater.KorrespondansepartOppdatering.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "Oppdaterings" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.oppdater.KorrespondansepartOppdatering.Builder#end()} * to return to the current builder. */ public KorrespondansepartOppdatering.Builder> addOppdaterings() { if (this.oppdaterings == null) { this.oppdaterings = new ArrayList>>(); } final KorrespondansepartOppdatering.Builder> oppdaterings_Builder = new KorrespondansepartOppdatering.Builder>(this, null, false); this.oppdaterings.add(oppdaterings_Builder); return oppdaterings_Builder; } /** * Adds the given items to the value of "sletts" * * @param sletts * Items to add to the value of the "sletts" property */ public KorrespondansepartOppdateringer.Builder<_B> addSletts(final Iterable sletts) { if (sletts!= null) { if (this.sletts == null) { this.sletts = new ArrayList>>(); } for (KorrespondansepartSlett _item: sletts) { this.sletts.add(new KorrespondansepartSlett.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "sletts" (any previous value will be replaced) * * @param sletts * New value of the "sletts" property. */ public KorrespondansepartOppdateringer.Builder<_B> withSletts(final Iterable sletts) { if (this.sletts!= null) { this.sletts.clear(); } return addSletts(sletts); } /** * Adds the given items to the value of "sletts" * * @param sletts * Items to add to the value of the "sletts" property */ public KorrespondansepartOppdateringer.Builder<_B> addSletts(KorrespondansepartSlett... sletts) { addSletts(Arrays.asList(sletts)); return this; } /** * Sets the new value of "sletts" (any previous value will be replaced) * * @param sletts * New value of the "sletts" property. */ public KorrespondansepartOppdateringer.Builder<_B> withSletts(KorrespondansepartSlett... sletts) { withSletts(Arrays.asList(sletts)); return this; } /** * Returns a new builder to build an additional value of the "Sletts" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.oppdater.KorrespondansepartSlett.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "Sletts" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.oppdater.KorrespondansepartSlett.Builder#end()} * to return to the current builder. */ public KorrespondansepartSlett.Builder> addSletts() { if (this.sletts == null) { this.sletts = new ArrayList>>(); } final KorrespondansepartSlett.Builder> sletts_Builder = new KorrespondansepartSlett.Builder>(this, null, false); this.sletts.add(sletts_Builder); return sletts_Builder; } /** * Adds the given items to the value of "nies" * * @param nies * Items to add to the value of the "nies" property */ public KorrespondansepartOppdateringer.Builder<_B> addNies(final Iterable nies) { if (nies!= null) { if (this.nies == null) { this.nies = new ArrayList>>(); } for (Korrespondansepart _item: nies) { this.nies.add(new Korrespondansepart.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "nies" (any previous value will be replaced) * * @param nies * New value of the "nies" property. */ public KorrespondansepartOppdateringer.Builder<_B> withNies(final Iterable nies) { if (this.nies!= null) { this.nies.clear(); } return addNies(nies); } /** * Adds the given items to the value of "nies" * * @param nies * Items to add to the value of the "nies" property */ public KorrespondansepartOppdateringer.Builder<_B> addNies(Korrespondansepart... nies) { addNies(Arrays.asList(nies)); return this; } /** * Sets the new value of "nies" (any previous value will be replaced) * * @param nies * New value of the "nies" property. */ public KorrespondansepartOppdateringer.Builder<_B> withNies(Korrespondansepart... nies) { withNies(Arrays.asList(nies)); return this; } /** * Returns a new builder to build an additional value of the "Nies" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.opprett.Korrespondansepart.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Nies" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivmelding.opprett.Korrespondansepart.Builder#end()} to * return to the current builder. */ public Korrespondansepart.Builder> addNies() { if (this.nies == null) { this.nies = new ArrayList>>(); } final Korrespondansepart.Builder> nies_Builder = new Korrespondansepart.Builder>(this, null, false); this.nies.add(nies_Builder); return nies_Builder; } @Override public KorrespondansepartOppdateringer build() { if (_storedValue == null) { return this.init(new KorrespondansepartOppdateringer()); } else { return ((KorrespondansepartOppdateringer) _storedValue); } } public KorrespondansepartOppdateringer.Builder<_B> copyOf(final KorrespondansepartOppdateringer _other) { _other.copyTo(this); return this; } public KorrespondansepartOppdateringer.Builder<_B> copyOf(final KorrespondansepartOppdateringer.Builder _other) { return copyOf(_other.build()); } } public static class Select extends KorrespondansepartOppdateringer.Selector { Select() { super(null, null, null); } public static KorrespondansepartOppdateringer.Select _root() { return new KorrespondansepartOppdateringer.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private KorrespondansepartOppdatering.Selector> oppdaterings = null; private KorrespondansepartSlett.Selector> sletts = null; private Korrespondansepart.Selector> nies = 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.oppdaterings!= null) { products.put("oppdaterings", this.oppdaterings.init()); } if (this.sletts!= null) { products.put("sletts", this.sletts.init()); } if (this.nies!= null) { products.put("nies", this.nies.init()); } return products; } public KorrespondansepartOppdatering.Selector> oppdaterings() { return ((this.oppdaterings == null)?this.oppdaterings = new KorrespondansepartOppdatering.Selector>(this._root, this, "oppdaterings"):this.oppdaterings); } public KorrespondansepartSlett.Selector> sletts() { return ((this.sletts == null)?this.sletts = new KorrespondansepartSlett.Selector>(this._root, this, "sletts"):this.sletts); } public Korrespondansepart.Selector> nies() { return ((this.nies == null)?this.nies = new Korrespondansepart.Selector>(this._root, this, "nies"):this.nies); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy