no.ks.fiks.arkiv.v1.arkivstruktur.Matrikkelnummer 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.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.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 matrikkelnummer complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="matrikkelnummer">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="kommunenummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}kommunenummer"/>
* <element name="gardsnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}gardsnummer"/>
* <element name="bruksnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}bruksnummer"/>
* <element name="festenummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}festenummer" minOccurs="0"/>
* <element name="seksjonsnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}seksjonsnummer" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "matrikkelnummer", propOrder = {
"kommunenummer",
"gardsnummer",
"bruksnummer",
"festenummer",
"seksjonsnummer"
})
public class Matrikkelnummer {
@XmlElement(required = true)
protected String kommunenummer;
protected int gardsnummer;
protected int bruksnummer;
protected Integer festenummer;
protected Integer seksjonsnummer;
/**
* Gets the value of the kommunenummer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKommunenummer() {
return kommunenummer;
}
/**
* Sets the value of the kommunenummer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKommunenummer(String value) {
this.kommunenummer = value;
}
/**
* Gets the value of the gardsnummer property.
*
*/
public int getGardsnummer() {
return gardsnummer;
}
/**
* Sets the value of the gardsnummer property.
*
*/
public void setGardsnummer(int value) {
this.gardsnummer = value;
}
/**
* Gets the value of the bruksnummer property.
*
*/
public int getBruksnummer() {
return bruksnummer;
}
/**
* Sets the value of the bruksnummer property.
*
*/
public void setBruksnummer(int value) {
this.bruksnummer = value;
}
/**
* Gets the value of the festenummer property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getFestenummer() {
return festenummer;
}
/**
* Sets the value of the festenummer property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setFestenummer(Integer value) {
this.festenummer = value;
}
/**
* Gets the value of the seksjonsnummer property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getSeksjonsnummer() {
return seksjonsnummer;
}
/**
* Sets the value of the seksjonsnummer property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setSeksjonsnummer(Integer value) {
this.seksjonsnummer = 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 Matrikkelnummer.Builder<_B> _other) {
_other.kommunenummer = this.kommunenummer;
_other.gardsnummer = this.gardsnummer;
_other.bruksnummer = this.bruksnummer;
_other.festenummer = this.festenummer;
_other.seksjonsnummer = this.seksjonsnummer;
}
public<_B >Matrikkelnummer.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Matrikkelnummer.Builder<_B>(_parentBuilder, this, true);
}
public Matrikkelnummer.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Matrikkelnummer.Builder builder() {
return new Matrikkelnummer.Builder(null, null, false);
}
public static<_B >Matrikkelnummer.Builder<_B> copyOf(final Matrikkelnummer _other) {
final Matrikkelnummer.Builder<_B> _newBuilder = new Matrikkelnummer.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 Matrikkelnummer.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree kommunenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kommunenummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kommunenummerPropertyTree!= null):((kommunenummerPropertyTree == null)||(!kommunenummerPropertyTree.isLeaf())))) {
_other.kommunenummer = this.kommunenummer;
}
final PropertyTree gardsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gardsnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(gardsnummerPropertyTree!= null):((gardsnummerPropertyTree == null)||(!gardsnummerPropertyTree.isLeaf())))) {
_other.gardsnummer = this.gardsnummer;
}
final PropertyTree bruksnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("bruksnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(bruksnummerPropertyTree!= null):((bruksnummerPropertyTree == null)||(!bruksnummerPropertyTree.isLeaf())))) {
_other.bruksnummer = this.bruksnummer;
}
final PropertyTree festenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("festenummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(festenummerPropertyTree!= null):((festenummerPropertyTree == null)||(!festenummerPropertyTree.isLeaf())))) {
_other.festenummer = this.festenummer;
}
final PropertyTree seksjonsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("seksjonsnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(seksjonsnummerPropertyTree!= null):((seksjonsnummerPropertyTree == null)||(!seksjonsnummerPropertyTree.isLeaf())))) {
_other.seksjonsnummer = this.seksjonsnummer;
}
}
public<_B >Matrikkelnummer.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Matrikkelnummer.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Matrikkelnummer.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Matrikkelnummer.Builder<_B> copyOf(final Matrikkelnummer _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Matrikkelnummer.Builder<_B> _newBuilder = new Matrikkelnummer.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Matrikkelnummer.Builder copyExcept(final Matrikkelnummer _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Matrikkelnummer.Builder copyOnly(final Matrikkelnummer _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Matrikkelnummer _storedValue;
private String kommunenummer;
private int gardsnummer;
private int bruksnummer;
private Integer festenummer;
private Integer seksjonsnummer;
public Builder(final _B _parentBuilder, final Matrikkelnummer _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.kommunenummer = _other.kommunenummer;
this.gardsnummer = _other.gardsnummer;
this.bruksnummer = _other.bruksnummer;
this.festenummer = _other.festenummer;
this.seksjonsnummer = _other.seksjonsnummer;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Matrikkelnummer _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree kommunenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kommunenummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kommunenummerPropertyTree!= null):((kommunenummerPropertyTree == null)||(!kommunenummerPropertyTree.isLeaf())))) {
this.kommunenummer = _other.kommunenummer;
}
final PropertyTree gardsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gardsnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(gardsnummerPropertyTree!= null):((gardsnummerPropertyTree == null)||(!gardsnummerPropertyTree.isLeaf())))) {
this.gardsnummer = _other.gardsnummer;
}
final PropertyTree bruksnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("bruksnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(bruksnummerPropertyTree!= null):((bruksnummerPropertyTree == null)||(!bruksnummerPropertyTree.isLeaf())))) {
this.bruksnummer = _other.bruksnummer;
}
final PropertyTree festenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("festenummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(festenummerPropertyTree!= null):((festenummerPropertyTree == null)||(!festenummerPropertyTree.isLeaf())))) {
this.festenummer = _other.festenummer;
}
final PropertyTree seksjonsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("seksjonsnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(seksjonsnummerPropertyTree!= null):((seksjonsnummerPropertyTree == null)||(!seksjonsnummerPropertyTree.isLeaf())))) {
this.seksjonsnummer = _other.seksjonsnummer;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Matrikkelnummer >_P init(final _P _product) {
_product.kommunenummer = this.kommunenummer;
_product.gardsnummer = this.gardsnummer;
_product.bruksnummer = this.bruksnummer;
_product.festenummer = this.festenummer;
_product.seksjonsnummer = this.seksjonsnummer;
return _product;
}
/**
* Sets the new value of "kommunenummer" (any previous value will be replaced)
*
* @param kommunenummer
* New value of the "kommunenummer" property.
*/
public Matrikkelnummer.Builder<_B> withKommunenummer(final String kommunenummer) {
this.kommunenummer = kommunenummer;
return this;
}
/**
* Sets the new value of "gardsnummer" (any previous value will be replaced)
*
* @param gardsnummer
* New value of the "gardsnummer" property.
*/
public Matrikkelnummer.Builder<_B> withGardsnummer(final int gardsnummer) {
this.gardsnummer = gardsnummer;
return this;
}
/**
* Sets the new value of "bruksnummer" (any previous value will be replaced)
*
* @param bruksnummer
* New value of the "bruksnummer" property.
*/
public Matrikkelnummer.Builder<_B> withBruksnummer(final int bruksnummer) {
this.bruksnummer = bruksnummer;
return this;
}
/**
* Sets the new value of "festenummer" (any previous value will be replaced)
*
* @param festenummer
* New value of the "festenummer" property.
*/
public Matrikkelnummer.Builder<_B> withFestenummer(final Integer festenummer) {
this.festenummer = festenummer;
return this;
}
/**
* Sets the new value of "seksjonsnummer" (any previous value will be replaced)
*
* @param seksjonsnummer
* New value of the "seksjonsnummer" property.
*/
public Matrikkelnummer.Builder<_B> withSeksjonsnummer(final Integer seksjonsnummer) {
this.seksjonsnummer = seksjonsnummer;
return this;
}
@Override
public Matrikkelnummer build() {
if (_storedValue == null) {
return this.init(new Matrikkelnummer());
} else {
return ((Matrikkelnummer) _storedValue);
}
}
public Matrikkelnummer.Builder<_B> copyOf(final Matrikkelnummer _other) {
_other.copyTo(this);
return this;
}
public Matrikkelnummer.Builder<_B> copyOf(final Matrikkelnummer.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Matrikkelnummer.Selector
{
Select() {
super(null, null, null);
}
public static Matrikkelnummer.Select _root() {
return new Matrikkelnummer.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> kommunenummer = null;
private com.kscs.util.jaxb.Selector> festenummer = null;
private com.kscs.util.jaxb.Selector> seksjonsnummer = 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.kommunenummer!= null) {
products.put("kommunenummer", this.kommunenummer.init());
}
if (this.festenummer!= null) {
products.put("festenummer", this.festenummer.init());
}
if (this.seksjonsnummer!= null) {
products.put("seksjonsnummer", this.seksjonsnummer.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> kommunenummer() {
return ((this.kommunenummer == null)?this.kommunenummer = new com.kscs.util.jaxb.Selector>(this._root, this, "kommunenummer"):this.kommunenummer);
}
public com.kscs.util.jaxb.Selector> festenummer() {
return ((this.festenummer == null)?this.festenummer = new com.kscs.util.jaxb.Selector>(this._root, this, "festenummer"):this.festenummer);
}
public com.kscs.util.jaxb.Selector> seksjonsnummer() {
return ((this.seksjonsnummer == null)?this.seksjonsnummer = new com.kscs.util.jaxb.Selector>(this._root, this, "seksjonsnummer"):this.seksjonsnummer);
}
}
}