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