no.ks.fiks.arkiv.v1.avskrivning.slett.SlettAvskrivning 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.slett;
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 slettAvskrivning complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="slettAvskrivning">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <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 = "slettAvskrivning", propOrder = {
"referanseTilJournalpost",
"korrespondansepartID"
})
@XmlRootElement(name = "slettAvskrivning")
public class SlettAvskrivning {
@XmlElement(required = true)
protected ReferanseTilJournalpost referanseTilJournalpost;
@XmlElement(required = true)
protected String korrespondansepartID;
/**
* 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 SlettAvskrivning.Builder<_B> _other) {
_other.referanseTilJournalpost = ((this.referanseTilJournalpost == null)?null:this.referanseTilJournalpost.newCopyBuilder(_other));
_other.korrespondansepartID = this.korrespondansepartID;
}
public<_B >SlettAvskrivning.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new SlettAvskrivning.Builder<_B>(_parentBuilder, this, true);
}
public SlettAvskrivning.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static SlettAvskrivning.Builder builder() {
return new SlettAvskrivning.Builder(null, null, false);
}
public static<_B >SlettAvskrivning.Builder<_B> copyOf(final SlettAvskrivning _other) {
final SlettAvskrivning.Builder<_B> _newBuilder = new SlettAvskrivning.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 SlettAvskrivning.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _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 >SlettAvskrivning.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new SlettAvskrivning.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public SlettAvskrivning.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >SlettAvskrivning.Builder<_B> copyOf(final SlettAvskrivning _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final SlettAvskrivning.Builder<_B> _newBuilder = new SlettAvskrivning.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static SlettAvskrivning.Builder copyExcept(final SlettAvskrivning _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static SlettAvskrivning.Builder copyOnly(final SlettAvskrivning _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final SlettAvskrivning _storedValue;
private ReferanseTilJournalpost.Builder> referanseTilJournalpost;
private String korrespondansepartID;
public Builder(final _B _parentBuilder, final SlettAvskrivning _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
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 SlettAvskrivning _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
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 SlettAvskrivning >_P init(final _P _product) {
_product.referanseTilJournalpost = ((this.referanseTilJournalpost == null)?null:this.referanseTilJournalpost.build());
_product.korrespondansepartID = this.korrespondansepartID;
return _product;
}
/**
* Sets the new value of "referanseTilJournalpost" (any previous value will be
* replaced)
*
* @param referanseTilJournalpost
* New value of the "referanseTilJournalpost" property.
*/
public SlettAvskrivning.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 SlettAvskrivning.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 SlettAvskrivning.Builder<_B> withKorrespondansepartID(final String korrespondansepartID) {
this.korrespondansepartID = korrespondansepartID;
return this;
}
@Override
public SlettAvskrivning build() {
if (_storedValue == null) {
return this.init(new SlettAvskrivning());
} else {
return ((SlettAvskrivning) _storedValue);
}
}
public SlettAvskrivning.Builder<_B> copyOf(final SlettAvskrivning _other) {
_other.copyTo(this);
return this;
}
public SlettAvskrivning.Builder<_B> copyOf(final SlettAvskrivning.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends SlettAvskrivning.Selector
{
Select() {
super(null, null, null);
}
public static SlettAvskrivning.Select _root() {
return new SlettAvskrivning.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
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.referanseTilJournalpost!= null) {
products.put("referanseTilJournalpost", this.referanseTilJournalpost.init());
}
if (this.korrespondansepartID!= null) {
products.put("korrespondansepartID", this.korrespondansepartID.init());
}
return products;
}
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);
}
}
}