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

no.ks.fiks.arkiv.v1.arkivmelding.oppdater.PunktOppdateringer 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.Punkt;


/**
 * 

Java class for punktOppdateringer complex type. * *

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

 * <complexType name="punktOppdateringer">
 *   <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}punktOppdatering" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="slett" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/oppdater/v1}punktSlett" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="ny" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}punkt" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "punktOppdateringer", propOrder = { "oppdaterings", "sletts", "nies" }) public class PunktOppdateringer { @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 PunktOppdatering } * * */ 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 PunktSlett } * * */ 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 Punkt } * * */ 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 PunktOppdateringer.Builder<_B> _other) { if (this.oppdaterings == null) { _other.oppdaterings = null; } else { _other.oppdaterings = new ArrayList>>(); for (PunktOppdatering _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 (PunktSlett _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 (Punkt _item: this.nies) { _other.nies.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >PunktOppdateringer.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new PunktOppdateringer.Builder<_B>(_parentBuilder, this, true); } public PunktOppdateringer.Builder newCopyBuilder() { return newCopyBuilder(null); } public static PunktOppdateringer.Builder builder() { return new PunktOppdateringer.Builder(null, null, false); } public static<_B >PunktOppdateringer.Builder<_B> copyOf(final PunktOppdateringer _other) { final PunktOppdateringer.Builder<_B> _newBuilder = new PunktOppdateringer.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 PunktOppdateringer.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 (PunktOppdatering _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 (PunktSlett _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 (Punkt _item: this.nies) { _other.nies.add(((_item == null)?null:_item.newCopyBuilder(_other, niesPropertyTree, _propertyTreeUse))); } } } } public<_B >PunktOppdateringer.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new PunktOppdateringer.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public PunktOppdateringer.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >PunktOppdateringer.Builder<_B> copyOf(final PunktOppdateringer _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PunktOppdateringer.Builder<_B> _newBuilder = new PunktOppdateringer.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static PunktOppdateringer.Builder copyExcept(final PunktOppdateringer _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static PunktOppdateringer.Builder copyOnly(final PunktOppdateringer _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final PunktOppdateringer _storedValue; private List>> oppdaterings; private List>> sletts; private List>> nies; public Builder(final _B _parentBuilder, final PunktOppdateringer _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 (PunktOppdatering _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 (PunktSlett _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 (Punkt _item: _other.nies) { this.nies.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final PunktOppdateringer _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 (PunktOppdatering _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 (PunktSlett _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 (Punkt _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 PunktOppdateringer >_P init(final _P _product) { if (this.oppdaterings!= null) { final List oppdaterings = new ArrayList(this.oppdaterings.size()); for (PunktOppdatering.Builder> _item: this.oppdaterings) { oppdaterings.add(_item.build()); } _product.oppdaterings = oppdaterings; } if (this.sletts!= null) { final List sletts = new ArrayList(this.sletts.size()); for (PunktSlett.Builder> _item: this.sletts) { sletts.add(_item.build()); } _product.sletts = sletts; } if (this.nies!= null) { final List nies = new ArrayList(this.nies.size()); for (Punkt.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 PunktOppdateringer.Builder<_B> addOppdaterings(final Iterable oppdaterings) { if (oppdaterings!= null) { if (this.oppdaterings == null) { this.oppdaterings = new ArrayList>>(); } for (PunktOppdatering _item: oppdaterings) { this.oppdaterings.add(new PunktOppdatering.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 PunktOppdateringer.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 PunktOppdateringer.Builder<_B> addOppdaterings(PunktOppdatering... 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 PunktOppdateringer.Builder<_B> withOppdaterings(PunktOppdatering... 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.PunktOppdatering.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.PunktOppdatering.Builder#end()} to * return to the current builder. */ public PunktOppdatering.Builder> addOppdaterings() { if (this.oppdaterings == null) { this.oppdaterings = new ArrayList>>(); } final PunktOppdatering.Builder> oppdaterings_Builder = new PunktOppdatering.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 PunktOppdateringer.Builder<_B> addSletts(final Iterable sletts) { if (sletts!= null) { if (this.sletts == null) { this.sletts = new ArrayList>>(); } for (PunktSlett _item: sletts) { this.sletts.add(new PunktSlett.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 PunktOppdateringer.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 PunktOppdateringer.Builder<_B> addSletts(PunktSlett... 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 PunktOppdateringer.Builder<_B> withSletts(PunktSlett... 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.PunktSlett.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.PunktSlett.Builder#end()} * to return to the current builder. */ public PunktSlett.Builder> addSletts() { if (this.sletts == null) { this.sletts = new ArrayList>>(); } final PunktSlett.Builder> sletts_Builder = new PunktSlett.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 PunktOppdateringer.Builder<_B> addNies(final Iterable nies) { if (nies!= null) { if (this.nies == null) { this.nies = new ArrayList>>(); } for (Punkt _item: nies) { this.nies.add(new Punkt.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 PunktOppdateringer.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 PunktOppdateringer.Builder<_B> addNies(Punkt... 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 PunktOppdateringer.Builder<_B> withNies(Punkt... 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.Punkt.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.Punkt.Builder#end()} to * return to the current builder. */ public Punkt.Builder> addNies() { if (this.nies == null) { this.nies = new ArrayList>>(); } final Punkt.Builder> nies_Builder = new Punkt.Builder>(this, null, false); this.nies.add(nies_Builder); return nies_Builder; } @Override public PunktOppdateringer build() { if (_storedValue == null) { return this.init(new PunktOppdateringer()); } else { return ((PunktOppdateringer) _storedValue); } } public PunktOppdateringer.Builder<_B> copyOf(final PunktOppdateringer _other) { _other.copyTo(this); return this; } public PunktOppdateringer.Builder<_B> copyOf(final PunktOppdateringer.Builder _other) { return copyOf(_other.build()); } } public static class Select extends PunktOppdateringer.Selector { Select() { super(null, null, null); } public static PunktOppdateringer.Select _root() { return new PunktOppdateringer.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private PunktOppdatering.Selector> oppdaterings = null; private PunktSlett.Selector> sletts = null; private Punkt.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 PunktOppdatering.Selector> oppdaterings() { return ((this.oppdaterings == null)?this.oppdaterings = new PunktOppdatering.Selector>(this._root, this, "oppdaterings"):this.oppdaterings); } public PunktSlett.Selector> sletts() { return ((this.sletts == null)?this.sletts = new PunktSlett.Selector>(this._root, this, "sletts"):this.sletts); } public Punkt.Selector> nies() { return ((this.nies == null)?this.nies = new Punkt.Selector>(this._root, this, "nies"):this.nies); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy