no.ks.fiks.arkiv.v1.arkivmelding.opprett.Klasse 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;
import java.time.ZonedDateTime;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import org.w3._2001.xmlschema.Adapter1;
/**
* Java class for klasse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="klasse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="klasseID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}klasseID" minOccurs="0"/>
* <element name="tittel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}tittel"/>
* <element name="beskrivelse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}beskrivelse" minOccurs="0"/>
* <element name="noekkelord" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}noekkelord" maxOccurs="unbounded" minOccurs="0"/>
* <element name="opprettetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetDato" minOccurs="0"/>
* <element name="opprettetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetAv" minOccurs="0"/>
* <element name="avsluttetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avsluttetDato" minOccurs="0"/>
* <element name="avsluttetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avsluttetAv" minOccurs="0"/>
* <element name="kryssreferanse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}kryssreferanse" maxOccurs="unbounded" minOccurs="0"/>
* <element name="kassasjon" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}kassasjon" minOccurs="0"/>
* <element name="skjerming" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}skjerming" minOccurs="0"/>
* <element name="gradering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}gradering" minOccurs="0"/>
* <choice>
* <element name="klasse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}klasse" maxOccurs="unbounded" minOccurs="0"/>
* <element name="mappe" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}mappe" maxOccurs="unbounded" minOccurs="0"/>
* <element name="registrering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}registrering" maxOccurs="unbounded" minOccurs="0"/>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "klasse", propOrder = {
"klasseID",
"tittel",
"beskrivelse",
"noekkelords",
"opprettetDato",
"opprettetAv",
"avsluttetDato",
"avsluttetAv",
"kryssreferanses",
"kassasjon",
"skjerming",
"gradering",
"registrerings",
"mappes",
"klasses"
})
public class Klasse {
protected String klasseID;
@XmlElement(required = true)
protected String tittel;
protected String beskrivelse;
@XmlElement(name = "noekkelord")
protected List noekkelords;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime opprettetDato;
protected String opprettetAv;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime avsluttetDato;
protected String avsluttetAv;
@XmlElement(name = "kryssreferanse")
protected List kryssreferanses;
protected Kassasjon kassasjon;
protected Skjerming skjerming;
protected Gradering gradering;
@XmlElement(name = "registrering")
protected List registrerings;
@XmlElement(name = "mappe")
protected List mappes;
@XmlElement(name = "klasse")
protected List klasses;
/**
* Gets the value of the klasseID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKlasseID() {
return klasseID;
}
/**
* Sets the value of the klasseID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKlasseID(String value) {
this.klasseID = value;
}
/**
* Gets the value of the tittel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTittel() {
return tittel;
}
/**
* Sets the value of the tittel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTittel(String value) {
this.tittel = value;
}
/**
* Gets the value of the beskrivelse property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBeskrivelse() {
return beskrivelse;
}
/**
* Sets the value of the beskrivelse property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBeskrivelse(String value) {
this.beskrivelse = value;
}
/**
* Gets the value of the noekkelords 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 noekkelords property.
*
*
* For example, to add a new item, do as follows:
*
* getNoekkelords().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getNoekkelords() {
if (noekkelords == null) {
noekkelords = new ArrayList();
}
return this.noekkelords;
}
/**
* Gets the value of the opprettetDato property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getOpprettetDato() {
return opprettetDato;
}
/**
* Sets the value of the opprettetDato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOpprettetDato(ZonedDateTime value) {
this.opprettetDato = value;
}
/**
* Gets the value of the opprettetAv property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOpprettetAv() {
return opprettetAv;
}
/**
* Sets the value of the opprettetAv property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOpprettetAv(String value) {
this.opprettetAv = value;
}
/**
* Gets the value of the avsluttetDato property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getAvsluttetDato() {
return avsluttetDato;
}
/**
* Sets the value of the avsluttetDato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAvsluttetDato(ZonedDateTime value) {
this.avsluttetDato = value;
}
/**
* Gets the value of the avsluttetAv property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAvsluttetAv() {
return avsluttetAv;
}
/**
* Sets the value of the avsluttetAv property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAvsluttetAv(String value) {
this.avsluttetAv = value;
}
/**
* Gets the value of the kryssreferanses 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 kryssreferanses property.
*
*
* For example, to add a new item, do as follows:
*
* getKryssreferanses().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Kryssreferanse }
*
*
*/
public List getKryssreferanses() {
if (kryssreferanses == null) {
kryssreferanses = new ArrayList();
}
return this.kryssreferanses;
}
/**
* Gets the value of the kassasjon property.
*
* @return
* possible object is
* {@link Kassasjon }
*
*/
public Kassasjon getKassasjon() {
return kassasjon;
}
/**
* Sets the value of the kassasjon property.
*
* @param value
* allowed object is
* {@link Kassasjon }
*
*/
public void setKassasjon(Kassasjon value) {
this.kassasjon = value;
}
/**
* Gets the value of the skjerming property.
*
* @return
* possible object is
* {@link Skjerming }
*
*/
public Skjerming getSkjerming() {
return skjerming;
}
/**
* Sets the value of the skjerming property.
*
* @param value
* allowed object is
* {@link Skjerming }
*
*/
public void setSkjerming(Skjerming value) {
this.skjerming = value;
}
/**
* Gets the value of the gradering property.
*
* @return
* possible object is
* {@link Gradering }
*
*/
public Gradering getGradering() {
return gradering;
}
/**
* Sets the value of the gradering property.
*
* @param value
* allowed object is
* {@link Gradering }
*
*/
public void setGradering(Gradering value) {
this.gradering = value;
}
/**
* Gets the value of the registrerings 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 registrerings property.
*
*
* For example, to add a new item, do as follows:
*
* getRegistrerings().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Registrering }
*
*
*/
public List getRegistrerings() {
if (registrerings == null) {
registrerings = new ArrayList();
}
return this.registrerings;
}
/**
* Gets the value of the mappes 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 mappes property.
*
*
* For example, to add a new item, do as follows:
*
* getMappes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Mappe }
*
*
*/
public List getMappes() {
if (mappes == null) {
mappes = new ArrayList();
}
return this.mappes;
}
/**
* Gets the value of the klasses 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 klasses property.
*
*
* For example, to add a new item, do as follows:
*
* getKlasses().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Klasse }
*
*
*/
public List getKlasses() {
if (klasses == null) {
klasses = new ArrayList();
}
return this.klasses;
}
/**
* 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 Klasse.Builder<_B> _other) {
_other.klasseID = this.klasseID;
_other.tittel = this.tittel;
_other.beskrivelse = this.beskrivelse;
if (this.noekkelords == null) {
_other.noekkelords = null;
} else {
_other.noekkelords = new ArrayList();
for (String _item: this.noekkelords) {
_other.noekkelords.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
_other.opprettetDato = this.opprettetDato;
_other.opprettetAv = this.opprettetAv;
_other.avsluttetDato = this.avsluttetDato;
_other.avsluttetAv = this.avsluttetAv;
if (this.kryssreferanses == null) {
_other.kryssreferanses = null;
} else {
_other.kryssreferanses = new ArrayList>>();
for (Kryssreferanse _item: this.kryssreferanses) {
_other.kryssreferanses.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
_other.kassasjon = ((this.kassasjon == null)?null:this.kassasjon.newCopyBuilder(_other));
_other.skjerming = ((this.skjerming == null)?null:this.skjerming.newCopyBuilder(_other));
_other.gradering = ((this.gradering == null)?null:this.gradering.newCopyBuilder(_other));
if (this.registrerings == null) {
_other.registrerings = null;
} else {
_other.registrerings = new ArrayList>>();
for (Registrering _item: this.registrerings) {
_other.registrerings.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
if (this.mappes == null) {
_other.mappes = null;
} else {
_other.mappes = new ArrayList>>();
for (Mappe _item: this.mappes) {
_other.mappes.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
if (this.klasses == null) {
_other.klasses = null;
} else {
_other.klasses = new ArrayList>>();
for (Klasse _item: this.klasses) {
_other.klasses.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
}
public<_B >Klasse.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Klasse.Builder<_B>(_parentBuilder, this, true);
}
public Klasse.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Klasse.Builder builder() {
return new Klasse.Builder(null, null, false);
}
public static<_B >Klasse.Builder<_B> copyOf(final Klasse _other) {
final Klasse.Builder<_B> _newBuilder = new Klasse.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 Klasse.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree klasseIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klasseID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klasseIDPropertyTree!= null):((klasseIDPropertyTree == null)||(!klasseIDPropertyTree.isLeaf())))) {
_other.klasseID = this.klasseID;
}
final PropertyTree tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) {
_other.tittel = this.tittel;
}
final PropertyTree beskrivelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("beskrivelse"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(beskrivelsePropertyTree!= null):((beskrivelsePropertyTree == null)||(!beskrivelsePropertyTree.isLeaf())))) {
_other.beskrivelse = this.beskrivelse;
}
final PropertyTree noekkelordsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("noekkelords"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(noekkelordsPropertyTree!= null):((noekkelordsPropertyTree == null)||(!noekkelordsPropertyTree.isLeaf())))) {
if (this.noekkelords == null) {
_other.noekkelords = null;
} else {
_other.noekkelords = new ArrayList();
for (String _item: this.noekkelords) {
_other.noekkelords.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) {
_other.opprettetDato = this.opprettetDato;
}
final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) {
_other.opprettetAv = this.opprettetAv;
}
final PropertyTree avsluttetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetDatoPropertyTree!= null):((avsluttetDatoPropertyTree == null)||(!avsluttetDatoPropertyTree.isLeaf())))) {
_other.avsluttetDato = this.avsluttetDato;
}
final PropertyTree avsluttetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetAvPropertyTree!= null):((avsluttetAvPropertyTree == null)||(!avsluttetAvPropertyTree.isLeaf())))) {
_other.avsluttetAv = this.avsluttetAv;
}
final PropertyTree kryssreferansesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kryssreferanses"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kryssreferansesPropertyTree!= null):((kryssreferansesPropertyTree == null)||(!kryssreferansesPropertyTree.isLeaf())))) {
if (this.kryssreferanses == null) {
_other.kryssreferanses = null;
} else {
_other.kryssreferanses = new ArrayList>>();
for (Kryssreferanse _item: this.kryssreferanses) {
_other.kryssreferanses.add(((_item == null)?null:_item.newCopyBuilder(_other, kryssreferansesPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree kassasjonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kassasjon"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kassasjonPropertyTree!= null):((kassasjonPropertyTree == null)||(!kassasjonPropertyTree.isLeaf())))) {
_other.kassasjon = ((this.kassasjon == null)?null:this.kassasjon.newCopyBuilder(_other, kassasjonPropertyTree, _propertyTreeUse));
}
final PropertyTree skjermingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skjerming"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skjermingPropertyTree!= null):((skjermingPropertyTree == null)||(!skjermingPropertyTree.isLeaf())))) {
_other.skjerming = ((this.skjerming == null)?null:this.skjerming.newCopyBuilder(_other, skjermingPropertyTree, _propertyTreeUse));
}
final PropertyTree graderingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gradering"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(graderingPropertyTree!= null):((graderingPropertyTree == null)||(!graderingPropertyTree.isLeaf())))) {
_other.gradering = ((this.gradering == null)?null:this.gradering.newCopyBuilder(_other, graderingPropertyTree, _propertyTreeUse));
}
final PropertyTree registreringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registrerings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringsPropertyTree!= null):((registreringsPropertyTree == null)||(!registreringsPropertyTree.isLeaf())))) {
if (this.registrerings == null) {
_other.registrerings = null;
} else {
_other.registrerings = new ArrayList>>();
for (Registrering _item: this.registrerings) {
_other.registrerings.add(((_item == null)?null:_item.newCopyBuilder(_other, registreringsPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree mappesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappes"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappesPropertyTree!= null):((mappesPropertyTree == null)||(!mappesPropertyTree.isLeaf())))) {
if (this.mappes == null) {
_other.mappes = null;
} else {
_other.mappes = new ArrayList>>();
for (Mappe _item: this.mappes) {
_other.mappes.add(((_item == null)?null:_item.newCopyBuilder(_other, mappesPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree klassesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klasses"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klassesPropertyTree!= null):((klassesPropertyTree == null)||(!klassesPropertyTree.isLeaf())))) {
if (this.klasses == null) {
_other.klasses = null;
} else {
_other.klasses = new ArrayList>>();
for (Klasse _item: this.klasses) {
_other.klasses.add(((_item == null)?null:_item.newCopyBuilder(_other, klassesPropertyTree, _propertyTreeUse)));
}
}
}
}
public<_B >Klasse.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Klasse.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Klasse.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Klasse.Builder<_B> copyOf(final Klasse _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Klasse.Builder<_B> _newBuilder = new Klasse.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Klasse.Builder copyExcept(final Klasse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Klasse.Builder copyOnly(final Klasse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Klasse _storedValue;
private String klasseID;
private String tittel;
private String beskrivelse;
private List noekkelords;
private ZonedDateTime opprettetDato;
private String opprettetAv;
private ZonedDateTime avsluttetDato;
private String avsluttetAv;
private List>> kryssreferanses;
private Kassasjon.Builder> kassasjon;
private Skjerming.Builder> skjerming;
private Gradering.Builder> gradering;
private List>> registrerings;
private List>> mappes;
private List>> klasses;
public Builder(final _B _parentBuilder, final Klasse _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.klasseID = _other.klasseID;
this.tittel = _other.tittel;
this.beskrivelse = _other.beskrivelse;
if (_other.noekkelords == null) {
this.noekkelords = null;
} else {
this.noekkelords = new ArrayList();
for (String _item: _other.noekkelords) {
this.noekkelords.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
this.opprettetDato = _other.opprettetDato;
this.opprettetAv = _other.opprettetAv;
this.avsluttetDato = _other.avsluttetDato;
this.avsluttetAv = _other.avsluttetAv;
if (_other.kryssreferanses == null) {
this.kryssreferanses = null;
} else {
this.kryssreferanses = new ArrayList>>();
for (Kryssreferanse _item: _other.kryssreferanses) {
this.kryssreferanses.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
this.kassasjon = ((_other.kassasjon == null)?null:_other.kassasjon.newCopyBuilder(this));
this.skjerming = ((_other.skjerming == null)?null:_other.skjerming.newCopyBuilder(this));
this.gradering = ((_other.gradering == null)?null:_other.gradering.newCopyBuilder(this));
if (_other.registrerings == null) {
this.registrerings = null;
} else {
this.registrerings = new ArrayList>>();
for (Registrering _item: _other.registrerings) {
this.registrerings.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
if (_other.mappes == null) {
this.mappes = null;
} else {
this.mappes = new ArrayList>>();
for (Mappe _item: _other.mappes) {
this.mappes.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
if (_other.klasses == null) {
this.klasses = null;
} else {
this.klasses = new ArrayList>>();
for (Klasse _item: _other.klasses) {
this.klasses.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Klasse _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree klasseIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klasseID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klasseIDPropertyTree!= null):((klasseIDPropertyTree == null)||(!klasseIDPropertyTree.isLeaf())))) {
this.klasseID = _other.klasseID;
}
final PropertyTree tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) {
this.tittel = _other.tittel;
}
final PropertyTree beskrivelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("beskrivelse"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(beskrivelsePropertyTree!= null):((beskrivelsePropertyTree == null)||(!beskrivelsePropertyTree.isLeaf())))) {
this.beskrivelse = _other.beskrivelse;
}
final PropertyTree noekkelordsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("noekkelords"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(noekkelordsPropertyTree!= null):((noekkelordsPropertyTree == null)||(!noekkelordsPropertyTree.isLeaf())))) {
if (_other.noekkelords == null) {
this.noekkelords = null;
} else {
this.noekkelords = new ArrayList();
for (String _item: _other.noekkelords) {
this.noekkelords.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) {
this.opprettetDato = _other.opprettetDato;
}
final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) {
this.opprettetAv = _other.opprettetAv;
}
final PropertyTree avsluttetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetDatoPropertyTree!= null):((avsluttetDatoPropertyTree == null)||(!avsluttetDatoPropertyTree.isLeaf())))) {
this.avsluttetDato = _other.avsluttetDato;
}
final PropertyTree avsluttetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avsluttetAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avsluttetAvPropertyTree!= null):((avsluttetAvPropertyTree == null)||(!avsluttetAvPropertyTree.isLeaf())))) {
this.avsluttetAv = _other.avsluttetAv;
}
final PropertyTree kryssreferansesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kryssreferanses"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kryssreferansesPropertyTree!= null):((kryssreferansesPropertyTree == null)||(!kryssreferansesPropertyTree.isLeaf())))) {
if (_other.kryssreferanses == null) {
this.kryssreferanses = null;
} else {
this.kryssreferanses = new ArrayList>>();
for (Kryssreferanse _item: _other.kryssreferanses) {
this.kryssreferanses.add(((_item == null)?null:_item.newCopyBuilder(this, kryssreferansesPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree kassasjonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kassasjon"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kassasjonPropertyTree!= null):((kassasjonPropertyTree == null)||(!kassasjonPropertyTree.isLeaf())))) {
this.kassasjon = ((_other.kassasjon == null)?null:_other.kassasjon.newCopyBuilder(this, kassasjonPropertyTree, _propertyTreeUse));
}
final PropertyTree skjermingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skjerming"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skjermingPropertyTree!= null):((skjermingPropertyTree == null)||(!skjermingPropertyTree.isLeaf())))) {
this.skjerming = ((_other.skjerming == null)?null:_other.skjerming.newCopyBuilder(this, skjermingPropertyTree, _propertyTreeUse));
}
final PropertyTree graderingPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gradering"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(graderingPropertyTree!= null):((graderingPropertyTree == null)||(!graderingPropertyTree.isLeaf())))) {
this.gradering = ((_other.gradering == null)?null:_other.gradering.newCopyBuilder(this, graderingPropertyTree, _propertyTreeUse));
}
final PropertyTree registreringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registrerings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringsPropertyTree!= null):((registreringsPropertyTree == null)||(!registreringsPropertyTree.isLeaf())))) {
if (_other.registrerings == null) {
this.registrerings = null;
} else {
this.registrerings = new ArrayList>>();
for (Registrering _item: _other.registrerings) {
this.registrerings.add(((_item == null)?null:_item.newCopyBuilder(this, registreringsPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree mappesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappes"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappesPropertyTree!= null):((mappesPropertyTree == null)||(!mappesPropertyTree.isLeaf())))) {
if (_other.mappes == null) {
this.mappes = null;
} else {
this.mappes = new ArrayList>>();
for (Mappe _item: _other.mappes) {
this.mappes.add(((_item == null)?null:_item.newCopyBuilder(this, mappesPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree klassesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klasses"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klassesPropertyTree!= null):((klassesPropertyTree == null)||(!klassesPropertyTree.isLeaf())))) {
if (_other.klasses == null) {
this.klasses = null;
} else {
this.klasses = new ArrayList>>();
for (Klasse _item: _other.klasses) {
this.klasses.add(((_item == null)?null:_item.newCopyBuilder(this, klassesPropertyTree, _propertyTreeUse)));
}
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Klasse >_P init(final _P _product) {
_product.klasseID = this.klasseID;
_product.tittel = this.tittel;
_product.beskrivelse = this.beskrivelse;
if (this.noekkelords!= null) {
final List noekkelords = new ArrayList(this.noekkelords.size());
for (Buildable _item: this.noekkelords) {
noekkelords.add(((String) _item.build()));
}
_product.noekkelords = noekkelords;
}
_product.opprettetDato = this.opprettetDato;
_product.opprettetAv = this.opprettetAv;
_product.avsluttetDato = this.avsluttetDato;
_product.avsluttetAv = this.avsluttetAv;
if (this.kryssreferanses!= null) {
final List kryssreferanses = new ArrayList(this.kryssreferanses.size());
for (Kryssreferanse.Builder> _item: this.kryssreferanses) {
kryssreferanses.add(_item.build());
}
_product.kryssreferanses = kryssreferanses;
}
_product.kassasjon = ((this.kassasjon == null)?null:this.kassasjon.build());
_product.skjerming = ((this.skjerming == null)?null:this.skjerming.build());
_product.gradering = ((this.gradering == null)?null:this.gradering.build());
if (this.registrerings!= null) {
final List registrerings = new ArrayList(this.registrerings.size());
for (Registrering.Builder> _item: this.registrerings) {
registrerings.add(_item.build());
}
_product.registrerings = registrerings;
}
if (this.mappes!= null) {
final List mappes = new ArrayList(this.mappes.size());
for (Mappe.Builder> _item: this.mappes) {
mappes.add(_item.build());
}
_product.mappes = mappes;
}
if (this.klasses!= null) {
final List klasses = new ArrayList(this.klasses.size());
for (Klasse.Builder> _item: this.klasses) {
klasses.add(_item.build());
}
_product.klasses = klasses;
}
return _product;
}
/**
* Sets the new value of "klasseID" (any previous value will be replaced)
*
* @param klasseID
* New value of the "klasseID" property.
*/
public Klasse.Builder<_B> withKlasseID(final String klasseID) {
this.klasseID = klasseID;
return this;
}
/**
* Sets the new value of "tittel" (any previous value will be replaced)
*
* @param tittel
* New value of the "tittel" property.
*/
public Klasse.Builder<_B> withTittel(final String tittel) {
this.tittel = tittel;
return this;
}
/**
* Sets the new value of "beskrivelse" (any previous value will be replaced)
*
* @param beskrivelse
* New value of the "beskrivelse" property.
*/
public Klasse.Builder<_B> withBeskrivelse(final String beskrivelse) {
this.beskrivelse = beskrivelse;
return this;
}
/**
* Adds the given items to the value of "noekkelords"
*
* @param noekkelords
* Items to add to the value of the "noekkelords" property
*/
public Klasse.Builder<_B> addNoekkelords(final Iterable extends String> noekkelords) {
if (noekkelords!= null) {
if (this.noekkelords == null) {
this.noekkelords = new ArrayList();
}
for (String _item: noekkelords) {
this.noekkelords.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "noekkelords" (any previous value will be replaced)
*
* @param noekkelords
* New value of the "noekkelords" property.
*/
public Klasse.Builder<_B> withNoekkelords(final Iterable extends String> noekkelords) {
if (this.noekkelords!= null) {
this.noekkelords.clear();
}
return addNoekkelords(noekkelords);
}
/**
* Adds the given items to the value of "noekkelords"
*
* @param noekkelords
* Items to add to the value of the "noekkelords" property
*/
public Klasse.Builder<_B> addNoekkelords(String... noekkelords) {
addNoekkelords(Arrays.asList(noekkelords));
return this;
}
/**
* Sets the new value of "noekkelords" (any previous value will be replaced)
*
* @param noekkelords
* New value of the "noekkelords" property.
*/
public Klasse.Builder<_B> withNoekkelords(String... noekkelords) {
withNoekkelords(Arrays.asList(noekkelords));
return this;
}
/**
* Sets the new value of "opprettetDato" (any previous value will be replaced)
*
* @param opprettetDato
* New value of the "opprettetDato" property.
*/
public Klasse.Builder<_B> withOpprettetDato(final ZonedDateTime opprettetDato) {
this.opprettetDato = opprettetDato;
return this;
}
/**
* Sets the new value of "opprettetAv" (any previous value will be replaced)
*
* @param opprettetAv
* New value of the "opprettetAv" property.
*/
public Klasse.Builder<_B> withOpprettetAv(final String opprettetAv) {
this.opprettetAv = opprettetAv;
return this;
}
/**
* Sets the new value of "avsluttetDato" (any previous value will be replaced)
*
* @param avsluttetDato
* New value of the "avsluttetDato" property.
*/
public Klasse.Builder<_B> withAvsluttetDato(final ZonedDateTime avsluttetDato) {
this.avsluttetDato = avsluttetDato;
return this;
}
/**
* Sets the new value of "avsluttetAv" (any previous value will be replaced)
*
* @param avsluttetAv
* New value of the "avsluttetAv" property.
*/
public Klasse.Builder<_B> withAvsluttetAv(final String avsluttetAv) {
this.avsluttetAv = avsluttetAv;
return this;
}
/**
* Adds the given items to the value of "kryssreferanses"
*
* @param kryssreferanses
* Items to add to the value of the "kryssreferanses" property
*/
public Klasse.Builder<_B> addKryssreferanses(final Iterable extends Kryssreferanse> kryssreferanses) {
if (kryssreferanses!= null) {
if (this.kryssreferanses == null) {
this.kryssreferanses = new ArrayList>>();
}
for (Kryssreferanse _item: kryssreferanses) {
this.kryssreferanses.add(new Kryssreferanse.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "kryssreferanses" (any previous value will be replaced)
*
* @param kryssreferanses
* New value of the "kryssreferanses" property.
*/
public Klasse.Builder<_B> withKryssreferanses(final Iterable extends Kryssreferanse> kryssreferanses) {
if (this.kryssreferanses!= null) {
this.kryssreferanses.clear();
}
return addKryssreferanses(kryssreferanses);
}
/**
* Adds the given items to the value of "kryssreferanses"
*
* @param kryssreferanses
* Items to add to the value of the "kryssreferanses" property
*/
public Klasse.Builder<_B> addKryssreferanses(Kryssreferanse... kryssreferanses) {
addKryssreferanses(Arrays.asList(kryssreferanses));
return this;
}
/**
* Sets the new value of "kryssreferanses" (any previous value will be replaced)
*
* @param kryssreferanses
* New value of the "kryssreferanses" property.
*/
public Klasse.Builder<_B> withKryssreferanses(Kryssreferanse... kryssreferanses) {
withKryssreferanses(Arrays.asList(kryssreferanses));
return this;
}
/**
* Returns a new builder to build an additional value of the "Kryssreferanses"
* 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 "Kryssreferanses" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.Kryssreferanse.Builder#end()} to return
* to the current builder.
*/
public Kryssreferanse.Builder extends Klasse.Builder<_B>> addKryssreferanses() {
if (this.kryssreferanses == null) {
this.kryssreferanses = new ArrayList>>();
}
final Kryssreferanse.Builder> kryssreferanses_Builder = new Kryssreferanse.Builder>(this, null, false);
this.kryssreferanses.add(kryssreferanses_Builder);
return kryssreferanses_Builder;
}
/**
* Sets the new value of "kassasjon" (any previous value will be replaced)
*
* @param kassasjon
* New value of the "kassasjon" property.
*/
public Klasse.Builder<_B> withKassasjon(final Kassasjon kassasjon) {
this.kassasjon = ((kassasjon == null)?null:new Kassasjon.Builder>(this, kassasjon, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "kassasjon" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Kassasjon.Builder#end()} to
* return to the current builder.
*
* @return
* A new builder to build the value of the "kassasjon" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Kassasjon.Builder#end()} to
* return to the current builder.
*/
public Kassasjon.Builder extends Klasse.Builder<_B>> withKassasjon() {
if (this.kassasjon!= null) {
return this.kassasjon;
}
return this.kassasjon = new Kassasjon.Builder>(this, null, false);
}
/**
* Sets the new value of "skjerming" (any previous value will be replaced)
*
* @param skjerming
* New value of the "skjerming" property.
*/
public Klasse.Builder<_B> withSkjerming(final Skjerming skjerming) {
this.skjerming = ((skjerming == null)?null:new Skjerming.Builder>(this, skjerming, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "skjerming" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Skjerming.Builder#end()} to
* return to the current builder.
*
* @return
* A new builder to build the value of the "skjerming" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Skjerming.Builder#end()} to
* return to the current builder.
*/
public Skjerming.Builder extends Klasse.Builder<_B>> withSkjerming() {
if (this.skjerming!= null) {
return this.skjerming;
}
return this.skjerming = new Skjerming.Builder>(this, null, false);
}
/**
* Sets the new value of "gradering" (any previous value will be replaced)
*
* @param gradering
* New value of the "gradering" property.
*/
public Klasse.Builder<_B> withGradering(final Gradering gradering) {
this.gradering = ((gradering == null)?null:new Gradering.Builder>(this, gradering, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "gradering" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Gradering.Builder#end()} to
* return to the current builder.
*
* @return
* A new builder to build the value of the "gradering" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Gradering.Builder#end()} to
* return to the current builder.
*/
public Gradering.Builder extends Klasse.Builder<_B>> withGradering() {
if (this.gradering!= null) {
return this.gradering;
}
return this.gradering = new Gradering.Builder>(this, null, false);
}
/**
* Adds the given items to the value of "registrerings"
*
* @param registrerings
* Items to add to the value of the "registrerings" property
*/
public Klasse.Builder<_B> addRegistrerings(final Iterable extends Registrering> registrerings) {
if (registrerings!= null) {
if (this.registrerings == null) {
this.registrerings = new ArrayList>>();
}
for (Registrering _item: registrerings) {
this.registrerings.add(new Registrering.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "registrerings" (any previous value will be replaced)
*
* @param registrerings
* New value of the "registrerings" property.
*/
public Klasse.Builder<_B> withRegistrerings(final Iterable extends Registrering> registrerings) {
if (this.registrerings!= null) {
this.registrerings.clear();
}
return addRegistrerings(registrerings);
}
/**
* Adds the given items to the value of "registrerings"
*
* @param registrerings
* Items to add to the value of the "registrerings" property
*/
public Klasse.Builder<_B> addRegistrerings(Registrering... registrerings) {
addRegistrerings(Arrays.asList(registrerings));
return this;
}
/**
* Sets the new value of "registrerings" (any previous value will be replaced)
*
* @param registrerings
* New value of the "registrerings" property.
*/
public Klasse.Builder<_B> withRegistrerings(Registrering... registrerings) {
withRegistrerings(Arrays.asList(registrerings));
return this;
}
/**
* Returns a new builder to build an additional value of the "Registrerings"
* property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Registrering.Builder#end()}
* to return to the current builder.
*
* @return
* a new builder to build an additional value of the "Registrerings" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Registrering.Builder#end()}
* to return to the current builder.
*/
public Registrering.Builder extends Klasse.Builder<_B>> addRegistrerings() {
if (this.registrerings == null) {
this.registrerings = new ArrayList>>();
}
final Registrering.Builder> registrerings_Builder = new Registrering.Builder>(this, null, false);
this.registrerings.add(registrerings_Builder);
return registrerings_Builder;
}
/**
* Adds the given items to the value of "mappes"
*
* @param mappes
* Items to add to the value of the "mappes" property
*/
public Klasse.Builder<_B> addMappes(final Iterable extends Mappe> mappes) {
if (mappes!= null) {
if (this.mappes == null) {
this.mappes = new ArrayList>>();
}
for (Mappe _item: mappes) {
this.mappes.add(new Mappe.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "mappes" (any previous value will be replaced)
*
* @param mappes
* New value of the "mappes" property.
*/
public Klasse.Builder<_B> withMappes(final Iterable extends Mappe> mappes) {
if (this.mappes!= null) {
this.mappes.clear();
}
return addMappes(mappes);
}
/**
* Adds the given items to the value of "mappes"
*
* @param mappes
* Items to add to the value of the "mappes" property
*/
public Klasse.Builder<_B> addMappes(Mappe... mappes) {
addMappes(Arrays.asList(mappes));
return this;
}
/**
* Sets the new value of "mappes" (any previous value will be replaced)
*
* @param mappes
* New value of the "mappes" property.
*/
public Klasse.Builder<_B> withMappes(Mappe... mappes) {
withMappes(Arrays.asList(mappes));
return this;
}
/**
* Returns a new builder to build an additional value of the "Mappes" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Mappe.Builder#end()} to
* return to the current builder.
*
* @return
* a new builder to build an additional value of the "Mappes" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Mappe.Builder#end()} to
* return to the current builder.
*/
public Mappe.Builder extends Klasse.Builder<_B>> addMappes() {
if (this.mappes == null) {
this.mappes = new ArrayList>>();
}
final Mappe.Builder> mappes_Builder = new Mappe.Builder>(this, null, false);
this.mappes.add(mappes_Builder);
return mappes_Builder;
}
/**
* Adds the given items to the value of "klasses"
*
* @param klasses
* Items to add to the value of the "klasses" property
*/
public Klasse.Builder<_B> addKlasses(final Iterable extends Klasse> klasses) {
if (klasses!= null) {
if (this.klasses == null) {
this.klasses = new ArrayList>>();
}
for (Klasse _item: klasses) {
this.klasses.add(new Klasse.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "klasses" (any previous value will be replaced)
*
* @param klasses
* New value of the "klasses" property.
*/
public Klasse.Builder<_B> withKlasses(final Iterable extends Klasse> klasses) {
if (this.klasses!= null) {
this.klasses.clear();
}
return addKlasses(klasses);
}
/**
* Adds the given items to the value of "klasses"
*
* @param klasses
* Items to add to the value of the "klasses" property
*/
public Klasse.Builder<_B> addKlasses(Klasse... klasses) {
addKlasses(Arrays.asList(klasses));
return this;
}
/**
* Sets the new value of "klasses" (any previous value will be replaced)
*
* @param klasses
* New value of the "klasses" property.
*/
public Klasse.Builder<_B> withKlasses(Klasse... klasses) {
withKlasses(Arrays.asList(klasses));
return this;
}
/**
* Returns a new builder to build an additional value of the "Klasses" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Klasse.Builder#end()} to
* return to the current builder.
*
* @return
* a new builder to build an additional value of the "Klasses" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Klasse.Builder#end()} to
* return to the current builder.
*/
public Klasse.Builder extends Klasse.Builder<_B>> addKlasses() {
if (this.klasses == null) {
this.klasses = new ArrayList>>();
}
final Klasse.Builder> klasses_Builder = new Klasse.Builder>(this, null, false);
this.klasses.add(klasses_Builder);
return klasses_Builder;
}
@Override
public Klasse build() {
if (_storedValue == null) {
return this.init(new Klasse());
} else {
return ((Klasse) _storedValue);
}
}
public Klasse.Builder<_B> copyOf(final Klasse _other) {
_other.copyTo(this);
return this;
}
public Klasse.Builder<_B> copyOf(final Klasse.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Klasse.Selector
{
Select() {
super(null, null, null);
}
public static Klasse.Select _root() {
return new Klasse.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> klasseID = null;
private com.kscs.util.jaxb.Selector> tittel = null;
private com.kscs.util.jaxb.Selector> beskrivelse = null;
private com.kscs.util.jaxb.Selector> noekkelords = null;
private com.kscs.util.jaxb.Selector> opprettetDato = null;
private com.kscs.util.jaxb.Selector> opprettetAv = null;
private com.kscs.util.jaxb.Selector> avsluttetDato = null;
private com.kscs.util.jaxb.Selector> avsluttetAv = null;
private Kryssreferanse.Selector> kryssreferanses = null;
private Kassasjon.Selector> kassasjon = null;
private Skjerming.Selector> skjerming = null;
private Gradering.Selector> gradering = null;
private Registrering.Selector> registrerings = null;
private Mappe.Selector> mappes = null;
private Klasse.Selector> klasses = 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.klasseID!= null) {
products.put("klasseID", this.klasseID.init());
}
if (this.tittel!= null) {
products.put("tittel", this.tittel.init());
}
if (this.beskrivelse!= null) {
products.put("beskrivelse", this.beskrivelse.init());
}
if (this.noekkelords!= null) {
products.put("noekkelords", this.noekkelords.init());
}
if (this.opprettetDato!= null) {
products.put("opprettetDato", this.opprettetDato.init());
}
if (this.opprettetAv!= null) {
products.put("opprettetAv", this.opprettetAv.init());
}
if (this.avsluttetDato!= null) {
products.put("avsluttetDato", this.avsluttetDato.init());
}
if (this.avsluttetAv!= null) {
products.put("avsluttetAv", this.avsluttetAv.init());
}
if (this.kryssreferanses!= null) {
products.put("kryssreferanses", this.kryssreferanses.init());
}
if (this.kassasjon!= null) {
products.put("kassasjon", this.kassasjon.init());
}
if (this.skjerming!= null) {
products.put("skjerming", this.skjerming.init());
}
if (this.gradering!= null) {
products.put("gradering", this.gradering.init());
}
if (this.registrerings!= null) {
products.put("registrerings", this.registrerings.init());
}
if (this.mappes!= null) {
products.put("mappes", this.mappes.init());
}
if (this.klasses!= null) {
products.put("klasses", this.klasses.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> klasseID() {
return ((this.klasseID == null)?this.klasseID = new com.kscs.util.jaxb.Selector>(this._root, this, "klasseID"):this.klasseID);
}
public com.kscs.util.jaxb.Selector> tittel() {
return ((this.tittel == null)?this.tittel = new com.kscs.util.jaxb.Selector>(this._root, this, "tittel"):this.tittel);
}
public com.kscs.util.jaxb.Selector> beskrivelse() {
return ((this.beskrivelse == null)?this.beskrivelse = new com.kscs.util.jaxb.Selector>(this._root, this, "beskrivelse"):this.beskrivelse);
}
public com.kscs.util.jaxb.Selector> noekkelords() {
return ((this.noekkelords == null)?this.noekkelords = new com.kscs.util.jaxb.Selector>(this._root, this, "noekkelords"):this.noekkelords);
}
public com.kscs.util.jaxb.Selector> opprettetDato() {
return ((this.opprettetDato == null)?this.opprettetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetDato"):this.opprettetDato);
}
public com.kscs.util.jaxb.Selector> opprettetAv() {
return ((this.opprettetAv == null)?this.opprettetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetAv"):this.opprettetAv);
}
public com.kscs.util.jaxb.Selector> avsluttetDato() {
return ((this.avsluttetDato == null)?this.avsluttetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "avsluttetDato"):this.avsluttetDato);
}
public com.kscs.util.jaxb.Selector> avsluttetAv() {
return ((this.avsluttetAv == null)?this.avsluttetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "avsluttetAv"):this.avsluttetAv);
}
public Kryssreferanse.Selector> kryssreferanses() {
return ((this.kryssreferanses == null)?this.kryssreferanses = new Kryssreferanse.Selector>(this._root, this, "kryssreferanses"):this.kryssreferanses);
}
public Kassasjon.Selector> kassasjon() {
return ((this.kassasjon == null)?this.kassasjon = new Kassasjon.Selector>(this._root, this, "kassasjon"):this.kassasjon);
}
public Skjerming.Selector> skjerming() {
return ((this.skjerming == null)?this.skjerming = new Skjerming.Selector>(this._root, this, "skjerming"):this.skjerming);
}
public Gradering.Selector> gradering() {
return ((this.gradering == null)?this.gradering = new Gradering.Selector>(this._root, this, "gradering"):this.gradering);
}
public Registrering.Selector> registrerings() {
return ((this.registrerings == null)?this.registrerings = new Registrering.Selector>(this._root, this, "registrerings"):this.registrerings);
}
public Mappe.Selector> mappes() {
return ((this.mappes == null)?this.mappes = new Mappe.Selector>(this._root, this, "mappes"):this.mappes);
}
public Klasse.Selector> klasses() {
return ((this.klasses == null)?this.klasses = new Klasse.Selector>(this._root, this, "klasses"):this.klasses);
}
}
}