no.ks.fiks.arkiv.v1.arkivmelding.opprett.Adresse Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.6
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.06.23 at 10:32:49 AM CEST
//
package no.ks.fiks.arkiv.v1.arkivmelding.opprett;
import java.util.HashMap;
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;
/**
* Java class for adresse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="adresse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="adresse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}postadresse"/>
* <element name="postnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}postnummer"/>
* <element name="poststed" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}poststed"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "adresse", propOrder = {
"adresse",
"postnummer",
"poststed"
})
public class Adresse {
@XmlElement(required = true)
protected String adresse;
@XmlElement(required = true)
protected String postnummer;
@XmlElement(required = true)
protected String poststed;
/**
* Gets the value of the adresse property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdresse() {
return adresse;
}
/**
* Sets the value of the adresse property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAdresse(String value) {
this.adresse = value;
}
/**
* 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;
}
/**
* 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 Adresse.Builder<_B> _other) {
_other.adresse = this.adresse;
_other.postnummer = this.postnummer;
_other.poststed = this.poststed;
}
public<_B >Adresse.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Adresse.Builder<_B>(_parentBuilder, this, true);
}
public Adresse.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Adresse.Builder builder() {
return new Adresse.Builder(null, null, false);
}
public static<_B >Adresse.Builder<_B> copyOf(final Adresse _other) {
final Adresse.Builder<_B> _newBuilder = new Adresse.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 Adresse.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree adressePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adressePropertyTree!= null):((adressePropertyTree == null)||(!adressePropertyTree.isLeaf())))) {
_other.adresse = this.adresse;
}
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;
}
}
public<_B >Adresse.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Adresse.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Adresse.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Adresse.Builder<_B> copyOf(final Adresse _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Adresse.Builder<_B> _newBuilder = new Adresse.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Adresse.Builder copyExcept(final Adresse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Adresse.Builder copyOnly(final Adresse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Adresse _storedValue;
private String adresse;
private String postnummer;
private String poststed;
public Builder(final _B _parentBuilder, final Adresse _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.adresse = _other.adresse;
this.postnummer = _other.postnummer;
this.poststed = _other.poststed;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Adresse _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree adressePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("adresse"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(adressePropertyTree!= null):((adressePropertyTree == null)||(!adressePropertyTree.isLeaf())))) {
this.adresse = _other.adresse;
}
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;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Adresse >_P init(final _P _product) {
_product.adresse = this.adresse;
_product.postnummer = this.postnummer;
_product.poststed = this.poststed;
return _product;
}
/**
* Sets the new value of "adresse" (any previous value will be replaced)
*
* @param adresse
* New value of the "adresse" property.
*/
public Adresse.Builder<_B> withAdresse(final String adresse) {
this.adresse = adresse;
return this;
}
/**
* Sets the new value of "postnummer" (any previous value will be replaced)
*
* @param postnummer
* New value of the "postnummer" property.
*/
public Adresse.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 Adresse.Builder<_B> withPoststed(final String poststed) {
this.poststed = poststed;
return this;
}
@Override
public Adresse build() {
if (_storedValue == null) {
return this.init(new Adresse());
} else {
return ((Adresse) _storedValue);
}
}
public Adresse.Builder<_B> copyOf(final Adresse _other) {
_other.copyTo(this);
return this;
}
public Adresse.Builder<_B> copyOf(final Adresse.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Adresse.Selector
{
Select() {
super(null, null, null);
}
public static Adresse.Select _root() {
return new Adresse.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> adresse = null;
private com.kscs.util.jaxb.Selector> postnummer = 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.adresse!= null) {
products.put("adresse", this.adresse.init());
}
if (this.postnummer!= null) {
products.put("postnummer", this.postnummer.init());
}
if (this.poststed!= null) {
products.put("poststed", this.poststed.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> adresse() {
return ((this.adresse == null)?this.adresse = new com.kscs.util.jaxb.Selector>(this._root, this, "adresse"):this.adresse);
}
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);
}
}
}