All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.ks.fiks.arkiv.v1.arkivmelding.opprett.Avskrivning Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
//
// 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.time.LocalDate;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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.Avskrivningsmaate;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilJournalpost;
import org.w3._2001.xmlschema.Adapter3;


/**
 * 

Java class for avskrivning complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="avskrivning">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="avskrivningsdato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avskrivningsdato"/>
 *         <element name="avskrevetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avskrevetAv"/>
 *         <element name="avskrivningsmaate" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}avskrivningsmaate"/>
 *         <element name="referanseAvskrivesAvJournalpost" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseTilJournalpost" minOccurs="0"/>
 *         <element name="referanseAvskriverJournalpost" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseTilJournalpost" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "avskrivning", propOrder = { "avskrivningsdato", "avskrevetAv", "avskrivningsmaate", "referanseAvskrivesAvJournalpost", "referanseAvskriverJournalpost" }) public class Avskrivning { @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter3 .class) @XmlSchemaType(name = "date") protected LocalDate avskrivningsdato; @XmlElement(required = true) protected String avskrevetAv; @XmlElement(required = true) protected Avskrivningsmaate avskrivningsmaate; protected ReferanseTilJournalpost referanseAvskrivesAvJournalpost; protected ReferanseTilJournalpost referanseAvskriverJournalpost; /** * Gets the value of the avskrivningsdato property. * * @return * possible object is * {@link String } * */ public LocalDate getAvskrivningsdato() { return avskrivningsdato; } /** * Sets the value of the avskrivningsdato property. * * @param value * allowed object is * {@link String } * */ public void setAvskrivningsdato(LocalDate value) { this.avskrivningsdato = value; } /** * Gets the value of the avskrevetAv property. * * @return * possible object is * {@link String } * */ public String getAvskrevetAv() { return avskrevetAv; } /** * Sets the value of the avskrevetAv property. * * @param value * allowed object is * {@link String } * */ public void setAvskrevetAv(String value) { this.avskrevetAv = value; } /** * Gets the value of the avskrivningsmaate property. * * @return * possible object is * {@link Avskrivningsmaate } * */ public Avskrivningsmaate getAvskrivningsmaate() { return avskrivningsmaate; } /** * Sets the value of the avskrivningsmaate property. * * @param value * allowed object is * {@link Avskrivningsmaate } * */ public void setAvskrivningsmaate(Avskrivningsmaate value) { this.avskrivningsmaate = value; } /** * Gets the value of the referanseAvskrivesAvJournalpost property. * * @return * possible object is * {@link ReferanseTilJournalpost } * */ public ReferanseTilJournalpost getReferanseAvskrivesAvJournalpost() { return referanseAvskrivesAvJournalpost; } /** * Sets the value of the referanseAvskrivesAvJournalpost property. * * @param value * allowed object is * {@link ReferanseTilJournalpost } * */ public void setReferanseAvskrivesAvJournalpost(ReferanseTilJournalpost value) { this.referanseAvskrivesAvJournalpost = value; } /** * Gets the value of the referanseAvskriverJournalpost property. * * @return * possible object is * {@link ReferanseTilJournalpost } * */ public ReferanseTilJournalpost getReferanseAvskriverJournalpost() { return referanseAvskriverJournalpost; } /** * Sets the value of the referanseAvskriverJournalpost property. * * @param value * allowed object is * {@link ReferanseTilJournalpost } * */ public void setReferanseAvskriverJournalpost(ReferanseTilJournalpost value) { this.referanseAvskriverJournalpost = 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 Avskrivning.Builder<_B> _other) { _other.avskrivningsdato = this.avskrivningsdato; _other.avskrevetAv = this.avskrevetAv; _other.avskrivningsmaate = ((this.avskrivningsmaate == null)?null:this.avskrivningsmaate.newCopyBuilder(_other)); _other.referanseAvskrivesAvJournalpost = ((this.referanseAvskrivesAvJournalpost == null)?null:this.referanseAvskrivesAvJournalpost.newCopyBuilder(_other)); _other.referanseAvskriverJournalpost = ((this.referanseAvskriverJournalpost == null)?null:this.referanseAvskriverJournalpost.newCopyBuilder(_other)); } public<_B >Avskrivning.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Avskrivning.Builder<_B>(_parentBuilder, this, true); } public Avskrivning.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Avskrivning.Builder builder() { return new Avskrivning.Builder(null, null, false); } public static<_B >Avskrivning.Builder<_B> copyOf(final Avskrivning _other) { final Avskrivning.Builder<_B> _newBuilder = new Avskrivning.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 Avskrivning.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree avskrivningsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrivningsdato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrivningsdatoPropertyTree!= null):((avskrivningsdatoPropertyTree == null)||(!avskrivningsdatoPropertyTree.isLeaf())))) { _other.avskrivningsdato = this.avskrivningsdato; } final PropertyTree avskrevetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrevetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrevetAvPropertyTree!= null):((avskrevetAvPropertyTree == null)||(!avskrevetAvPropertyTree.isLeaf())))) { _other.avskrevetAv = this.avskrevetAv; } final PropertyTree avskrivningsmaatePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrivningsmaate")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrivningsmaatePropertyTree!= null):((avskrivningsmaatePropertyTree == null)||(!avskrivningsmaatePropertyTree.isLeaf())))) { _other.avskrivningsmaate = ((this.avskrivningsmaate == null)?null:this.avskrivningsmaate.newCopyBuilder(_other, avskrivningsmaatePropertyTree, _propertyTreeUse)); } final PropertyTree referanseAvskrivesAvJournalpostPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseAvskrivesAvJournalpost")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseAvskrivesAvJournalpostPropertyTree!= null):((referanseAvskrivesAvJournalpostPropertyTree == null)||(!referanseAvskrivesAvJournalpostPropertyTree.isLeaf())))) { _other.referanseAvskrivesAvJournalpost = ((this.referanseAvskrivesAvJournalpost == null)?null:this.referanseAvskrivesAvJournalpost.newCopyBuilder(_other, referanseAvskrivesAvJournalpostPropertyTree, _propertyTreeUse)); } final PropertyTree referanseAvskriverJournalpostPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseAvskriverJournalpost")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseAvskriverJournalpostPropertyTree!= null):((referanseAvskriverJournalpostPropertyTree == null)||(!referanseAvskriverJournalpostPropertyTree.isLeaf())))) { _other.referanseAvskriverJournalpost = ((this.referanseAvskriverJournalpost == null)?null:this.referanseAvskriverJournalpost.newCopyBuilder(_other, referanseAvskriverJournalpostPropertyTree, _propertyTreeUse)); } } public<_B >Avskrivning.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Avskrivning.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Avskrivning.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Avskrivning.Builder<_B> copyOf(final Avskrivning _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Avskrivning.Builder<_B> _newBuilder = new Avskrivning.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Avskrivning.Builder copyExcept(final Avskrivning _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Avskrivning.Builder copyOnly(final Avskrivning _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Avskrivning _storedValue; private LocalDate avskrivningsdato; private String avskrevetAv; private Avskrivningsmaate.Builder> avskrivningsmaate; private ReferanseTilJournalpost.Builder> referanseAvskrivesAvJournalpost; private ReferanseTilJournalpost.Builder> referanseAvskriverJournalpost; public Builder(final _B _parentBuilder, final Avskrivning _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.avskrivningsdato = _other.avskrivningsdato; this.avskrevetAv = _other.avskrevetAv; this.avskrivningsmaate = ((_other.avskrivningsmaate == null)?null:_other.avskrivningsmaate.newCopyBuilder(this)); this.referanseAvskrivesAvJournalpost = ((_other.referanseAvskrivesAvJournalpost == null)?null:_other.referanseAvskrivesAvJournalpost.newCopyBuilder(this)); this.referanseAvskriverJournalpost = ((_other.referanseAvskriverJournalpost == null)?null:_other.referanseAvskriverJournalpost.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Avskrivning _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree avskrivningsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrivningsdato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrivningsdatoPropertyTree!= null):((avskrivningsdatoPropertyTree == null)||(!avskrivningsdatoPropertyTree.isLeaf())))) { this.avskrivningsdato = _other.avskrivningsdato; } final PropertyTree avskrevetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrevetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrevetAvPropertyTree!= null):((avskrevetAvPropertyTree == null)||(!avskrevetAvPropertyTree.isLeaf())))) { this.avskrevetAv = _other.avskrevetAv; } final PropertyTree avskrivningsmaatePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("avskrivningsmaate")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(avskrivningsmaatePropertyTree!= null):((avskrivningsmaatePropertyTree == null)||(!avskrivningsmaatePropertyTree.isLeaf())))) { this.avskrivningsmaate = ((_other.avskrivningsmaate == null)?null:_other.avskrivningsmaate.newCopyBuilder(this, avskrivningsmaatePropertyTree, _propertyTreeUse)); } final PropertyTree referanseAvskrivesAvJournalpostPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseAvskrivesAvJournalpost")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseAvskrivesAvJournalpostPropertyTree!= null):((referanseAvskrivesAvJournalpostPropertyTree == null)||(!referanseAvskrivesAvJournalpostPropertyTree.isLeaf())))) { this.referanseAvskrivesAvJournalpost = ((_other.referanseAvskrivesAvJournalpost == null)?null:_other.referanseAvskrivesAvJournalpost.newCopyBuilder(this, referanseAvskrivesAvJournalpostPropertyTree, _propertyTreeUse)); } final PropertyTree referanseAvskriverJournalpostPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseAvskriverJournalpost")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseAvskriverJournalpostPropertyTree!= null):((referanseAvskriverJournalpostPropertyTree == null)||(!referanseAvskriverJournalpostPropertyTree.isLeaf())))) { this.referanseAvskriverJournalpost = ((_other.referanseAvskriverJournalpost == null)?null:_other.referanseAvskriverJournalpost.newCopyBuilder(this, referanseAvskriverJournalpostPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Avskrivning >_P init(final _P _product) { _product.avskrivningsdato = this.avskrivningsdato; _product.avskrevetAv = this.avskrevetAv; _product.avskrivningsmaate = ((this.avskrivningsmaate == null)?null:this.avskrivningsmaate.build()); _product.referanseAvskrivesAvJournalpost = ((this.referanseAvskrivesAvJournalpost == null)?null:this.referanseAvskrivesAvJournalpost.build()); _product.referanseAvskriverJournalpost = ((this.referanseAvskriverJournalpost == null)?null:this.referanseAvskriverJournalpost.build()); return _product; } /** * Sets the new value of "avskrivningsdato" (any previous value will be replaced) * * @param avskrivningsdato * New value of the "avskrivningsdato" property. */ public Avskrivning.Builder<_B> withAvskrivningsdato(final LocalDate avskrivningsdato) { this.avskrivningsdato = avskrivningsdato; return this; } /** * Sets the new value of "avskrevetAv" (any previous value will be replaced) * * @param avskrevetAv * New value of the "avskrevetAv" property. */ public Avskrivning.Builder<_B> withAvskrevetAv(final String avskrevetAv) { this.avskrevetAv = avskrevetAv; return this; } /** * Sets the new value of "avskrivningsmaate" (any previous value will be replaced) * * @param avskrivningsmaate * New value of the "avskrivningsmaate" property. */ public Avskrivning.Builder<_B> withAvskrivningsmaate(final Avskrivningsmaate avskrivningsmaate) { this.avskrivningsmaate = ((avskrivningsmaate == null)?null:new Avskrivningsmaate.Builder>(this, avskrivningsmaate, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "avskrivningsmaate" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Avskrivningsmaate.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "avskrivningsmaate" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Avskrivningsmaate.Builder#end()} * to return to the current builder. */ public Avskrivningsmaate.Builder> withAvskrivningsmaate() { if (this.avskrivningsmaate!= null) { return this.avskrivningsmaate; } return this.avskrivningsmaate = new Avskrivningsmaate.Builder>(this, null, false); } /** * Sets the new value of "referanseAvskrivesAvJournalpost" (any previous value will * be replaced) * * @param referanseAvskrivesAvJournalpost * New value of the "referanseAvskrivesAvJournalpost" property. */ public Avskrivning.Builder<_B> withReferanseAvskrivesAvJournalpost(final ReferanseTilJournalpost referanseAvskrivesAvJournalpost) { this.referanseAvskrivesAvJournalpost = ((referanseAvskrivesAvJournalpost == null)?null:new ReferanseTilJournalpost.Builder>(this, referanseAvskrivesAvJournalpost, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseAvskrivesAvJournalpost" 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 "referanseAvskrivesAvJournalpost" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilJournalpost.Builder#end()} * to return to the current builder. */ public ReferanseTilJournalpost.Builder> withReferanseAvskrivesAvJournalpost() { if (this.referanseAvskrivesAvJournalpost!= null) { return this.referanseAvskrivesAvJournalpost; } return this.referanseAvskrivesAvJournalpost = new ReferanseTilJournalpost.Builder>(this, null, false); } /** * Sets the new value of "referanseAvskriverJournalpost" (any previous value will * be replaced) * * @param referanseAvskriverJournalpost * New value of the "referanseAvskriverJournalpost" property. */ public Avskrivning.Builder<_B> withReferanseAvskriverJournalpost(final ReferanseTilJournalpost referanseAvskriverJournalpost) { this.referanseAvskriverJournalpost = ((referanseAvskriverJournalpost == null)?null:new ReferanseTilJournalpost.Builder>(this, referanseAvskriverJournalpost, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseAvskriverJournalpost" 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 "referanseAvskriverJournalpost" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilJournalpost.Builder#end()} * to return to the current builder. */ public ReferanseTilJournalpost.Builder> withReferanseAvskriverJournalpost() { if (this.referanseAvskriverJournalpost!= null) { return this.referanseAvskriverJournalpost; } return this.referanseAvskriverJournalpost = new ReferanseTilJournalpost.Builder>(this, null, false); } @Override public Avskrivning build() { if (_storedValue == null) { return this.init(new Avskrivning()); } else { return ((Avskrivning) _storedValue); } } public Avskrivning.Builder<_B> copyOf(final Avskrivning _other) { _other.copyTo(this); return this; } public Avskrivning.Builder<_B> copyOf(final Avskrivning.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Avskrivning.Selector { Select() { super(null, null, null); } public static Avskrivning.Select _root() { return new Avskrivning.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> avskrivningsdato = null; private com.kscs.util.jaxb.Selector> avskrevetAv = null; private Avskrivningsmaate.Selector> avskrivningsmaate = null; private ReferanseTilJournalpost.Selector> referanseAvskrivesAvJournalpost = null; private ReferanseTilJournalpost.Selector> referanseAvskriverJournalpost = 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.avskrivningsdato!= null) { products.put("avskrivningsdato", this.avskrivningsdato.init()); } if (this.avskrevetAv!= null) { products.put("avskrevetAv", this.avskrevetAv.init()); } if (this.avskrivningsmaate!= null) { products.put("avskrivningsmaate", this.avskrivningsmaate.init()); } if (this.referanseAvskrivesAvJournalpost!= null) { products.put("referanseAvskrivesAvJournalpost", this.referanseAvskrivesAvJournalpost.init()); } if (this.referanseAvskriverJournalpost!= null) { products.put("referanseAvskriverJournalpost", this.referanseAvskriverJournalpost.init()); } return products; } public com.kscs.util.jaxb.Selector> avskrivningsdato() { return ((this.avskrivningsdato == null)?this.avskrivningsdato = new com.kscs.util.jaxb.Selector>(this._root, this, "avskrivningsdato"):this.avskrivningsdato); } public com.kscs.util.jaxb.Selector> avskrevetAv() { return ((this.avskrevetAv == null)?this.avskrevetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "avskrevetAv"):this.avskrevetAv); } public Avskrivningsmaate.Selector> avskrivningsmaate() { return ((this.avskrivningsmaate == null)?this.avskrivningsmaate = new Avskrivningsmaate.Selector>(this._root, this, "avskrivningsmaate"):this.avskrivningsmaate); } public ReferanseTilJournalpost.Selector> referanseAvskrivesAvJournalpost() { return ((this.referanseAvskrivesAvJournalpost == null)?this.referanseAvskrivesAvJournalpost = new ReferanseTilJournalpost.Selector>(this._root, this, "referanseAvskrivesAvJournalpost"):this.referanseAvskrivesAvJournalpost); } public ReferanseTilJournalpost.Selector> referanseAvskriverJournalpost() { return ((this.referanseAvskriverJournalpost == null)?this.referanseAvskriverJournalpost = new ReferanseTilJournalpost.Selector>(this._root, this, "referanseAvskriverJournalpost"):this.referanseAvskriverJournalpost); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy