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