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

no.ks.fiks.arkiv.v1.arkivmelding.oppdater.Part 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 part complex type. * *

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

 * <complexType name="part">
 *   <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" minOccurs="0"/>
 *         <element name="partNavn" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}partNavn"/>
 *         <element name="partRolle" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}partRolle"/>
 *         <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"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "part", propOrder = { "partID", "partNavn", "partRolle", "postadresses", "postnummer", "poststed", "land", "epostadresse", "telefonnummers", "kontaktperson", "virksomhetsspesifikkeMetadata" }) public class Part { protected String partID; @XmlElement(required = true) protected String partNavn; @XmlElement(required = true) protected PartRolle partRolle; @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; /** * 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 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; } /** * 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 Part.Builder<_B> _other) { _other.partID = this.partID; _other.partNavn = this.partNavn; _other.partRolle = ((this.partRolle == null)?null:this.partRolle.newCopyBuilder(_other)); 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; } public<_B >Part.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Part.Builder<_B>(_parentBuilder, this, true); } public Part.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Part.Builder builder() { return new Part.Builder(null, null, false); } public static<_B >Part.Builder<_B> copyOf(final Part _other) { final Part.Builder<_B> _newBuilder = new Part.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 Part.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 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; } } public<_B >Part.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Part.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Part.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Part.Builder<_B> copyOf(final Part _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Part.Builder<_B> _newBuilder = new Part.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Part.Builder copyExcept(final Part _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Part.Builder copyOnly(final Part _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Part _storedValue; private String partID; private String partNavn; private PartRolle.Builder> partRolle; private List postadresses; private String postnummer; private String poststed; private String land; private String epostadresse; private List telefonnummers; private String kontaktperson; private Object virksomhetsspesifikkeMetadata; public Builder(final _B _parentBuilder, final Part _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)); 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; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Part _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 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; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Part >_P init(final _P _product) { _product.partID = this.partID; _product.partNavn = this.partNavn; _product.partRolle = ((this.partRolle == null)?null:this.partRolle.build()); 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; return _product; } /** * Sets the new value of "partID" (any previous value will be replaced) * * @param partID * New value of the "partID" property. */ public Part.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 Part.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 Part.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); } /** * Adds the given items to the value of "postadresses" * * @param postadresses * Items to add to the value of the "postadresses" property */ public Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.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 Part.Builder<_B> withVirksomhetsspesifikkeMetadata(final Object virksomhetsspesifikkeMetadata) { this.virksomhetsspesifikkeMetadata = virksomhetsspesifikkeMetadata; return this; } @Override public Part build() { if (_storedValue == null) { return this.init(new Part()); } else { return ((Part) _storedValue); } } public Part.Builder<_B> copyOf(final Part _other) { _other.copyTo(this); return this; } public Part.Builder<_B> copyOf(final Part.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Part.Selector { Select() { super(null, null, null); } public static Part.Select _root() { return new Part.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> 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; 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.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()); } 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> 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); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy