no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.ArkivmeldingKvittering 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.opprett.kvittering;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
* Java class for arkivmeldingKvittering complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="arkivmeldingKvittering">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="system" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <choice>
* <element name="mappeKvittering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/kvittering/v1}mappeKvittering" maxOccurs="unbounded" minOccurs="0"/>
* <element name="registreringKvittering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/kvittering/v1}registreringKvittering" maxOccurs="unbounded" minOccurs="0"/>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "arkivmeldingKvittering", propOrder = {
"system",
"registreringKvitterings",
"mappeKvitterings"
})
@XmlRootElement(name = "arkivmeldingKvittering")
public class ArkivmeldingKvittering {
@XmlElement(required = true)
protected String system;
@XmlElement(name = "registreringKvittering")
protected List registreringKvitterings;
@XmlElement(name = "mappeKvittering")
protected List mappeKvitterings;
/**
* Gets the value of the system property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSystem() {
return system;
}
/**
* Sets the value of the system property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSystem(String value) {
this.system = value;
}
/**
* Gets the value of the registreringKvitterings 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 registreringKvitterings property.
*
*
* For example, to add a new item, do as follows:
*
* getRegistreringKvitterings().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RegistreringKvittering }
*
*
*/
public List getRegistreringKvitterings() {
if (registreringKvitterings == null) {
registreringKvitterings = new ArrayList();
}
return this.registreringKvitterings;
}
/**
* Gets the value of the mappeKvitterings 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 mappeKvitterings property.
*
*
* For example, to add a new item, do as follows:
*
* getMappeKvitterings().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link MappeKvittering }
*
*
*/
public List getMappeKvitterings() {
if (mappeKvitterings == null) {
mappeKvitterings = new ArrayList();
}
return this.mappeKvitterings;
}
/**
* 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 ArkivmeldingKvittering.Builder<_B> _other) {
_other.system = this.system;
if (this.registreringKvitterings == null) {
_other.registreringKvitterings = null;
} else {
_other.registreringKvitterings = new ArrayList>>();
for (RegistreringKvittering _item: this.registreringKvitterings) {
_other.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
if (this.mappeKvitterings == null) {
_other.mappeKvitterings = null;
} else {
_other.mappeKvitterings = new ArrayList>>();
for (MappeKvittering _item: this.mappeKvitterings) {
_other.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
}
public<_B >ArkivmeldingKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new ArkivmeldingKvittering.Builder<_B>(_parentBuilder, this, true);
}
public ArkivmeldingKvittering.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static ArkivmeldingKvittering.Builder builder() {
return new ArkivmeldingKvittering.Builder(null, null, false);
}
public static<_B >ArkivmeldingKvittering.Builder<_B> copyOf(final ArkivmeldingKvittering _other) {
final ArkivmeldingKvittering.Builder<_B> _newBuilder = new ArkivmeldingKvittering.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 ArkivmeldingKvittering.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) {
_other.system = this.system;
}
final PropertyTree registreringKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registreringKvitterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringKvitteringsPropertyTree!= null):((registreringKvitteringsPropertyTree == null)||(!registreringKvitteringsPropertyTree.isLeaf())))) {
if (this.registreringKvitterings == null) {
_other.registreringKvitterings = null;
} else {
_other.registreringKvitterings = new ArrayList>>();
for (RegistreringKvittering _item: this.registreringKvitterings) {
_other.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other, registreringKvitteringsPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree mappeKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeKvitterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeKvitteringsPropertyTree!= null):((mappeKvitteringsPropertyTree == null)||(!mappeKvitteringsPropertyTree.isLeaf())))) {
if (this.mappeKvitterings == null) {
_other.mappeKvitterings = null;
} else {
_other.mappeKvitterings = new ArrayList>>();
for (MappeKvittering _item: this.mappeKvitterings) {
_other.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(_other, mappeKvitteringsPropertyTree, _propertyTreeUse)));
}
}
}
}
public<_B >ArkivmeldingKvittering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new ArkivmeldingKvittering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public ArkivmeldingKvittering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >ArkivmeldingKvittering.Builder<_B> copyOf(final ArkivmeldingKvittering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final ArkivmeldingKvittering.Builder<_B> _newBuilder = new ArkivmeldingKvittering.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static ArkivmeldingKvittering.Builder copyExcept(final ArkivmeldingKvittering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static ArkivmeldingKvittering.Builder copyOnly(final ArkivmeldingKvittering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final ArkivmeldingKvittering _storedValue;
private String system;
private List>> registreringKvitterings;
private List>> mappeKvitterings;
public Builder(final _B _parentBuilder, final ArkivmeldingKvittering _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.system = _other.system;
if (_other.registreringKvitterings == null) {
this.registreringKvitterings = null;
} else {
this.registreringKvitterings = new ArrayList>>();
for (RegistreringKvittering _item: _other.registreringKvitterings) {
this.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
if (_other.mappeKvitterings == null) {
this.mappeKvitterings = null;
} else {
this.mappeKvitterings = new ArrayList>>();
for (MappeKvittering _item: _other.mappeKvitterings) {
this.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final ArkivmeldingKvittering _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) {
this.system = _other.system;
}
final PropertyTree registreringKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registreringKvitterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringKvitteringsPropertyTree!= null):((registreringKvitteringsPropertyTree == null)||(!registreringKvitteringsPropertyTree.isLeaf())))) {
if (_other.registreringKvitterings == null) {
this.registreringKvitterings = null;
} else {
this.registreringKvitterings = new ArrayList>>();
for (RegistreringKvittering _item: _other.registreringKvitterings) {
this.registreringKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this, registreringKvitteringsPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree mappeKvitteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappeKvitterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappeKvitteringsPropertyTree!= null):((mappeKvitteringsPropertyTree == null)||(!mappeKvitteringsPropertyTree.isLeaf())))) {
if (_other.mappeKvitterings == null) {
this.mappeKvitterings = null;
} else {
this.mappeKvitterings = new ArrayList>>();
for (MappeKvittering _item: _other.mappeKvitterings) {
this.mappeKvitterings.add(((_item == null)?null:_item.newCopyBuilder(this, mappeKvitteringsPropertyTree, _propertyTreeUse)));
}
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends ArkivmeldingKvittering >_P init(final _P _product) {
_product.system = this.system;
if (this.registreringKvitterings!= null) {
final List registreringKvitterings = new ArrayList(this.registreringKvitterings.size());
for (RegistreringKvittering.Builder> _item: this.registreringKvitterings) {
registreringKvitterings.add(_item.build());
}
_product.registreringKvitterings = registreringKvitterings;
}
if (this.mappeKvitterings!= null) {
final List mappeKvitterings = new ArrayList(this.mappeKvitterings.size());
for (MappeKvittering.Builder> _item: this.mappeKvitterings) {
mappeKvitterings.add(_item.build());
}
_product.mappeKvitterings = mappeKvitterings;
}
return _product;
}
/**
* Sets the new value of "system" (any previous value will be replaced)
*
* @param system
* New value of the "system" property.
*/
public ArkivmeldingKvittering.Builder<_B> withSystem(final String system) {
this.system = system;
return this;
}
/**
* Adds the given items to the value of "registreringKvitterings"
*
* @param registreringKvitterings
* Items to add to the value of the "registreringKvitterings" property
*/
public ArkivmeldingKvittering.Builder<_B> addRegistreringKvitterings(final Iterable extends RegistreringKvittering> registreringKvitterings) {
if (registreringKvitterings!= null) {
if (this.registreringKvitterings == null) {
this.registreringKvitterings = new ArrayList>>();
}
for (RegistreringKvittering _item: registreringKvitterings) {
this.registreringKvitterings.add(new RegistreringKvittering.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "registreringKvitterings" (any previous value will be
* replaced)
*
* @param registreringKvitterings
* New value of the "registreringKvitterings" property.
*/
public ArkivmeldingKvittering.Builder<_B> withRegistreringKvitterings(final Iterable extends RegistreringKvittering> registreringKvitterings) {
if (this.registreringKvitterings!= null) {
this.registreringKvitterings.clear();
}
return addRegistreringKvitterings(registreringKvitterings);
}
/**
* Adds the given items to the value of "registreringKvitterings"
*
* @param registreringKvitterings
* Items to add to the value of the "registreringKvitterings" property
*/
public ArkivmeldingKvittering.Builder<_B> addRegistreringKvitterings(RegistreringKvittering... registreringKvitterings) {
addRegistreringKvitterings(Arrays.asList(registreringKvitterings));
return this;
}
/**
* Sets the new value of "registreringKvitterings" (any previous value will be
* replaced)
*
* @param registreringKvitterings
* New value of the "registreringKvitterings" property.
*/
public ArkivmeldingKvittering.Builder<_B> withRegistreringKvitterings(RegistreringKvittering... registreringKvitterings) {
withRegistreringKvitterings(Arrays.asList(registreringKvitterings));
return this;
}
/**
* Returns a new builder to build an additional value of the
* "RegistreringKvitterings" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.RegistreringKvittering.Builder#end()}
* to return to the current builder.
*
* @return
* a new builder to build an additional value of the "RegistreringKvitterings"
* property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.RegistreringKvittering.Builder#end()}
* to return to the current builder.
*/
public RegistreringKvittering.Builder extends ArkivmeldingKvittering.Builder<_B>> addRegistreringKvitterings() {
if (this.registreringKvitterings == null) {
this.registreringKvitterings = new ArrayList>>();
}
final RegistreringKvittering.Builder> registreringKvitterings_Builder = new RegistreringKvittering.Builder>(this, null, false);
this.registreringKvitterings.add(registreringKvitterings_Builder);
return registreringKvitterings_Builder;
}
/**
* Adds the given items to the value of "mappeKvitterings"
*
* @param mappeKvitterings
* Items to add to the value of the "mappeKvitterings" property
*/
public ArkivmeldingKvittering.Builder<_B> addMappeKvitterings(final Iterable extends MappeKvittering> mappeKvitterings) {
if (mappeKvitterings!= null) {
if (this.mappeKvitterings == null) {
this.mappeKvitterings = new ArrayList>>();
}
for (MappeKvittering _item: mappeKvitterings) {
this.mappeKvitterings.add(new MappeKvittering.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "mappeKvitterings" (any previous value will be replaced)
*
* @param mappeKvitterings
* New value of the "mappeKvitterings" property.
*/
public ArkivmeldingKvittering.Builder<_B> withMappeKvitterings(final Iterable extends MappeKvittering> mappeKvitterings) {
if (this.mappeKvitterings!= null) {
this.mappeKvitterings.clear();
}
return addMappeKvitterings(mappeKvitterings);
}
/**
* Adds the given items to the value of "mappeKvitterings"
*
* @param mappeKvitterings
* Items to add to the value of the "mappeKvitterings" property
*/
public ArkivmeldingKvittering.Builder<_B> addMappeKvitterings(MappeKvittering... mappeKvitterings) {
addMappeKvitterings(Arrays.asList(mappeKvitterings));
return this;
}
/**
* Sets the new value of "mappeKvitterings" (any previous value will be replaced)
*
* @param mappeKvitterings
* New value of the "mappeKvitterings" property.
*/
public ArkivmeldingKvittering.Builder<_B> withMappeKvitterings(MappeKvittering... mappeKvitterings) {
withMappeKvitterings(Arrays.asList(mappeKvitterings));
return this;
}
/**
* Returns a new builder to build an additional value of the "MappeKvitterings"
* property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.MappeKvittering.Builder#end()}
* to return to the current builder.
*
* @return
* a new builder to build an additional value of the "MappeKvitterings" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.kvittering.MappeKvittering.Builder#end()}
* to return to the current builder.
*/
public MappeKvittering.Builder extends ArkivmeldingKvittering.Builder<_B>> addMappeKvitterings() {
if (this.mappeKvitterings == null) {
this.mappeKvitterings = new ArrayList>>();
}
final MappeKvittering.Builder> mappeKvitterings_Builder = new MappeKvittering.Builder>(this, null, false);
this.mappeKvitterings.add(mappeKvitterings_Builder);
return mappeKvitterings_Builder;
}
@Override
public ArkivmeldingKvittering build() {
if (_storedValue == null) {
return this.init(new ArkivmeldingKvittering());
} else {
return ((ArkivmeldingKvittering) _storedValue);
}
}
public ArkivmeldingKvittering.Builder<_B> copyOf(final ArkivmeldingKvittering _other) {
_other.copyTo(this);
return this;
}
public ArkivmeldingKvittering.Builder<_B> copyOf(final ArkivmeldingKvittering.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends ArkivmeldingKvittering.Selector
{
Select() {
super(null, null, null);
}
public static ArkivmeldingKvittering.Select _root() {
return new ArkivmeldingKvittering.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> system = null;
private RegistreringKvittering.Selector> registreringKvitterings = null;
private MappeKvittering.Selector> mappeKvitterings = 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.system!= null) {
products.put("system", this.system.init());
}
if (this.registreringKvitterings!= null) {
products.put("registreringKvitterings", this.registreringKvitterings.init());
}
if (this.mappeKvitterings!= null) {
products.put("mappeKvitterings", this.mappeKvitterings.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> system() {
return ((this.system == null)?this.system = new com.kscs.util.jaxb.Selector>(this._root, this, "system"):this.system);
}
public RegistreringKvittering.Selector> registreringKvitterings() {
return ((this.registreringKvitterings == null)?this.registreringKvitterings = new RegistreringKvittering.Selector>(this._root, this, "registreringKvitterings"):this.registreringKvitterings);
}
public MappeKvittering.Selector> mappeKvitterings() {
return ((this.mappeKvitterings == null)?this.mappeKvitterings = new MappeKvittering.Selector>(this._root, this, "mappeKvitterings"):this.mappeKvitterings);
}
}
}