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