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

no.ks.fiks.arkiv.v1.arkivstruktur.Korrespondansepart 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.arkivstruktur;

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.arkivstruktur.metadatakatalog.AdministrativEnhet;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Korrespondanseparttype;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Saksbehandler;


/**
 * 

Java class for korrespondansepart complex type. * *

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

 * <complexType name="korrespondansepart">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="korrespondansepartID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}korrespondansepartID"/>
 *         <element name="korrespondanseparttype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}korrespondanseparttype"/>
 *         <element name="erBehandlingsansvarlig" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="korrespondansepartNavn" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}korrespondansepartNavn"/>
 *         <element name="postadresse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}postadresse" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="postnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}postnummer" minOccurs="0"/>
 *         <element name="poststed" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}poststed" minOccurs="0"/>
 *         <element name="land" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}land" minOccurs="0"/>
 *         <element name="epostadresse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}epostadresse" minOccurs="0"/>
 *         <element name="telefonnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}telefonnummer" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="kontaktperson" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}kontaktperson" minOccurs="0"/>
 *         <element name="administrativEnhet" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}administrativEnhet" minOccurs="0"/>
 *         <element name="saksbehandler" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}saksbehandler" minOccurs="0"/>
 *         <element name="avskrivning" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/v1}avskrivning" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "korrespondansepart", propOrder = { "korrespondansepartID", "korrespondanseparttype", "erBehandlingsansvarlig", "korrespondansepartNavn", "postadresses", "postnummer", "poststed", "land", "epostadresse", "telefonnummers", "kontaktperson", "administrativEnhet", "saksbehandler", "avskrivnings" }) public class Korrespondansepart { @XmlElement(required = true) protected String korrespondansepartID; @XmlElement(required = true) protected Korrespondanseparttype korrespondanseparttype; protected Boolean erBehandlingsansvarlig; @XmlElement(required = true) protected String korrespondansepartNavn; @XmlElement(name = "postadresse") protected List postadresses; protected String postnummer; protected String poststed; protected String land; protected String epostadresse; @XmlElement(name = "telefonnummer") protected List telefonnummers; protected String kontaktperson; protected AdministrativEnhet administrativEnhet; protected Saksbehandler saksbehandler; @XmlElement(name = "avskrivning") protected List avskrivnings; /** * Gets the value of the korrespondansepartID property. * * @return * possible object is * {@link String } * */ public String getKorrespondansepartID() { return korrespondansepartID; } /** * Sets the value of the korrespondansepartID property. * * @param value * allowed object is * {@link String } * */ public void setKorrespondansepartID(String value) { this.korrespondansepartID = value; } /** * Gets the value of the korrespondanseparttype property. * * @return * possible object is * {@link Korrespondanseparttype } * */ public Korrespondanseparttype getKorrespondanseparttype() { return korrespondanseparttype; } /** * Sets the value of the korrespondanseparttype property. * * @param value * allowed object is * {@link Korrespondanseparttype } * */ public void setKorrespondanseparttype(Korrespondanseparttype value) { this.korrespondanseparttype = value; } /** * Gets the value of the erBehandlingsansvarlig property. * * @return * possible object is * {@link Boolean } * */ public Boolean isErBehandlingsansvarlig() { return erBehandlingsansvarlig; } /** * Sets the value of the erBehandlingsansvarlig property. * * @param value * allowed object is * {@link Boolean } * */ public void setErBehandlingsansvarlig(Boolean value) { this.erBehandlingsansvarlig = value; } /** * Gets the value of the korrespondansepartNavn property. * * @return * possible object is * {@link String } * */ public String getKorrespondansepartNavn() { return korrespondansepartNavn; } /** * Sets the value of the korrespondansepartNavn property. * * @param value * allowed object is * {@link String } * */ public void setKorrespondansepartNavn(String value) { this.korrespondansepartNavn = value; } /** * Gets the value of the postadresses 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 postadresses property. * *

* For example, to add a new item, do as follows: *

     *    getPostadresses().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getPostadresses() { if (postadresses == null) { postadresses = new ArrayList(); } return this.postadresses; } /** * Gets the value of the postnummer property. * * @return * possible object is * {@link String } * */ public String getPostnummer() { return postnummer; } /** * Sets the value of the postnummer property. * * @param value * allowed object is * {@link String } * */ public void setPostnummer(String value) { this.postnummer = value; } /** * Gets the value of the poststed property. * * @return * possible object is * {@link String } * */ public String getPoststed() { return poststed; } /** * Sets the value of the poststed property. * * @param value * allowed object is * {@link String } * */ public void setPoststed(String value) { this.poststed = value; } /** * Gets the value of the land property. * * @return * possible object is * {@link String } * */ public String getLand() { return land; } /** * Sets the value of the land property. * * @param value * allowed object is * {@link String } * */ public void setLand(String value) { this.land = value; } /** * Gets the value of the epostadresse property. * * @return * possible object is * {@link String } * */ public String getEpostadresse() { return epostadresse; } /** * Sets the value of the epostadresse property. * * @param value * allowed object is * {@link String } * */ public void setEpostadresse(String value) { this.epostadresse = value; } /** * Gets the value of the telefonnummers 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 telefonnummers property. * *

* For example, to add a new item, do as follows: *

     *    getTelefonnummers().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getTelefonnummers() { if (telefonnummers == null) { telefonnummers = new ArrayList(); } return this.telefonnummers; } /** * Gets the value of the kontaktperson property. * * @return * possible object is * {@link String } * */ public String getKontaktperson() { return kontaktperson; } /** * Sets the value of the kontaktperson property. * * @param value * allowed object is * {@link String } * */ public void setKontaktperson(String value) { this.kontaktperson = value; } /** * Gets the value of the administrativEnhet property. * * @return * possible object is * {@link AdministrativEnhet } * */ public AdministrativEnhet getAdministrativEnhet() { return administrativEnhet; } /** * Sets the value of the administrativEnhet property. * * @param value * allowed object is * {@link AdministrativEnhet } * */ public void setAdministrativEnhet(AdministrativEnhet value) { this.administrativEnhet = value; } /** * Gets the value of the saksbehandler property. * * @return * possible object is * {@link Saksbehandler } * */ public Saksbehandler getSaksbehandler() { return saksbehandler; } /** * Sets the value of the saksbehandler property. * * @param value * allowed object is * {@link Saksbehandler } * */ public void setSaksbehandler(Saksbehandler value) { this.saksbehandler = value; } /** * Gets the value of the avskrivnings 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 avskrivnings property. * *

* For example, to add a new item, do as follows: *

     *    getAvskrivnings().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Avskrivning } * * */ public List getAvskrivnings() { if (avskrivnings == null) { avskrivnings = new ArrayList(); } return this.avskrivnings; } /** * 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 Korrespondansepart.Builder<_B> _other) { _other.korrespondansepartID = this.korrespondansepartID; _other.korrespondanseparttype = ((this.korrespondanseparttype == null)?null:this.korrespondanseparttype.newCopyBuilder(_other)); _other.erBehandlingsansvarlig = this.erBehandlingsansvarlig; _other.korrespondansepartNavn = this.korrespondansepartNavn; if (this.postadresses == null) { _other.postadresses = null; } else { _other.postadresses = new ArrayList(); for (String _item: this.postadresses) { _other.postadresses.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } _other.postnummer = this.postnummer; _other.poststed = this.poststed; _other.land = this.land; _other.epostadresse = this.epostadresse; if (this.telefonnummers == null) { _other.telefonnummers = null; } else { _other.telefonnummers = new ArrayList(); for (String _item: this.telefonnummers) { _other.telefonnummers.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } _other.kontaktperson = this.kontaktperson; _other.administrativEnhet = ((this.administrativEnhet == null)?null:this.administrativEnhet.newCopyBuilder(_other)); _other.saksbehandler = ((this.saksbehandler == null)?null:this.saksbehandler.newCopyBuilder(_other)); if (this.avskrivnings == null) { _other.avskrivnings = null; } else { _other.avskrivnings = new ArrayList>>(); for (Avskrivning _item: this.avskrivnings) { _other.avskrivnings.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >Korrespondansepart.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Korrespondansepart.Builder<_B>(_parentBuilder, this, true); } public Korrespondansepart.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Korrespondansepart.Builder builder() { return new Korrespondansepart.Builder(null, null, false); } public static<_B >Korrespondansepart.Builder<_B> copyOf(final Korrespondansepart _other) { final Korrespondansepart.Builder<_B> _newBuilder = new Korrespondansepart.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 Korrespondansepart.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree korrespondansepartIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondansepartID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartIDPropertyTree!= null):((korrespondansepartIDPropertyTree == null)||(!korrespondansepartIDPropertyTree.isLeaf())))) { _other.korrespondansepartID = this.korrespondansepartID; } final PropertyTree korrespondanseparttypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondanseparttype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondanseparttypePropertyTree!= null):((korrespondanseparttypePropertyTree == null)||(!korrespondanseparttypePropertyTree.isLeaf())))) { _other.korrespondanseparttype = ((this.korrespondanseparttype == null)?null:this.korrespondanseparttype.newCopyBuilder(_other, korrespondanseparttypePropertyTree, _propertyTreeUse)); } final PropertyTree erBehandlingsansvarligPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erBehandlingsansvarlig")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erBehandlingsansvarligPropertyTree!= null):((erBehandlingsansvarligPropertyTree == null)||(!erBehandlingsansvarligPropertyTree.isLeaf())))) { _other.erBehandlingsansvarlig = this.erBehandlingsansvarlig; } final PropertyTree korrespondansepartNavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondansepartNavn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartNavnPropertyTree!= null):((korrespondansepartNavnPropertyTree == null)||(!korrespondansepartNavnPropertyTree.isLeaf())))) { _other.korrespondansepartNavn = this.korrespondansepartNavn; } final PropertyTree postadressesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("postadresses")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(postadressesPropertyTree!= null):((postadressesPropertyTree == null)||(!postadressesPropertyTree.isLeaf())))) { if (this.postadresses == null) { _other.postadresses = null; } else { _other.postadresses = new ArrayList(); for (String _item: this.postadresses) { _other.postadresses.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } final PropertyTree postnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("postnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(postnummerPropertyTree!= null):((postnummerPropertyTree == null)||(!postnummerPropertyTree.isLeaf())))) { _other.postnummer = this.postnummer; } final PropertyTree poststedPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("poststed")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(poststedPropertyTree!= null):((poststedPropertyTree == null)||(!poststedPropertyTree.isLeaf())))) { _other.poststed = this.poststed; } final PropertyTree landPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("land")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(landPropertyTree!= null):((landPropertyTree == null)||(!landPropertyTree.isLeaf())))) { _other.land = this.land; } final PropertyTree epostadressePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("epostadresse")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(epostadressePropertyTree!= null):((epostadressePropertyTree == null)||(!epostadressePropertyTree.isLeaf())))) { _other.epostadresse = this.epostadresse; } final PropertyTree telefonnummersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("telefonnummers")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(telefonnummersPropertyTree!= null):((telefonnummersPropertyTree == null)||(!telefonnummersPropertyTree.isLeaf())))) { if (this.telefonnummers == null) { _other.telefonnummers = null; } else { _other.telefonnummers = new ArrayList(); for (String _item: this.telefonnummers) { _other.telefonnummers.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } final PropertyTree kontaktpersonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kontaktperson")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kontaktpersonPropertyTree!= null):((kontaktpersonPropertyTree == null)||(!kontaktpersonPropertyTree.isLeaf())))) { _other.kontaktperson = this.kontaktperson; } final PropertyTree administrativEnhetPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("administrativEnhet")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(administrativEnhetPropertyTree!= null):((administrativEnhetPropertyTree == null)||(!administrativEnhetPropertyTree.isLeaf())))) { _other.administrativEnhet = ((this.administrativEnhet == null)?null:this.administrativEnhet.newCopyBuilder(_other, administrativEnhetPropertyTree, _propertyTreeUse)); } final PropertyTree saksbehandlerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("saksbehandler")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(saksbehandlerPropertyTree!= null):((saksbehandlerPropertyTree == null)||(!saksbehandlerPropertyTree.isLeaf())))) { _other.saksbehandler = ((this.saksbehandler == null)?null:this.saksbehandler.newCopyBuilder(_other, saksbehandlerPropertyTree, _propertyTreeUse)); } final PropertyTree avskrivningsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrivnings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrivningsPropertyTree!= null):((avskrivningsPropertyTree == null)||(!avskrivningsPropertyTree.isLeaf())))) { if (this.avskrivnings == null) { _other.avskrivnings = null; } else { _other.avskrivnings = new ArrayList>>(); for (Avskrivning _item: this.avskrivnings) { _other.avskrivnings.add(((_item == null)?null:_item.newCopyBuilder(_other, avskrivningsPropertyTree, _propertyTreeUse))); } } } } public<_B >Korrespondansepart.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Korrespondansepart.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Korrespondansepart.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Korrespondansepart.Builder<_B> copyOf(final Korrespondansepart _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Korrespondansepart.Builder<_B> _newBuilder = new Korrespondansepart.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Korrespondansepart.Builder copyExcept(final Korrespondansepart _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Korrespondansepart.Builder copyOnly(final Korrespondansepart _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Korrespondansepart _storedValue; private String korrespondansepartID; private Korrespondanseparttype.Builder> korrespondanseparttype; private Boolean erBehandlingsansvarlig; private String korrespondansepartNavn; private List postadresses; private String postnummer; private String poststed; private String land; private String epostadresse; private List telefonnummers; private String kontaktperson; private AdministrativEnhet.Builder> administrativEnhet; private Saksbehandler.Builder> saksbehandler; private List>> avskrivnings; public Builder(final _B _parentBuilder, final Korrespondansepart _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.korrespondansepartID = _other.korrespondansepartID; this.korrespondanseparttype = ((_other.korrespondanseparttype == null)?null:_other.korrespondanseparttype.newCopyBuilder(this)); this.erBehandlingsansvarlig = _other.erBehandlingsansvarlig; this.korrespondansepartNavn = _other.korrespondansepartNavn; if (_other.postadresses == null) { this.postadresses = null; } else { this.postadresses = new ArrayList(); for (String _item: _other.postadresses) { this.postadresses.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } this.postnummer = _other.postnummer; this.poststed = _other.poststed; this.land = _other.land; this.epostadresse = _other.epostadresse; if (_other.telefonnummers == null) { this.telefonnummers = null; } else { this.telefonnummers = new ArrayList(); for (String _item: _other.telefonnummers) { this.telefonnummers.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } this.kontaktperson = _other.kontaktperson; this.administrativEnhet = ((_other.administrativEnhet == null)?null:_other.administrativEnhet.newCopyBuilder(this)); this.saksbehandler = ((_other.saksbehandler == null)?null:_other.saksbehandler.newCopyBuilder(this)); if (_other.avskrivnings == null) { this.avskrivnings = null; } else { this.avskrivnings = new ArrayList>>(); for (Avskrivning _item: _other.avskrivnings) { this.avskrivnings.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Korrespondansepart _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree korrespondansepartIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondansepartID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartIDPropertyTree!= null):((korrespondansepartIDPropertyTree == null)||(!korrespondansepartIDPropertyTree.isLeaf())))) { this.korrespondansepartID = _other.korrespondansepartID; } final PropertyTree korrespondanseparttypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondanseparttype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondanseparttypePropertyTree!= null):((korrespondanseparttypePropertyTree == null)||(!korrespondanseparttypePropertyTree.isLeaf())))) { this.korrespondanseparttype = ((_other.korrespondanseparttype == null)?null:_other.korrespondanseparttype.newCopyBuilder(this, korrespondanseparttypePropertyTree, _propertyTreeUse)); } final PropertyTree erBehandlingsansvarligPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erBehandlingsansvarlig")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erBehandlingsansvarligPropertyTree!= null):((erBehandlingsansvarligPropertyTree == null)||(!erBehandlingsansvarligPropertyTree.isLeaf())))) { this.erBehandlingsansvarlig = _other.erBehandlingsansvarlig; } final PropertyTree korrespondansepartNavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondansepartNavn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartNavnPropertyTree!= null):((korrespondansepartNavnPropertyTree == null)||(!korrespondansepartNavnPropertyTree.isLeaf())))) { this.korrespondansepartNavn = _other.korrespondansepartNavn; } final PropertyTree postadressesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("postadresses")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(postadressesPropertyTree!= null):((postadressesPropertyTree == null)||(!postadressesPropertyTree.isLeaf())))) { if (_other.postadresses == null) { this.postadresses = null; } else { this.postadresses = new ArrayList(); for (String _item: _other.postadresses) { this.postadresses.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } final PropertyTree postnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("postnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(postnummerPropertyTree!= null):((postnummerPropertyTree == null)||(!postnummerPropertyTree.isLeaf())))) { this.postnummer = _other.postnummer; } final PropertyTree poststedPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("poststed")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(poststedPropertyTree!= null):((poststedPropertyTree == null)||(!poststedPropertyTree.isLeaf())))) { this.poststed = _other.poststed; } final PropertyTree landPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("land")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(landPropertyTree!= null):((landPropertyTree == null)||(!landPropertyTree.isLeaf())))) { this.land = _other.land; } final PropertyTree epostadressePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("epostadresse")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(epostadressePropertyTree!= null):((epostadressePropertyTree == null)||(!epostadressePropertyTree.isLeaf())))) { this.epostadresse = _other.epostadresse; } final PropertyTree telefonnummersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("telefonnummers")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(telefonnummersPropertyTree!= null):((telefonnummersPropertyTree == null)||(!telefonnummersPropertyTree.isLeaf())))) { if (_other.telefonnummers == null) { this.telefonnummers = null; } else { this.telefonnummers = new ArrayList(); for (String _item: _other.telefonnummers) { this.telefonnummers.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } final PropertyTree kontaktpersonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kontaktperson")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kontaktpersonPropertyTree!= null):((kontaktpersonPropertyTree == null)||(!kontaktpersonPropertyTree.isLeaf())))) { this.kontaktperson = _other.kontaktperson; } final PropertyTree administrativEnhetPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("administrativEnhet")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(administrativEnhetPropertyTree!= null):((administrativEnhetPropertyTree == null)||(!administrativEnhetPropertyTree.isLeaf())))) { this.administrativEnhet = ((_other.administrativEnhet == null)?null:_other.administrativEnhet.newCopyBuilder(this, administrativEnhetPropertyTree, _propertyTreeUse)); } final PropertyTree saksbehandlerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("saksbehandler")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(saksbehandlerPropertyTree!= null):((saksbehandlerPropertyTree == null)||(!saksbehandlerPropertyTree.isLeaf())))) { this.saksbehandler = ((_other.saksbehandler == null)?null:_other.saksbehandler.newCopyBuilder(this, saksbehandlerPropertyTree, _propertyTreeUse)); } final PropertyTree avskrivningsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrivnings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrivningsPropertyTree!= null):((avskrivningsPropertyTree == null)||(!avskrivningsPropertyTree.isLeaf())))) { if (_other.avskrivnings == null) { this.avskrivnings = null; } else { this.avskrivnings = new ArrayList>>(); for (Avskrivning _item: _other.avskrivnings) { this.avskrivnings.add(((_item == null)?null:_item.newCopyBuilder(this, avskrivningsPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Korrespondansepart >_P init(final _P _product) { _product.korrespondansepartID = this.korrespondansepartID; _product.korrespondanseparttype = ((this.korrespondanseparttype == null)?null:this.korrespondanseparttype.build()); _product.erBehandlingsansvarlig = this.erBehandlingsansvarlig; _product.korrespondansepartNavn = this.korrespondansepartNavn; if (this.postadresses!= null) { final List postadresses = new ArrayList(this.postadresses.size()); for (Buildable _item: this.postadresses) { postadresses.add(((String) _item.build())); } _product.postadresses = postadresses; } _product.postnummer = this.postnummer; _product.poststed = this.poststed; _product.land = this.land; _product.epostadresse = this.epostadresse; if (this.telefonnummers!= null) { final List telefonnummers = new ArrayList(this.telefonnummers.size()); for (Buildable _item: this.telefonnummers) { telefonnummers.add(((String) _item.build())); } _product.telefonnummers = telefonnummers; } _product.kontaktperson = this.kontaktperson; _product.administrativEnhet = ((this.administrativEnhet == null)?null:this.administrativEnhet.build()); _product.saksbehandler = ((this.saksbehandler == null)?null:this.saksbehandler.build()); if (this.avskrivnings!= null) { final List avskrivnings = new ArrayList(this.avskrivnings.size()); for (Avskrivning.Builder> _item: this.avskrivnings) { avskrivnings.add(_item.build()); } _product.avskrivnings = avskrivnings; } return _product; } /** * Sets the new value of "korrespondansepartID" (any previous value will be * replaced) * * @param korrespondansepartID * New value of the "korrespondansepartID" property. */ public Korrespondansepart.Builder<_B> withKorrespondansepartID(final String korrespondansepartID) { this.korrespondansepartID = korrespondansepartID; return this; } /** * Sets the new value of "korrespondanseparttype" (any previous value will be * replaced) * * @param korrespondanseparttype * New value of the "korrespondanseparttype" property. */ public Korrespondansepart.Builder<_B> withKorrespondanseparttype(final Korrespondanseparttype korrespondanseparttype) { this.korrespondanseparttype = ((korrespondanseparttype == null)?null:new Korrespondanseparttype.Builder>(this, korrespondanseparttype, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "korrespondanseparttype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Korrespondanseparttype.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "korrespondanseparttype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Korrespondanseparttype.Builder#end()} * to return to the current builder. */ public Korrespondanseparttype.Builder> withKorrespondanseparttype() { if (this.korrespondanseparttype!= null) { return this.korrespondanseparttype; } return this.korrespondanseparttype = new Korrespondanseparttype.Builder>(this, null, false); } /** * Sets the new value of "erBehandlingsansvarlig" (any previous value will be * replaced) * * @param erBehandlingsansvarlig * New value of the "erBehandlingsansvarlig" property. */ public Korrespondansepart.Builder<_B> withErBehandlingsansvarlig(final Boolean erBehandlingsansvarlig) { this.erBehandlingsansvarlig = erBehandlingsansvarlig; return this; } /** * Sets the new value of "korrespondansepartNavn" (any previous value will be * replaced) * * @param korrespondansepartNavn * New value of the "korrespondansepartNavn" property. */ public Korrespondansepart.Builder<_B> withKorrespondansepartNavn(final String korrespondansepartNavn) { this.korrespondansepartNavn = korrespondansepartNavn; return this; } /** * Adds the given items to the value of "postadresses" * * @param postadresses * Items to add to the value of the "postadresses" property */ public Korrespondansepart.Builder<_B> addPostadresses(final Iterable postadresses) { if (postadresses!= null) { if (this.postadresses == null) { this.postadresses = new ArrayList(); } for (String _item: postadresses) { this.postadresses.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Sets the new value of "postadresses" (any previous value will be replaced) * * @param postadresses * New value of the "postadresses" property. */ public Korrespondansepart.Builder<_B> withPostadresses(final Iterable postadresses) { if (this.postadresses!= null) { this.postadresses.clear(); } return addPostadresses(postadresses); } /** * Adds the given items to the value of "postadresses" * * @param postadresses * Items to add to the value of the "postadresses" property */ public Korrespondansepart.Builder<_B> addPostadresses(String... postadresses) { addPostadresses(Arrays.asList(postadresses)); return this; } /** * Sets the new value of "postadresses" (any previous value will be replaced) * * @param postadresses * New value of the "postadresses" property. */ public Korrespondansepart.Builder<_B> withPostadresses(String... postadresses) { withPostadresses(Arrays.asList(postadresses)); return this; } /** * Sets the new value of "postnummer" (any previous value will be replaced) * * @param postnummer * New value of the "postnummer" property. */ public Korrespondansepart.Builder<_B> withPostnummer(final String postnummer) { this.postnummer = postnummer; return this; } /** * Sets the new value of "poststed" (any previous value will be replaced) * * @param poststed * New value of the "poststed" property. */ public Korrespondansepart.Builder<_B> withPoststed(final String poststed) { this.poststed = poststed; return this; } /** * Sets the new value of "land" (any previous value will be replaced) * * @param land * New value of the "land" property. */ public Korrespondansepart.Builder<_B> withLand(final String land) { this.land = land; return this; } /** * Sets the new value of "epostadresse" (any previous value will be replaced) * * @param epostadresse * New value of the "epostadresse" property. */ public Korrespondansepart.Builder<_B> withEpostadresse(final String epostadresse) { this.epostadresse = epostadresse; return this; } /** * Adds the given items to the value of "telefonnummers" * * @param telefonnummers * Items to add to the value of the "telefonnummers" property */ public Korrespondansepart.Builder<_B> addTelefonnummers(final Iterable telefonnummers) { if (telefonnummers!= null) { if (this.telefonnummers == null) { this.telefonnummers = new ArrayList(); } for (String _item: telefonnummers) { this.telefonnummers.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Sets the new value of "telefonnummers" (any previous value will be replaced) * * @param telefonnummers * New value of the "telefonnummers" property. */ public Korrespondansepart.Builder<_B> withTelefonnummers(final Iterable telefonnummers) { if (this.telefonnummers!= null) { this.telefonnummers.clear(); } return addTelefonnummers(telefonnummers); } /** * Adds the given items to the value of "telefonnummers" * * @param telefonnummers * Items to add to the value of the "telefonnummers" property */ public Korrespondansepart.Builder<_B> addTelefonnummers(String... telefonnummers) { addTelefonnummers(Arrays.asList(telefonnummers)); return this; } /** * Sets the new value of "telefonnummers" (any previous value will be replaced) * * @param telefonnummers * New value of the "telefonnummers" property. */ public Korrespondansepart.Builder<_B> withTelefonnummers(String... telefonnummers) { withTelefonnummers(Arrays.asList(telefonnummers)); return this; } /** * Sets the new value of "kontaktperson" (any previous value will be replaced) * * @param kontaktperson * New value of the "kontaktperson" property. */ public Korrespondansepart.Builder<_B> withKontaktperson(final String kontaktperson) { this.kontaktperson = kontaktperson; return this; } /** * Sets the new value of "administrativEnhet" (any previous value will be replaced) * * @param administrativEnhet * New value of the "administrativEnhet" property. */ public Korrespondansepart.Builder<_B> withAdministrativEnhet(final AdministrativEnhet administrativEnhet) { this.administrativEnhet = ((administrativEnhet == null)?null:new AdministrativEnhet.Builder>(this, administrativEnhet, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "administrativEnhet" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.AdministrativEnhet.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "administrativEnhet" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.AdministrativEnhet.Builder#end()} * to return to the current builder. */ public AdministrativEnhet.Builder> withAdministrativEnhet() { if (this.administrativEnhet!= null) { return this.administrativEnhet; } return this.administrativEnhet = new AdministrativEnhet.Builder>(this, null, false); } /** * Sets the new value of "saksbehandler" (any previous value will be replaced) * * @param saksbehandler * New value of the "saksbehandler" property. */ public Korrespondansepart.Builder<_B> withSaksbehandler(final Saksbehandler saksbehandler) { this.saksbehandler = ((saksbehandler == null)?null:new Saksbehandler.Builder>(this, saksbehandler, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "saksbehandler" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Saksbehandler.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "saksbehandler" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Saksbehandler.Builder#end()} * to return to the current builder. */ public Saksbehandler.Builder> withSaksbehandler() { if (this.saksbehandler!= null) { return this.saksbehandler; } return this.saksbehandler = new Saksbehandler.Builder>(this, null, false); } /** * Adds the given items to the value of "avskrivnings" * * @param avskrivnings * Items to add to the value of the "avskrivnings" property */ public Korrespondansepart.Builder<_B> addAvskrivnings(final Iterable avskrivnings) { if (avskrivnings!= null) { if (this.avskrivnings == null) { this.avskrivnings = new ArrayList>>(); } for (Avskrivning _item: avskrivnings) { this.avskrivnings.add(new Avskrivning.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "avskrivnings" (any previous value will be replaced) * * @param avskrivnings * New value of the "avskrivnings" property. */ public Korrespondansepart.Builder<_B> withAvskrivnings(final Iterable avskrivnings) { if (this.avskrivnings!= null) { this.avskrivnings.clear(); } return addAvskrivnings(avskrivnings); } /** * Adds the given items to the value of "avskrivnings" * * @param avskrivnings * Items to add to the value of the "avskrivnings" property */ public Korrespondansepart.Builder<_B> addAvskrivnings(Avskrivning... avskrivnings) { addAvskrivnings(Arrays.asList(avskrivnings)); return this; } /** * Sets the new value of "avskrivnings" (any previous value will be replaced) * * @param avskrivnings * New value of the "avskrivnings" property. */ public Korrespondansepart.Builder<_B> withAvskrivnings(Avskrivning... avskrivnings) { withAvskrivnings(Arrays.asList(avskrivnings)); return this; } /** * Returns a new builder to build an additional value of the "Avskrivnings" * property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.Avskrivning.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Avskrivnings" property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.Avskrivning.Builder#end()} to * return to the current builder. */ public Avskrivning.Builder> addAvskrivnings() { if (this.avskrivnings == null) { this.avskrivnings = new ArrayList>>(); } final Avskrivning.Builder> avskrivnings_Builder = new Avskrivning.Builder>(this, null, false); this.avskrivnings.add(avskrivnings_Builder); return avskrivnings_Builder; } @Override public Korrespondansepart build() { if (_storedValue == null) { return this.init(new Korrespondansepart()); } else { return ((Korrespondansepart) _storedValue); } } public Korrespondansepart.Builder<_B> copyOf(final Korrespondansepart _other) { _other.copyTo(this); return this; } public Korrespondansepart.Builder<_B> copyOf(final Korrespondansepart.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Korrespondansepart.Selector { Select() { super(null, null, null); } public static Korrespondansepart.Select _root() { return new Korrespondansepart.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> korrespondansepartID = null; private Korrespondanseparttype.Selector> korrespondanseparttype = null; private com.kscs.util.jaxb.Selector> erBehandlingsansvarlig = null; private com.kscs.util.jaxb.Selector> korrespondansepartNavn = null; private com.kscs.util.jaxb.Selector> postadresses = null; private com.kscs.util.jaxb.Selector> postnummer = null; private com.kscs.util.jaxb.Selector> poststed = null; private com.kscs.util.jaxb.Selector> land = null; private com.kscs.util.jaxb.Selector> epostadresse = null; private com.kscs.util.jaxb.Selector> telefonnummers = null; private com.kscs.util.jaxb.Selector> kontaktperson = null; private AdministrativEnhet.Selector> administrativEnhet = null; private Saksbehandler.Selector> saksbehandler = null; private Avskrivning.Selector> avskrivnings = 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.korrespondansepartID!= null) { products.put("korrespondansepartID", this.korrespondansepartID.init()); } if (this.korrespondanseparttype!= null) { products.put("korrespondanseparttype", this.korrespondanseparttype.init()); } if (this.erBehandlingsansvarlig!= null) { products.put("erBehandlingsansvarlig", this.erBehandlingsansvarlig.init()); } if (this.korrespondansepartNavn!= null) { products.put("korrespondansepartNavn", this.korrespondansepartNavn.init()); } if (this.postadresses!= null) { products.put("postadresses", this.postadresses.init()); } if (this.postnummer!= null) { products.put("postnummer", this.postnummer.init()); } if (this.poststed!= null) { products.put("poststed", this.poststed.init()); } if (this.land!= null) { products.put("land", this.land.init()); } if (this.epostadresse!= null) { products.put("epostadresse", this.epostadresse.init()); } if (this.telefonnummers!= null) { products.put("telefonnummers", this.telefonnummers.init()); } if (this.kontaktperson!= null) { products.put("kontaktperson", this.kontaktperson.init()); } if (this.administrativEnhet!= null) { products.put("administrativEnhet", this.administrativEnhet.init()); } if (this.saksbehandler!= null) { products.put("saksbehandler", this.saksbehandler.init()); } if (this.avskrivnings!= null) { products.put("avskrivnings", this.avskrivnings.init()); } return products; } public com.kscs.util.jaxb.Selector> korrespondansepartID() { return ((this.korrespondansepartID == null)?this.korrespondansepartID = new com.kscs.util.jaxb.Selector>(this._root, this, "korrespondansepartID"):this.korrespondansepartID); } public Korrespondanseparttype.Selector> korrespondanseparttype() { return ((this.korrespondanseparttype == null)?this.korrespondanseparttype = new Korrespondanseparttype.Selector>(this._root, this, "korrespondanseparttype"):this.korrespondanseparttype); } public com.kscs.util.jaxb.Selector> erBehandlingsansvarlig() { return ((this.erBehandlingsansvarlig == null)?this.erBehandlingsansvarlig = new com.kscs.util.jaxb.Selector>(this._root, this, "erBehandlingsansvarlig"):this.erBehandlingsansvarlig); } public com.kscs.util.jaxb.Selector> korrespondansepartNavn() { return ((this.korrespondansepartNavn == null)?this.korrespondansepartNavn = new com.kscs.util.jaxb.Selector>(this._root, this, "korrespondansepartNavn"):this.korrespondansepartNavn); } public com.kscs.util.jaxb.Selector> postadresses() { return ((this.postadresses == null)?this.postadresses = new com.kscs.util.jaxb.Selector>(this._root, this, "postadresses"):this.postadresses); } public com.kscs.util.jaxb.Selector> postnummer() { return ((this.postnummer == null)?this.postnummer = new com.kscs.util.jaxb.Selector>(this._root, this, "postnummer"):this.postnummer); } public com.kscs.util.jaxb.Selector> poststed() { return ((this.poststed == null)?this.poststed = new com.kscs.util.jaxb.Selector>(this._root, this, "poststed"):this.poststed); } public com.kscs.util.jaxb.Selector> land() { return ((this.land == null)?this.land = new com.kscs.util.jaxb.Selector>(this._root, this, "land"):this.land); } public com.kscs.util.jaxb.Selector> epostadresse() { return ((this.epostadresse == null)?this.epostadresse = new com.kscs.util.jaxb.Selector>(this._root, this, "epostadresse"):this.epostadresse); } public com.kscs.util.jaxb.Selector> telefonnummers() { return ((this.telefonnummers == null)?this.telefonnummers = new com.kscs.util.jaxb.Selector>(this._root, this, "telefonnummers"):this.telefonnummers); } public com.kscs.util.jaxb.Selector> kontaktperson() { return ((this.kontaktperson == null)?this.kontaktperson = new com.kscs.util.jaxb.Selector>(this._root, this, "kontaktperson"):this.kontaktperson); } public AdministrativEnhet.Selector> administrativEnhet() { return ((this.administrativEnhet == null)?this.administrativEnhet = new AdministrativEnhet.Selector>(this._root, this, "administrativEnhet"):this.administrativEnhet); } public Saksbehandler.Selector> saksbehandler() { return ((this.saksbehandler == null)?this.saksbehandler = new Saksbehandler.Selector>(this._root, this, "saksbehandler"):this.saksbehandler); } public Avskrivning.Selector> avskrivnings() { return ((this.avskrivnings == null)?this.avskrivnings = new Avskrivning.Selector>(this._root, this, "avskrivnings"):this.avskrivnings); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy