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

no.difi.meldingsutveksling.ks.svarut.PostAdresse Maven / Gradle / Ivy

//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.09.09 at 10:33:19 AM UTC 
//


package no.difi.meldingsutveksling.ks.svarut;

import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;


/**
 * 

Java class for postAdresse complex type. * *

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

 * <complexType name="postAdresse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="adresse1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="adresse2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="adresse3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="land" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="navn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="postnr" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="poststed" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "postAdresse", propOrder = { "adresse1", "adresse2", "adresse3", "land", "navn", "postnr", "poststed" }) public class PostAdresse { protected String adresse1; protected String adresse2; protected String adresse3; protected String land; protected String navn; protected String postnr; protected String poststed; /** * Gets the value of the adresse1 property. * * @return * possible object is * {@link String } * */ public String getAdresse1() { return adresse1; } /** * Sets the value of the adresse1 property. * * @param value * allowed object is * {@link String } * */ public void setAdresse1(String value) { this.adresse1 = value; } /** * Gets the value of the adresse2 property. * * @return * possible object is * {@link String } * */ public String getAdresse2() { return adresse2; } /** * Sets the value of the adresse2 property. * * @param value * allowed object is * {@link String } * */ public void setAdresse2(String value) { this.adresse2 = value; } /** * Gets the value of the adresse3 property. * * @return * possible object is * {@link String } * */ public String getAdresse3() { return adresse3; } /** * Sets the value of the adresse3 property. * * @param value * allowed object is * {@link String } * */ public void setAdresse3(String value) { this.adresse3 = 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 navn property. * * @return * possible object is * {@link String } * */ public String getNavn() { return navn; } /** * Sets the value of the navn property. * * @param value * allowed object is * {@link String } * */ public void setNavn(String value) { this.navn = value; } /** * Gets the value of the postnr property. * * @return * possible object is * {@link String } * */ public String getPostnr() { return postnr; } /** * Sets the value of the postnr property. * * @param value * allowed object is * {@link String } * */ public void setPostnr(String value) { this.postnr = 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; } /** * 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 PostAdresse.Builder<_B> _other) { _other.adresse1 = this.adresse1; _other.adresse2 = this.adresse2; _other.adresse3 = this.adresse3; _other.land = this.land; _other.navn = this.navn; _other.postnr = this.postnr; _other.poststed = this.poststed; } public<_B >PostAdresse.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new PostAdresse.Builder<_B>(_parentBuilder, this, true); } public PostAdresse.Builder newCopyBuilder() { return newCopyBuilder(null); } public static PostAdresse.Builder builder() { return new PostAdresse.Builder(null, null, false); } public static<_B >PostAdresse.Builder<_B> copyOf(final PostAdresse _other) { final PostAdresse.Builder<_B> _newBuilder = new PostAdresse.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 PostAdresse.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree adresse1PropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse1")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adresse1PropertyTree!= null):((adresse1PropertyTree == null)||(!adresse1PropertyTree.isLeaf())))) { _other.adresse1 = this.adresse1; } final PropertyTree adresse2PropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse2")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adresse2PropertyTree!= null):((adresse2PropertyTree == null)||(!adresse2PropertyTree.isLeaf())))) { _other.adresse2 = this.adresse2; } final PropertyTree adresse3PropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse3")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adresse3PropertyTree!= null):((adresse3PropertyTree == null)||(!adresse3PropertyTree.isLeaf())))) { _other.adresse3 = this.adresse3; } 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 navnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("navn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(navnPropertyTree!= null):((navnPropertyTree == null)||(!navnPropertyTree.isLeaf())))) { _other.navn = this.navn; } final PropertyTree postnrPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("postnr")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(postnrPropertyTree!= null):((postnrPropertyTree == null)||(!postnrPropertyTree.isLeaf())))) { _other.postnr = this.postnr; } final PropertyTree poststedPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("poststed")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(poststedPropertyTree!= null):((poststedPropertyTree == null)||(!poststedPropertyTree.isLeaf())))) { _other.poststed = this.poststed; } } public<_B >PostAdresse.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new PostAdresse.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public PostAdresse.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >PostAdresse.Builder<_B> copyOf(final PostAdresse _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PostAdresse.Builder<_B> _newBuilder = new PostAdresse.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static PostAdresse.Builder copyExcept(final PostAdresse _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static PostAdresse.Builder copyOnly(final PostAdresse _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final PostAdresse _storedValue; private String adresse1; private String adresse2; private String adresse3; private String land; private String navn; private String postnr; private String poststed; public Builder(final _B _parentBuilder, final PostAdresse _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.adresse1 = _other.adresse1; this.adresse2 = _other.adresse2; this.adresse3 = _other.adresse3; this.land = _other.land; this.navn = _other.navn; this.postnr = _other.postnr; this.poststed = _other.poststed; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final PostAdresse _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree adresse1PropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse1")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adresse1PropertyTree!= null):((adresse1PropertyTree == null)||(!adresse1PropertyTree.isLeaf())))) { this.adresse1 = _other.adresse1; } final PropertyTree adresse2PropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse2")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adresse2PropertyTree!= null):((adresse2PropertyTree == null)||(!adresse2PropertyTree.isLeaf())))) { this.adresse2 = _other.adresse2; } final PropertyTree adresse3PropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse3")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adresse3PropertyTree!= null):((adresse3PropertyTree == null)||(!adresse3PropertyTree.isLeaf())))) { this.adresse3 = _other.adresse3; } 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 navnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("navn")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(navnPropertyTree!= null):((navnPropertyTree == null)||(!navnPropertyTree.isLeaf())))) { this.navn = _other.navn; } final PropertyTree postnrPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("postnr")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(postnrPropertyTree!= null):((postnrPropertyTree == null)||(!postnrPropertyTree.isLeaf())))) { this.postnr = _other.postnr; } final PropertyTree poststedPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("poststed")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(poststedPropertyTree!= null):((poststedPropertyTree == null)||(!poststedPropertyTree.isLeaf())))) { this.poststed = _other.poststed; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends PostAdresse >_P init(final _P _product) { _product.adresse1 = this.adresse1; _product.adresse2 = this.adresse2; _product.adresse3 = this.adresse3; _product.land = this.land; _product.navn = this.navn; _product.postnr = this.postnr; _product.poststed = this.poststed; return _product; } /** * Sets the new value of "adresse1" (any previous value will be replaced) * * @param adresse1 * New value of the "adresse1" property. */ public PostAdresse.Builder<_B> withAdresse1(final String adresse1) { this.adresse1 = adresse1; return this; } /** * Sets the new value of "adresse2" (any previous value will be replaced) * * @param adresse2 * New value of the "adresse2" property. */ public PostAdresse.Builder<_B> withAdresse2(final String adresse2) { this.adresse2 = adresse2; return this; } /** * Sets the new value of "adresse3" (any previous value will be replaced) * * @param adresse3 * New value of the "adresse3" property. */ public PostAdresse.Builder<_B> withAdresse3(final String adresse3) { this.adresse3 = adresse3; return this; } /** * Sets the new value of "land" (any previous value will be replaced) * * @param land * New value of the "land" property. */ public PostAdresse.Builder<_B> withLand(final String land) { this.land = land; return this; } /** * Sets the new value of "navn" (any previous value will be replaced) * * @param navn * New value of the "navn" property. */ public PostAdresse.Builder<_B> withNavn(final String navn) { this.navn = navn; return this; } /** * Sets the new value of "postnr" (any previous value will be replaced) * * @param postnr * New value of the "postnr" property. */ public PostAdresse.Builder<_B> withPostnr(final String postnr) { this.postnr = postnr; return this; } /** * Sets the new value of "poststed" (any previous value will be replaced) * * @param poststed * New value of the "poststed" property. */ public PostAdresse.Builder<_B> withPoststed(final String poststed) { this.poststed = poststed; return this; } @Override public PostAdresse build() { if (_storedValue == null) { return this.init(new PostAdresse()); } else { return ((PostAdresse) _storedValue); } } public PostAdresse.Builder<_B> copyOf(final PostAdresse _other) { _other.copyTo(this); return this; } public PostAdresse.Builder<_B> copyOf(final PostAdresse.Builder _other) { return copyOf(_other.build()); } } public static class Select extends PostAdresse.Selector { Select() { super(null, null, null); } public static PostAdresse.Select _root() { return new PostAdresse.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> adresse1 = null; private com.kscs.util.jaxb.Selector> adresse2 = null; private com.kscs.util.jaxb.Selector> adresse3 = null; private com.kscs.util.jaxb.Selector> land = null; private com.kscs.util.jaxb.Selector> navn = null; private com.kscs.util.jaxb.Selector> postnr = null; private com.kscs.util.jaxb.Selector> poststed = 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.adresse1 != null) { products.put("adresse1", this.adresse1 .init()); } if (this.adresse2 != null) { products.put("adresse2", this.adresse2 .init()); } if (this.adresse3 != null) { products.put("adresse3", this.adresse3 .init()); } if (this.land!= null) { products.put("land", this.land.init()); } if (this.navn!= null) { products.put("navn", this.navn.init()); } if (this.postnr!= null) { products.put("postnr", this.postnr.init()); } if (this.poststed!= null) { products.put("poststed", this.poststed.init()); } return products; } public com.kscs.util.jaxb.Selector> adresse1() { return ((this.adresse1 == null)?this.adresse1 = new com.kscs.util.jaxb.Selector>(this._root, this, "adresse1"):this.adresse1); } public com.kscs.util.jaxb.Selector> adresse2() { return ((this.adresse2 == null)?this.adresse2 = new com.kscs.util.jaxb.Selector>(this._root, this, "adresse2"):this.adresse2); } public com.kscs.util.jaxb.Selector> adresse3() { return ((this.adresse3 == null)?this.adresse3 = new com.kscs.util.jaxb.Selector>(this._root, this, "adresse3"):this.adresse3); } 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> navn() { return ((this.navn == null)?this.navn = new com.kscs.util.jaxb.Selector>(this._root, this, "navn"):this.navn); } public com.kscs.util.jaxb.Selector> postnr() { return ((this.postnr == null)?this.postnr = new com.kscs.util.jaxb.Selector>(this._root, this, "postnr"):this.postnr); } 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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy