no.ks.fiks.arkiv.v1.arkivstruktur.minimum.KorrespondansepartMinimum 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.minimum;
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;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Korrespondanseparttype;
/**
* Java class for korrespondansepartMinimum complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="korrespondansepartMinimum">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="korrespondanseparttype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}korrespondanseparttype"/>
* <element name="korrespondansepartNavn" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}korrespondansepartNavn"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "korrespondansepartMinimum", propOrder = {
"korrespondanseparttype",
"korrespondansepartNavn"
})
public class KorrespondansepartMinimum {
@XmlElement(required = true)
protected Korrespondanseparttype korrespondanseparttype;
@XmlElement(required = true)
protected String korrespondansepartNavn;
/**
* Gets the value of the korrespondanseparttype property.
*
* @return
* possible object is
* {@link Korrespondanseparttype }
*
*/
public Korrespondanseparttype getKorrespondanseparttype() {
return korrespondanseparttype;
}
/**
* Sets the value of the korrespondanseparttype property.
*
* @param value
* allowed object is
* {@link Korrespondanseparttype }
*
*/
public void setKorrespondanseparttype(Korrespondanseparttype value) {
this.korrespondanseparttype = value;
}
/**
* Gets the value of the korrespondansepartNavn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKorrespondansepartNavn() {
return korrespondansepartNavn;
}
/**
* Sets the value of the korrespondansepartNavn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKorrespondansepartNavn(String value) {
this.korrespondansepartNavn = 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 KorrespondansepartMinimum.Builder<_B> _other) {
_other.korrespondanseparttype = ((this.korrespondanseparttype == null)?null:this.korrespondanseparttype.newCopyBuilder(_other));
_other.korrespondansepartNavn = this.korrespondansepartNavn;
}
public<_B >KorrespondansepartMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new KorrespondansepartMinimum.Builder<_B>(_parentBuilder, this, true);
}
public KorrespondansepartMinimum.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static KorrespondansepartMinimum.Builder builder() {
return new KorrespondansepartMinimum.Builder(null, null, false);
}
public static<_B >KorrespondansepartMinimum.Builder<_B> copyOf(final KorrespondansepartMinimum _other) {
final KorrespondansepartMinimum.Builder<_B> _newBuilder = new KorrespondansepartMinimum.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 KorrespondansepartMinimum.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree korrespondanseparttypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondanseparttype"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondanseparttypePropertyTree!= null):((korrespondanseparttypePropertyTree == null)||(!korrespondanseparttypePropertyTree.isLeaf())))) {
_other.korrespondanseparttype = ((this.korrespondanseparttype == null)?null:this.korrespondanseparttype.newCopyBuilder(_other, korrespondanseparttypePropertyTree, _propertyTreeUse));
}
final PropertyTree korrespondansepartNavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondansepartNavn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartNavnPropertyTree!= null):((korrespondansepartNavnPropertyTree == null)||(!korrespondansepartNavnPropertyTree.isLeaf())))) {
_other.korrespondansepartNavn = this.korrespondansepartNavn;
}
}
public<_B >KorrespondansepartMinimum.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new KorrespondansepartMinimum.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public KorrespondansepartMinimum.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >KorrespondansepartMinimum.Builder<_B> copyOf(final KorrespondansepartMinimum _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final KorrespondansepartMinimum.Builder<_B> _newBuilder = new KorrespondansepartMinimum.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static KorrespondansepartMinimum.Builder copyExcept(final KorrespondansepartMinimum _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static KorrespondansepartMinimum.Builder copyOnly(final KorrespondansepartMinimum _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final KorrespondansepartMinimum _storedValue;
private Korrespondanseparttype.Builder> korrespondanseparttype;
private String korrespondansepartNavn;
public Builder(final _B _parentBuilder, final KorrespondansepartMinimum _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.korrespondanseparttype = ((_other.korrespondanseparttype == null)?null:_other.korrespondanseparttype.newCopyBuilder(this));
this.korrespondansepartNavn = _other.korrespondansepartNavn;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final KorrespondansepartMinimum _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree korrespondanseparttypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondanseparttype"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondanseparttypePropertyTree!= null):((korrespondanseparttypePropertyTree == null)||(!korrespondanseparttypePropertyTree.isLeaf())))) {
this.korrespondanseparttype = ((_other.korrespondanseparttype == null)?null:_other.korrespondanseparttype.newCopyBuilder(this, korrespondanseparttypePropertyTree, _propertyTreeUse));
}
final PropertyTree korrespondansepartNavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("korrespondansepartNavn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(korrespondansepartNavnPropertyTree!= null):((korrespondansepartNavnPropertyTree == null)||(!korrespondansepartNavnPropertyTree.isLeaf())))) {
this.korrespondansepartNavn = _other.korrespondansepartNavn;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends KorrespondansepartMinimum >_P init(final _P _product) {
_product.korrespondanseparttype = ((this.korrespondanseparttype == null)?null:this.korrespondanseparttype.build());
_product.korrespondansepartNavn = this.korrespondansepartNavn;
return _product;
}
/**
* Sets the new value of "korrespondanseparttype" (any previous value will be
* replaced)
*
* @param korrespondanseparttype
* New value of the "korrespondanseparttype" property.
*/
public KorrespondansepartMinimum.Builder<_B> withKorrespondanseparttype(final Korrespondanseparttype korrespondanseparttype) {
this.korrespondanseparttype = ((korrespondanseparttype == null)?null:new Korrespondanseparttype.Builder>(this, korrespondanseparttype, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "korrespondanseparttype" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Korrespondanseparttype.Builder#end()}
* to return to the current builder.
*
* @return
* A new builder to build the value of the "korrespondanseparttype" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Korrespondanseparttype.Builder#end()}
* to return to the current builder.
*/
public Korrespondanseparttype.Builder extends KorrespondansepartMinimum.Builder<_B>> withKorrespondanseparttype() {
if (this.korrespondanseparttype!= null) {
return this.korrespondanseparttype;
}
return this.korrespondanseparttype = new Korrespondanseparttype.Builder>(this, null, false);
}
/**
* Sets the new value of "korrespondansepartNavn" (any previous value will be
* replaced)
*
* @param korrespondansepartNavn
* New value of the "korrespondansepartNavn" property.
*/
public KorrespondansepartMinimum.Builder<_B> withKorrespondansepartNavn(final String korrespondansepartNavn) {
this.korrespondansepartNavn = korrespondansepartNavn;
return this;
}
@Override
public KorrespondansepartMinimum build() {
if (_storedValue == null) {
return this.init(new KorrespondansepartMinimum());
} else {
return ((KorrespondansepartMinimum) _storedValue);
}
}
public KorrespondansepartMinimum.Builder<_B> copyOf(final KorrespondansepartMinimum _other) {
_other.copyTo(this);
return this;
}
public KorrespondansepartMinimum.Builder<_B> copyOf(final KorrespondansepartMinimum.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends KorrespondansepartMinimum.Selector
{
Select() {
super(null, null, null);
}
public static KorrespondansepartMinimum.Select _root() {
return new KorrespondansepartMinimum.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private Korrespondanseparttype.Selector> korrespondanseparttype = null;
private com.kscs.util.jaxb.Selector> korrespondansepartNavn = 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.korrespondanseparttype!= null) {
products.put("korrespondanseparttype", this.korrespondanseparttype.init());
}
if (this.korrespondansepartNavn!= null) {
products.put("korrespondansepartNavn", this.korrespondansepartNavn.init());
}
return products;
}
public Korrespondanseparttype.Selector> korrespondanseparttype() {
return ((this.korrespondanseparttype == null)?this.korrespondanseparttype = new Korrespondanseparttype.Selector>(this._root, this, "korrespondanseparttype"):this.korrespondanseparttype);
}
public com.kscs.util.jaxb.Selector> korrespondansepartNavn() {
return ((this.korrespondansepartNavn == null)?this.korrespondansepartNavn = new com.kscs.util.jaxb.Selector>(this._root, this, "korrespondansepartNavn"):this.korrespondansepartNavn);
}
}
}