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

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


/**
 * 

Java class for matrikkelnummerOppdateringer complex type. * *

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

 * <complexType name="matrikkelnummerOppdateringer">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ny" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}matrikkelnummer" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="slett" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/oppdater/v1}matrikkelnummerSlett" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "matrikkelnummerOppdateringer", propOrder = { "nies", "sletts" }) public class MatrikkelnummerOppdateringer { @XmlElement(name = "ny") protected List nies; @XmlElement(name = "slett") protected List 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 Matrikkelnummer } * * */ public List getNies() { if (nies == null) { nies = new ArrayList(); } return this.nies; } /** * 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 MatrikkelnummerSlett } * * */ public List getSletts() { if (sletts == null) { sletts = new ArrayList(); } return this.sletts; } /** * 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 MatrikkelnummerOppdateringer.Builder<_B> _other) { if (this.nies == null) { _other.nies = null; } else { _other.nies = new ArrayList>>(); for (Matrikkelnummer _item: this.nies) { _other.nies.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } if (this.sletts == null) { _other.sletts = null; } else { _other.sletts = new ArrayList>>(); for (MatrikkelnummerSlett _item: this.sletts) { _other.sletts.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >MatrikkelnummerOppdateringer.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new MatrikkelnummerOppdateringer.Builder<_B>(_parentBuilder, this, true); } public MatrikkelnummerOppdateringer.Builder newCopyBuilder() { return newCopyBuilder(null); } public static MatrikkelnummerOppdateringer.Builder builder() { return new MatrikkelnummerOppdateringer.Builder(null, null, false); } public static<_B >MatrikkelnummerOppdateringer.Builder<_B> copyOf(final MatrikkelnummerOppdateringer _other) { final MatrikkelnummerOppdateringer.Builder<_B> _newBuilder = new MatrikkelnummerOppdateringer.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 MatrikkelnummerOppdateringer.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _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 (Matrikkelnummer _item: this.nies) { _other.nies.add(((_item == null)?null:_item.newCopyBuilder(_other, niesPropertyTree, _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 (MatrikkelnummerSlett _item: this.sletts) { _other.sletts.add(((_item == null)?null:_item.newCopyBuilder(_other, slettsPropertyTree, _propertyTreeUse))); } } } } public<_B >MatrikkelnummerOppdateringer.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new MatrikkelnummerOppdateringer.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public MatrikkelnummerOppdateringer.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >MatrikkelnummerOppdateringer.Builder<_B> copyOf(final MatrikkelnummerOppdateringer _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final MatrikkelnummerOppdateringer.Builder<_B> _newBuilder = new MatrikkelnummerOppdateringer.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static MatrikkelnummerOppdateringer.Builder copyExcept(final MatrikkelnummerOppdateringer _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static MatrikkelnummerOppdateringer.Builder copyOnly(final MatrikkelnummerOppdateringer _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final MatrikkelnummerOppdateringer _storedValue; private List>> nies; private List>> sletts; public Builder(final _B _parentBuilder, final MatrikkelnummerOppdateringer _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.nies == null) { this.nies = null; } else { this.nies = new ArrayList>>(); for (Matrikkelnummer _item: _other.nies) { this.nies.add(((_item == null)?null:_item.newCopyBuilder(this))); } } if (_other.sletts == null) { this.sletts = null; } else { this.sletts = new ArrayList>>(); for (MatrikkelnummerSlett _item: _other.sletts) { this.sletts.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final MatrikkelnummerOppdateringer _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; 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 (Matrikkelnummer _item: _other.nies) { this.nies.add(((_item == null)?null:_item.newCopyBuilder(this, niesPropertyTree, _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 (MatrikkelnummerSlett _item: _other.sletts) { this.sletts.add(((_item == null)?null:_item.newCopyBuilder(this, slettsPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends MatrikkelnummerOppdateringer >_P init(final _P _product) { if (this.nies!= null) { final List nies = new ArrayList(this.nies.size()); for (Matrikkelnummer.Builder> _item: this.nies) { nies.add(_item.build()); } _product.nies = nies; } if (this.sletts!= null) { final List sletts = new ArrayList(this.sletts.size()); for (MatrikkelnummerSlett.Builder> _item: this.sletts) { sletts.add(_item.build()); } _product.sletts = sletts; } return _product; } /** * Adds the given items to the value of "nies" * * @param nies * Items to add to the value of the "nies" property */ public MatrikkelnummerOppdateringer.Builder<_B> addNies(final Iterable nies) { if (nies!= null) { if (this.nies == null) { this.nies = new ArrayList>>(); } for (Matrikkelnummer _item: nies) { this.nies.add(new Matrikkelnummer.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 MatrikkelnummerOppdateringer.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 MatrikkelnummerOppdateringer.Builder<_B> addNies(Matrikkelnummer... 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 MatrikkelnummerOppdateringer.Builder<_B> withNies(Matrikkelnummer... 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.Matrikkelnummer.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.Matrikkelnummer.Builder#end()} to * return to the current builder. */ public Matrikkelnummer.Builder> addNies() { if (this.nies == null) { this.nies = new ArrayList>>(); } final Matrikkelnummer.Builder> nies_Builder = new Matrikkelnummer.Builder>(this, null, false); this.nies.add(nies_Builder); return nies_Builder; } /** * Adds the given items to the value of "sletts" * * @param sletts * Items to add to the value of the "sletts" property */ public MatrikkelnummerOppdateringer.Builder<_B> addSletts(final Iterable sletts) { if (sletts!= null) { if (this.sletts == null) { this.sletts = new ArrayList>>(); } for (MatrikkelnummerSlett _item: sletts) { this.sletts.add(new MatrikkelnummerSlett.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 MatrikkelnummerOppdateringer.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 MatrikkelnummerOppdateringer.Builder<_B> addSletts(MatrikkelnummerSlett... 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 MatrikkelnummerOppdateringer.Builder<_B> withSletts(MatrikkelnummerSlett... 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.MatrikkelnummerSlett.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.MatrikkelnummerSlett.Builder#end()} to * return to the current builder. */ public MatrikkelnummerSlett.Builder> addSletts() { if (this.sletts == null) { this.sletts = new ArrayList>>(); } final MatrikkelnummerSlett.Builder> sletts_Builder = new MatrikkelnummerSlett.Builder>(this, null, false); this.sletts.add(sletts_Builder); return sletts_Builder; } @Override public MatrikkelnummerOppdateringer build() { if (_storedValue == null) { return this.init(new MatrikkelnummerOppdateringer()); } else { return ((MatrikkelnummerOppdateringer) _storedValue); } } public MatrikkelnummerOppdateringer.Builder<_B> copyOf(final MatrikkelnummerOppdateringer _other) { _other.copyTo(this); return this; } public MatrikkelnummerOppdateringer.Builder<_B> copyOf(final MatrikkelnummerOppdateringer.Builder _other) { return copyOf(_other.build()); } } public static class Select extends MatrikkelnummerOppdateringer.Selector { Select() { super(null, null, null); } public static MatrikkelnummerOppdateringer.Select _root() { return new MatrikkelnummerOppdateringer.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private Matrikkelnummer.Selector> nies = null; private MatrikkelnummerSlett.Selector> sletts = 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.nies!= null) { products.put("nies", this.nies.init()); } if (this.sletts!= null) { products.put("sletts", this.sletts.init()); } return products; } public Matrikkelnummer.Selector> nies() { return ((this.nies == null)?this.nies = new Matrikkelnummer.Selector>(this._root, this, "nies"):this.nies); } public MatrikkelnummerSlett.Selector> sletts() { return ((this.sletts == null)?this.sletts = new MatrikkelnummerSlett.Selector>(this._root, this, "sletts"):this.sletts); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy