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

no.ks.fiks.arkiv.v1.arkivstruktur.Byggident Maven / Gradle / Ivy

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


package no.ks.fiks.arkiv.v1.arkivstruktur;

import java.util.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 byggident complex type. * *

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

 * <complexType name="byggident">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="bygningsnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}bygningsnummer"/>
 *         <element name="endringsloepenummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}endringsloepenummer" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "byggident", propOrder = { "bygningsnummer", "endringsloepenummer" }) public class Byggident { protected int bygningsnummer; protected Integer endringsloepenummer; /** * Gets the value of the bygningsnummer property. * */ public int getBygningsnummer() { return bygningsnummer; } /** * Sets the value of the bygningsnummer property. * */ public void setBygningsnummer(int value) { this.bygningsnummer = value; } /** * Gets the value of the endringsloepenummer property. * * @return * possible object is * {@link Integer } * */ public Integer getEndringsloepenummer() { return endringsloepenummer; } /** * Sets the value of the endringsloepenummer property. * * @param value * allowed object is * {@link Integer } * */ public void setEndringsloepenummer(Integer value) { this.endringsloepenummer = 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 Byggident.Builder<_B> _other) { _other.bygningsnummer = this.bygningsnummer; _other.endringsloepenummer = this.endringsloepenummer; } public<_B >Byggident.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Byggident.Builder<_B>(_parentBuilder, this, true); } public Byggident.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Byggident.Builder builder() { return new Byggident.Builder(null, null, false); } public static<_B >Byggident.Builder<_B> copyOf(final Byggident _other) { final Byggident.Builder<_B> _newBuilder = new Byggident.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 Byggident.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree bygningsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("bygningsnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(bygningsnummerPropertyTree!= null):((bygningsnummerPropertyTree == null)||(!bygningsnummerPropertyTree.isLeaf())))) { _other.bygningsnummer = this.bygningsnummer; } final PropertyTree endringsloepenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("endringsloepenummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(endringsloepenummerPropertyTree!= null):((endringsloepenummerPropertyTree == null)||(!endringsloepenummerPropertyTree.isLeaf())))) { _other.endringsloepenummer = this.endringsloepenummer; } } public<_B >Byggident.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Byggident.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Byggident.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Byggident.Builder<_B> copyOf(final Byggident _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Byggident.Builder<_B> _newBuilder = new Byggident.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Byggident.Builder copyExcept(final Byggident _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Byggident.Builder copyOnly(final Byggident _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Byggident _storedValue; private int bygningsnummer; private Integer endringsloepenummer; public Builder(final _B _parentBuilder, final Byggident _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.bygningsnummer = _other.bygningsnummer; this.endringsloepenummer = _other.endringsloepenummer; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Byggident _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree bygningsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("bygningsnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(bygningsnummerPropertyTree!= null):((bygningsnummerPropertyTree == null)||(!bygningsnummerPropertyTree.isLeaf())))) { this.bygningsnummer = _other.bygningsnummer; } final PropertyTree endringsloepenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("endringsloepenummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(endringsloepenummerPropertyTree!= null):((endringsloepenummerPropertyTree == null)||(!endringsloepenummerPropertyTree.isLeaf())))) { this.endringsloepenummer = _other.endringsloepenummer; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Byggident >_P init(final _P _product) { _product.bygningsnummer = this.bygningsnummer; _product.endringsloepenummer = this.endringsloepenummer; return _product; } /** * Sets the new value of "bygningsnummer" (any previous value will be replaced) * * @param bygningsnummer * New value of the "bygningsnummer" property. */ public Byggident.Builder<_B> withBygningsnummer(final int bygningsnummer) { this.bygningsnummer = bygningsnummer; return this; } /** * Sets the new value of "endringsloepenummer" (any previous value will be * replaced) * * @param endringsloepenummer * New value of the "endringsloepenummer" property. */ public Byggident.Builder<_B> withEndringsloepenummer(final Integer endringsloepenummer) { this.endringsloepenummer = endringsloepenummer; return this; } @Override public Byggident build() { if (_storedValue == null) { return this.init(new Byggident()); } else { return ((Byggident) _storedValue); } } public Byggident.Builder<_B> copyOf(final Byggident _other) { _other.copyTo(this); return this; } public Byggident.Builder<_B> copyOf(final Byggident.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Byggident.Selector { Select() { super(null, null, null); } public static Byggident.Select _root() { return new Byggident.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> endringsloepenummer = 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.endringsloepenummer!= null) { products.put("endringsloepenummer", this.endringsloepenummer.init()); } return products; } public com.kscs.util.jaxb.Selector> endringsloepenummer() { return ((this.endringsloepenummer == null)?this.endringsloepenummer = new com.kscs.util.jaxb.Selector>(this._root, this, "endringsloepenummer"):this.endringsloepenummer); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy