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

no.ks.fiks.arkiv.v1.arkivmelding.oppdater.PartOppdatering Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.6 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.06.23 at 10:32:49 AM CEST 
//


package no.ks.fiks.arkiv.v1.arkivmelding.oppdater;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.PartRolle;


/**
 * 

Java class for partOppdatering complex type. * *

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

 * <complexType name="partOppdatering">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="partID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}partID"/>
 *         <element name="partNavn" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}partNavn" minOccurs="0"/>
 *         <element name="partRolle" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}partRolle" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="organisasjonid" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}organisasjonid" minOccurs="0"/>
 *           <element name="personid" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}personid" minOccurs="0"/>
 *         </choice>
 *         <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="virksomhetsspesifikkeMetadata" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
 *         <element name="erSkjermet" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}erSkjermet" minOccurs="0"/>
 *         <element name="erPersonnavn" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}erPersonnavn" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "partOppdatering", propOrder = { "partID", "partNavn", "partRolle", "personid", "organisasjonid", "postadresses", "postnummer", "poststed", "land", "epostadresse", "telefonnummers", "kontaktperson", "virksomhetsspesifikkeMetadata", "erSkjermet", "erPersonnavn" }) public class PartOppdatering { @XmlElement(required = true) protected String partID; protected String partNavn; protected PartRolle partRolle; protected String personid; protected String organisasjonid; @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 Object virksomhetsspesifikkeMetadata; protected Boolean erSkjermet; protected String erPersonnavn; /** * Gets the value of the partID property. * * @return * possible object is * {@link String } * */ public String getPartID() { return partID; } /** * Sets the value of the partID property. * * @param value * allowed object is * {@link String } * */ public void setPartID(String value) { this.partID = value; } /** * Gets the value of the partNavn property. * * @return * possible object is * {@link String } * */ public String getPartNavn() { return partNavn; } /** * Sets the value of the partNavn property. * * @param value * allowed object is * {@link String } * */ public void setPartNavn(String value) { this.partNavn = value; } /** * Gets the value of the partRolle property. * * @return * possible object is * {@link PartRolle } * */ public PartRolle getPartRolle() { return partRolle; } /** * Sets the value of the partRolle property. * * @param value * allowed object is * {@link PartRolle } * */ public void setPartRolle(PartRolle value) { this.partRolle = value; } /** * Gets the value of the personid property. * * @return * possible object is * {@link String } * */ public String getPersonid() { return personid; } /** * Sets the value of the personid property. * * @param value * allowed object is * {@link String } * */ public void setPersonid(String value) { this.personid = value; } /** * Gets the value of the organisasjonid property. * * @return * possible object is * {@link String } * */ public String getOrganisasjonid() { return organisasjonid; } /** * Sets the value of the organisasjonid property. * * @param value * allowed object is * {@link String } * */ public void setOrganisasjonid(String value) { this.organisasjonid = 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 virksomhetsspesifikkeMetadata property. * * @return * possible object is * {@link Object } * */ public Object getVirksomhetsspesifikkeMetadata() { return virksomhetsspesifikkeMetadata; } /** * Sets the value of the virksomhetsspesifikkeMetadata property. * * @param value * allowed object is * {@link Object } * */ public void setVirksomhetsspesifikkeMetadata(Object value) { this.virksomhetsspesifikkeMetadata = value; } /** * Gets the value of the erSkjermet property. * * @return * possible object is * {@link Boolean } * */ public Boolean isErSkjermet() { return erSkjermet; } /** * Sets the value of the erSkjermet property. * * @param value * allowed object is * {@link Boolean } * */ public void setErSkjermet(Boolean value) { this.erSkjermet = value; } /** * Gets the value of the erPersonnavn property. * * @return * possible object is * {@link String } * */ public String getErPersonnavn() { return erPersonnavn; } /** * Sets the value of the erPersonnavn property. * * @param value * allowed object is * {@link String } * */ public void setErPersonnavn(String value) { this.erPersonnavn = value; } /** * 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 PartOppdatering.Builder<_B> _other) { _other.partID = this.partID; _other.partNavn = this.partNavn; _other.partRolle = ((this.partRolle == null)?null:this.partRolle.newCopyBuilder(_other)); _other.personid = this.personid; _other.organisasjonid = this.organisasjonid; 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.virksomhetsspesifikkeMetadata = this.virksomhetsspesifikkeMetadata; _other.erSkjermet = this.erSkjermet; _other.erPersonnavn = this.erPersonnavn; } public<_B >PartOppdatering.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new PartOppdatering.Builder<_B>(_parentBuilder, this, true); } public PartOppdatering.Builder newCopyBuilder() { return newCopyBuilder(null); } public static PartOppdatering.Builder builder() { return new PartOppdatering.Builder(null, null, false); } public static<_B >PartOppdatering.Builder<_B> copyOf(final PartOppdatering _other) { final PartOppdatering.Builder<_B> _newBuilder = new PartOppdatering.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 PartOppdatering.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree partIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("partID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partIDPropertyTree!= null):((partIDPropertyTree == null)||(!partIDPropertyTree.isLeaf())))) { _other.partID = this.partID; } final PropertyTree partNavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("partNavn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partNavnPropertyTree!= null):((partNavnPropertyTree == null)||(!partNavnPropertyTree.isLeaf())))) { _other.partNavn = this.partNavn; } final PropertyTree partRollePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("partRolle")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partRollePropertyTree!= null):((partRollePropertyTree == null)||(!partRollePropertyTree.isLeaf())))) { _other.partRolle = ((this.partRolle == null)?null:this.partRolle.newCopyBuilder(_other, partRollePropertyTree, _propertyTreeUse)); } final PropertyTree personidPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("personid")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(personidPropertyTree!= null):((personidPropertyTree == null)||(!personidPropertyTree.isLeaf())))) { _other.personid = this.personid; } final PropertyTree organisasjonidPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("organisasjonid")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(organisasjonidPropertyTree!= null):((organisasjonidPropertyTree == null)||(!organisasjonidPropertyTree.isLeaf())))) { _other.organisasjonid = this.organisasjonid; } 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 virksomhetsspesifikkeMetadataPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("virksomhetsspesifikkeMetadata")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(virksomhetsspesifikkeMetadataPropertyTree!= null):((virksomhetsspesifikkeMetadataPropertyTree == null)||(!virksomhetsspesifikkeMetadataPropertyTree.isLeaf())))) { _other.virksomhetsspesifikkeMetadata = this.virksomhetsspesifikkeMetadata; } final PropertyTree erSkjermetPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erSkjermet")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erSkjermetPropertyTree!= null):((erSkjermetPropertyTree == null)||(!erSkjermetPropertyTree.isLeaf())))) { _other.erSkjermet = this.erSkjermet; } final PropertyTree erPersonnavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erPersonnavn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erPersonnavnPropertyTree!= null):((erPersonnavnPropertyTree == null)||(!erPersonnavnPropertyTree.isLeaf())))) { _other.erPersonnavn = this.erPersonnavn; } } public<_B >PartOppdatering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new PartOppdatering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public PartOppdatering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >PartOppdatering.Builder<_B> copyOf(final PartOppdatering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PartOppdatering.Builder<_B> _newBuilder = new PartOppdatering.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static PartOppdatering.Builder copyExcept(final PartOppdatering _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static PartOppdatering.Builder copyOnly(final PartOppdatering _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final PartOppdatering _storedValue; private String partID; private String partNavn; private PartRolle.Builder> partRolle; private String personid; private String organisasjonid; private List postadresses; private String postnummer; private String poststed; private String land; private String epostadresse; private List telefonnummers; private String kontaktperson; private Object virksomhetsspesifikkeMetadata; private Boolean erSkjermet; private String erPersonnavn; public Builder(final _B _parentBuilder, final PartOppdatering _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.partID = _other.partID; this.partNavn = _other.partNavn; this.partRolle = ((_other.partRolle == null)?null:_other.partRolle.newCopyBuilder(this)); this.personid = _other.personid; this.organisasjonid = _other.organisasjonid; 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.virksomhetsspesifikkeMetadata = _other.virksomhetsspesifikkeMetadata; this.erSkjermet = _other.erSkjermet; this.erPersonnavn = _other.erPersonnavn; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final PartOppdatering _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree partIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("partID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partIDPropertyTree!= null):((partIDPropertyTree == null)||(!partIDPropertyTree.isLeaf())))) { this.partID = _other.partID; } final PropertyTree partNavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("partNavn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partNavnPropertyTree!= null):((partNavnPropertyTree == null)||(!partNavnPropertyTree.isLeaf())))) { this.partNavn = _other.partNavn; } final PropertyTree partRollePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("partRolle")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(partRollePropertyTree!= null):((partRollePropertyTree == null)||(!partRollePropertyTree.isLeaf())))) { this.partRolle = ((_other.partRolle == null)?null:_other.partRolle.newCopyBuilder(this, partRollePropertyTree, _propertyTreeUse)); } final PropertyTree personidPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("personid")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(personidPropertyTree!= null):((personidPropertyTree == null)||(!personidPropertyTree.isLeaf())))) { this.personid = _other.personid; } final PropertyTree organisasjonidPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("organisasjonid")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(organisasjonidPropertyTree!= null):((organisasjonidPropertyTree == null)||(!organisasjonidPropertyTree.isLeaf())))) { this.organisasjonid = _other.organisasjonid; } 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 virksomhetsspesifikkeMetadataPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("virksomhetsspesifikkeMetadata")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(virksomhetsspesifikkeMetadataPropertyTree!= null):((virksomhetsspesifikkeMetadataPropertyTree == null)||(!virksomhetsspesifikkeMetadataPropertyTree.isLeaf())))) { this.virksomhetsspesifikkeMetadata = _other.virksomhetsspesifikkeMetadata; } final PropertyTree erSkjermetPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erSkjermet")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erSkjermetPropertyTree!= null):((erSkjermetPropertyTree == null)||(!erSkjermetPropertyTree.isLeaf())))) { this.erSkjermet = _other.erSkjermet; } final PropertyTree erPersonnavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erPersonnavn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erPersonnavnPropertyTree!= null):((erPersonnavnPropertyTree == null)||(!erPersonnavnPropertyTree.isLeaf())))) { this.erPersonnavn = _other.erPersonnavn; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends PartOppdatering >_P init(final _P _product) { _product.partID = this.partID; _product.partNavn = this.partNavn; _product.partRolle = ((this.partRolle == null)?null:this.partRolle.build()); _product.personid = this.personid; _product.organisasjonid = this.organisasjonid; 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.virksomhetsspesifikkeMetadata = this.virksomhetsspesifikkeMetadata; _product.erSkjermet = this.erSkjermet; _product.erPersonnavn = this.erPersonnavn; return _product; } /** * Sets the new value of "partID" (any previous value will be replaced) * * @param partID * New value of the "partID" property. */ public PartOppdatering.Builder<_B> withPartID(final String partID) { this.partID = partID; return this; } /** * Sets the new value of "partNavn" (any previous value will be replaced) * * @param partNavn * New value of the "partNavn" property. */ public PartOppdatering.Builder<_B> withPartNavn(final String partNavn) { this.partNavn = partNavn; return this; } /** * Sets the new value of "partRolle" (any previous value will be replaced) * * @param partRolle * New value of the "partRolle" property. */ public PartOppdatering.Builder<_B> withPartRolle(final PartRolle partRolle) { this.partRolle = ((partRolle == null)?null:new PartRolle.Builder>(this, partRolle, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "partRolle" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.PartRolle.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "partRolle" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.PartRolle.Builder#end()} to * return to the current builder. */ public PartRolle.Builder> withPartRolle() { if (this.partRolle!= null) { return this.partRolle; } return this.partRolle = new PartRolle.Builder>(this, null, false); } /** * Sets the new value of "personid" (any previous value will be replaced) * * @param personid * New value of the "personid" property. */ public PartOppdatering.Builder<_B> withPersonid(final String personid) { this.personid = personid; return this; } /** * Sets the new value of "organisasjonid" (any previous value will be replaced) * * @param organisasjonid * New value of the "organisasjonid" property. */ public PartOppdatering.Builder<_B> withOrganisasjonid(final String organisasjonid) { this.organisasjonid = organisasjonid; return this; } /** * Adds the given items to the value of "postadresses" * * @param postadresses * Items to add to the value of the "postadresses" property */ public PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.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 PartOppdatering.Builder<_B> withKontaktperson(final String kontaktperson) { this.kontaktperson = kontaktperson; return this; } /** * Sets the new value of "virksomhetsspesifikkeMetadata" (any previous value will * be replaced) * * @param virksomhetsspesifikkeMetadata * New value of the "virksomhetsspesifikkeMetadata" property. */ public PartOppdatering.Builder<_B> withVirksomhetsspesifikkeMetadata(final Object virksomhetsspesifikkeMetadata) { this.virksomhetsspesifikkeMetadata = virksomhetsspesifikkeMetadata; return this; } /** * Sets the new value of "erSkjermet" (any previous value will be replaced) * * @param erSkjermet * New value of the "erSkjermet" property. */ public PartOppdatering.Builder<_B> withErSkjermet(final Boolean erSkjermet) { this.erSkjermet = erSkjermet; return this; } /** * Sets the new value of "erPersonnavn" (any previous value will be replaced) * * @param erPersonnavn * New value of the "erPersonnavn" property. */ public PartOppdatering.Builder<_B> withErPersonnavn(final String erPersonnavn) { this.erPersonnavn = erPersonnavn; return this; } @Override public PartOppdatering build() { if (_storedValue == null) { return this.init(new PartOppdatering()); } else { return ((PartOppdatering) _storedValue); } } public PartOppdatering.Builder<_B> copyOf(final PartOppdatering _other) { _other.copyTo(this); return this; } public PartOppdatering.Builder<_B> copyOf(final PartOppdatering.Builder _other) { return copyOf(_other.build()); } } public static class Select extends PartOppdatering.Selector { Select() { super(null, null, null); } public static PartOppdatering.Select _root() { return new PartOppdatering.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> partID = null; private com.kscs.util.jaxb.Selector> partNavn = null; private PartRolle.Selector> partRolle = null; private com.kscs.util.jaxb.Selector> personid = null; private com.kscs.util.jaxb.Selector> organisasjonid = 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 com.kscs.util.jaxb.Selector> virksomhetsspesifikkeMetadata = null; private com.kscs.util.jaxb.Selector> erSkjermet = null; private com.kscs.util.jaxb.Selector> erPersonnavn = 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.partID!= null) { products.put("partID", this.partID.init()); } if (this.partNavn!= null) { products.put("partNavn", this.partNavn.init()); } if (this.partRolle!= null) { products.put("partRolle", this.partRolle.init()); } if (this.personid!= null) { products.put("personid", this.personid.init()); } if (this.organisasjonid!= null) { products.put("organisasjonid", this.organisasjonid.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.virksomhetsspesifikkeMetadata!= null) { products.put("virksomhetsspesifikkeMetadata", this.virksomhetsspesifikkeMetadata.init()); } if (this.erSkjermet!= null) { products.put("erSkjermet", this.erSkjermet.init()); } if (this.erPersonnavn!= null) { products.put("erPersonnavn", this.erPersonnavn.init()); } return products; } public com.kscs.util.jaxb.Selector> partID() { return ((this.partID == null)?this.partID = new com.kscs.util.jaxb.Selector>(this._root, this, "partID"):this.partID); } public com.kscs.util.jaxb.Selector> partNavn() { return ((this.partNavn == null)?this.partNavn = new com.kscs.util.jaxb.Selector>(this._root, this, "partNavn"):this.partNavn); } public PartRolle.Selector> partRolle() { return ((this.partRolle == null)?this.partRolle = new PartRolle.Selector>(this._root, this, "partRolle"):this.partRolle); } public com.kscs.util.jaxb.Selector> personid() { return ((this.personid == null)?this.personid = new com.kscs.util.jaxb.Selector>(this._root, this, "personid"):this.personid); } public com.kscs.util.jaxb.Selector> organisasjonid() { return ((this.organisasjonid == null)?this.organisasjonid = new com.kscs.util.jaxb.Selector>(this._root, this, "organisasjonid"):this.organisasjonid); } 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 com.kscs.util.jaxb.Selector> virksomhetsspesifikkeMetadata() { return ((this.virksomhetsspesifikkeMetadata == null)?this.virksomhetsspesifikkeMetadata = new com.kscs.util.jaxb.Selector>(this._root, this, "virksomhetsspesifikkeMetadata"):this.virksomhetsspesifikkeMetadata); } public com.kscs.util.jaxb.Selector> erSkjermet() { return ((this.erSkjermet == null)?this.erSkjermet = new com.kscs.util.jaxb.Selector>(this._root, this, "erSkjermet"):this.erSkjermet); } public com.kscs.util.jaxb.Selector> erPersonnavn() { return ((this.erPersonnavn == null)?this.erPersonnavn = new com.kscs.util.jaxb.Selector>(this._root, this, "erPersonnavn"):this.erPersonnavn); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy