no.ks.fiks.arkiv.v1.arkivstruktur.Planident 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 planident complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="planident">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="planidentifikasjon" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}planidentifikasjon"/>
* <choice minOccurs="0">
* <element name="kommunenummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}kommunenummer" minOccurs="0"/>
* <element name="fylkesnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}fylkesnummer" minOccurs="0"/>
* <element name="landkode" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}landkode" minOccurs="0"/>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "planident", propOrder = {
"planidentifikasjon",
"landkode",
"fylkesnummer",
"kommunenummer"
})
public class Planident {
@XmlElement(required = true)
protected String planidentifikasjon;
protected String landkode;
protected String fylkesnummer;
protected String kommunenummer;
/**
* Gets the value of the planidentifikasjon property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPlanidentifikasjon() {
return planidentifikasjon;
}
/**
* Sets the value of the planidentifikasjon property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPlanidentifikasjon(String value) {
this.planidentifikasjon = value;
}
/**
* Gets the value of the landkode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLandkode() {
return landkode;
}
/**
* Sets the value of the landkode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLandkode(String value) {
this.landkode = value;
}
/**
* Gets the value of the fylkesnummer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFylkesnummer() {
return fylkesnummer;
}
/**
* Sets the value of the fylkesnummer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFylkesnummer(String value) {
this.fylkesnummer = value;
}
/**
* 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;
}
/**
* 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 Planident.Builder<_B> _other) {
_other.planidentifikasjon = this.planidentifikasjon;
_other.landkode = this.landkode;
_other.fylkesnummer = this.fylkesnummer;
_other.kommunenummer = this.kommunenummer;
}
public<_B >Planident.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Planident.Builder<_B>(_parentBuilder, this, true);
}
public Planident.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Planident.Builder builder() {
return new Planident.Builder(null, null, false);
}
public static<_B >Planident.Builder<_B> copyOf(final Planident _other) {
final Planident.Builder<_B> _newBuilder = new Planident.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 Planident.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree planidentifikasjonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("planidentifikasjon"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(planidentifikasjonPropertyTree!= null):((planidentifikasjonPropertyTree == null)||(!planidentifikasjonPropertyTree.isLeaf())))) {
_other.planidentifikasjon = this.planidentifikasjon;
}
final PropertyTree landkodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("landkode"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(landkodePropertyTree!= null):((landkodePropertyTree == null)||(!landkodePropertyTree.isLeaf())))) {
_other.landkode = this.landkode;
}
final PropertyTree fylkesnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("fylkesnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(fylkesnummerPropertyTree!= null):((fylkesnummerPropertyTree == null)||(!fylkesnummerPropertyTree.isLeaf())))) {
_other.fylkesnummer = this.fylkesnummer;
}
final PropertyTree kommunenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kommunenummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kommunenummerPropertyTree!= null):((kommunenummerPropertyTree == null)||(!kommunenummerPropertyTree.isLeaf())))) {
_other.kommunenummer = this.kommunenummer;
}
}
public<_B >Planident.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Planident.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Planident.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Planident.Builder<_B> copyOf(final Planident _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Planident.Builder<_B> _newBuilder = new Planident.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Planident.Builder copyExcept(final Planident _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Planident.Builder copyOnly(final Planident _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Planident _storedValue;
private String planidentifikasjon;
private String landkode;
private String fylkesnummer;
private String kommunenummer;
public Builder(final _B _parentBuilder, final Planident _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.planidentifikasjon = _other.planidentifikasjon;
this.landkode = _other.landkode;
this.fylkesnummer = _other.fylkesnummer;
this.kommunenummer = _other.kommunenummer;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Planident _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree planidentifikasjonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("planidentifikasjon"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(planidentifikasjonPropertyTree!= null):((planidentifikasjonPropertyTree == null)||(!planidentifikasjonPropertyTree.isLeaf())))) {
this.planidentifikasjon = _other.planidentifikasjon;
}
final PropertyTree landkodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("landkode"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(landkodePropertyTree!= null):((landkodePropertyTree == null)||(!landkodePropertyTree.isLeaf())))) {
this.landkode = _other.landkode;
}
final PropertyTree fylkesnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("fylkesnummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(fylkesnummerPropertyTree!= null):((fylkesnummerPropertyTree == null)||(!fylkesnummerPropertyTree.isLeaf())))) {
this.fylkesnummer = _other.fylkesnummer;
}
final PropertyTree kommunenummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("kommunenummer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(kommunenummerPropertyTree!= null):((kommunenummerPropertyTree == null)||(!kommunenummerPropertyTree.isLeaf())))) {
this.kommunenummer = _other.kommunenummer;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Planident >_P init(final _P _product) {
_product.planidentifikasjon = this.planidentifikasjon;
_product.landkode = this.landkode;
_product.fylkesnummer = this.fylkesnummer;
_product.kommunenummer = this.kommunenummer;
return _product;
}
/**
* Sets the new value of "planidentifikasjon" (any previous value will be replaced)
*
* @param planidentifikasjon
* New value of the "planidentifikasjon" property.
*/
public Planident.Builder<_B> withPlanidentifikasjon(final String planidentifikasjon) {
this.planidentifikasjon = planidentifikasjon;
return this;
}
/**
* Sets the new value of "landkode" (any previous value will be replaced)
*
* @param landkode
* New value of the "landkode" property.
*/
public Planident.Builder<_B> withLandkode(final String landkode) {
this.landkode = landkode;
return this;
}
/**
* Sets the new value of "fylkesnummer" (any previous value will be replaced)
*
* @param fylkesnummer
* New value of the "fylkesnummer" property.
*/
public Planident.Builder<_B> withFylkesnummer(final String fylkesnummer) {
this.fylkesnummer = fylkesnummer;
return this;
}
/**
* Sets the new value of "kommunenummer" (any previous value will be replaced)
*
* @param kommunenummer
* New value of the "kommunenummer" property.
*/
public Planident.Builder<_B> withKommunenummer(final String kommunenummer) {
this.kommunenummer = kommunenummer;
return this;
}
@Override
public Planident build() {
if (_storedValue == null) {
return this.init(new Planident());
} else {
return ((Planident) _storedValue);
}
}
public Planident.Builder<_B> copyOf(final Planident _other) {
_other.copyTo(this);
return this;
}
public Planident.Builder<_B> copyOf(final Planident.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Planident.Selector
{
Select() {
super(null, null, null);
}
public static Planident.Select _root() {
return new Planident.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> planidentifikasjon = null;
private com.kscs.util.jaxb.Selector> landkode = null;
private com.kscs.util.jaxb.Selector> fylkesnummer = null;
private com.kscs.util.jaxb.Selector> kommunenummer = 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.planidentifikasjon!= null) {
products.put("planidentifikasjon", this.planidentifikasjon.init());
}
if (this.landkode!= null) {
products.put("landkode", this.landkode.init());
}
if (this.fylkesnummer!= null) {
products.put("fylkesnummer", this.fylkesnummer.init());
}
if (this.kommunenummer!= null) {
products.put("kommunenummer", this.kommunenummer.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> planidentifikasjon() {
return ((this.planidentifikasjon == null)?this.planidentifikasjon = new com.kscs.util.jaxb.Selector>(this._root, this, "planidentifikasjon"):this.planidentifikasjon);
}
public com.kscs.util.jaxb.Selector> landkode() {
return ((this.landkode == null)?this.landkode = new com.kscs.util.jaxb.Selector>(this._root, this, "landkode"):this.landkode);
}
public com.kscs.util.jaxb.Selector> fylkesnummer() {
return ((this.fylkesnummer == null)?this.fylkesnummer = new com.kscs.util.jaxb.Selector>(this._root, this, "fylkesnummer"):this.fylkesnummer);
}
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);
}
}
}