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

no.ks.fiks.arkiv.v1.arkivmelding.opprett.Merknad 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.ZonedDateTime;
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.Merknadstype;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for merknad complex type. * *

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

 * <complexType name="merknad">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="merknadID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}merknadID" minOccurs="0"/>
 *         <element name="merknadstekst" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}merknadstekst"/>
 *         <element name="merknadstype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}merknadstype" minOccurs="0"/>
 *         <element name="merknadsdato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}merknadsdato" minOccurs="0"/>
 *         <element name="merknadRegistrertAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}merknadRegistrertAv" minOccurs="0"/>
 *         <element name="erSkjermet" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}erSkjermet" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "merknad", propOrder = { "merknadID", "merknadstekst", "merknadstype", "merknadsdato", "merknadRegistrertAv", "erSkjermet" }) public class Merknad { protected String merknadID; @XmlElement(required = true) protected String merknadstekst; protected Merknadstype merknadstype; @XmlElement(type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime merknadsdato; protected String merknadRegistrertAv; protected Boolean erSkjermet; /** * Gets the value of the merknadID property. * * @return * possible object is * {@link String } * */ public String getMerknadID() { return merknadID; } /** * Sets the value of the merknadID property. * * @param value * allowed object is * {@link String } * */ public void setMerknadID(String value) { this.merknadID = value; } /** * Gets the value of the merknadstekst property. * * @return * possible object is * {@link String } * */ public String getMerknadstekst() { return merknadstekst; } /** * Sets the value of the merknadstekst property. * * @param value * allowed object is * {@link String } * */ public void setMerknadstekst(String value) { this.merknadstekst = value; } /** * Gets the value of the merknadstype property. * * @return * possible object is * {@link Merknadstype } * */ public Merknadstype getMerknadstype() { return merknadstype; } /** * Sets the value of the merknadstype property. * * @param value * allowed object is * {@link Merknadstype } * */ public void setMerknadstype(Merknadstype value) { this.merknadstype = value; } /** * Gets the value of the merknadsdato property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getMerknadsdato() { return merknadsdato; } /** * Sets the value of the merknadsdato property. * * @param value * allowed object is * {@link String } * */ public void setMerknadsdato(ZonedDateTime value) { this.merknadsdato = value; } /** * Gets the value of the merknadRegistrertAv property. * * @return * possible object is * {@link String } * */ public String getMerknadRegistrertAv() { return merknadRegistrertAv; } /** * Sets the value of the merknadRegistrertAv property. * * @param value * allowed object is * {@link String } * */ public void setMerknadRegistrertAv(String value) { this.merknadRegistrertAv = value; } /** * Gets the value of the erSkjermet property. * * @return * possible object is * {@link Boolean } * */ public Boolean isErSkjermet() { return erSkjermet; } /** * Sets the value of the erSkjermet property. * * @param value * allowed object is * {@link Boolean } * */ public void setErSkjermet(Boolean value) { this.erSkjermet = 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 Merknad.Builder<_B> _other) { _other.merknadID = this.merknadID; _other.merknadstekst = this.merknadstekst; _other.merknadstype = ((this.merknadstype == null)?null:this.merknadstype.newCopyBuilder(_other)); _other.merknadsdato = this.merknadsdato; _other.merknadRegistrertAv = this.merknadRegistrertAv; _other.erSkjermet = this.erSkjermet; } public<_B >Merknad.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Merknad.Builder<_B>(_parentBuilder, this, true); } public Merknad.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Merknad.Builder builder() { return new Merknad.Builder(null, null, false); } public static<_B >Merknad.Builder<_B> copyOf(final Merknad _other) { final Merknad.Builder<_B> _newBuilder = new Merknad.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 Merknad.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree merknadIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadIDPropertyTree!= null):((merknadIDPropertyTree == null)||(!merknadIDPropertyTree.isLeaf())))) { _other.merknadID = this.merknadID; } final PropertyTree merknadstekstPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadstekst")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadstekstPropertyTree!= null):((merknadstekstPropertyTree == null)||(!merknadstekstPropertyTree.isLeaf())))) { _other.merknadstekst = this.merknadstekst; } final PropertyTree merknadstypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadstype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadstypePropertyTree!= null):((merknadstypePropertyTree == null)||(!merknadstypePropertyTree.isLeaf())))) { _other.merknadstype = ((this.merknadstype == null)?null:this.merknadstype.newCopyBuilder(_other, merknadstypePropertyTree, _propertyTreeUse)); } final PropertyTree merknadsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadsdato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadsdatoPropertyTree!= null):((merknadsdatoPropertyTree == null)||(!merknadsdatoPropertyTree.isLeaf())))) { _other.merknadsdato = this.merknadsdato; } final PropertyTree merknadRegistrertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadRegistrertAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadRegistrertAvPropertyTree!= null):((merknadRegistrertAvPropertyTree == null)||(!merknadRegistrertAvPropertyTree.isLeaf())))) { _other.merknadRegistrertAv = this.merknadRegistrertAv; } final PropertyTree erSkjermetPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erSkjermet")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erSkjermetPropertyTree!= null):((erSkjermetPropertyTree == null)||(!erSkjermetPropertyTree.isLeaf())))) { _other.erSkjermet = this.erSkjermet; } } public<_B >Merknad.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Merknad.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Merknad.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Merknad.Builder<_B> copyOf(final Merknad _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Merknad.Builder<_B> _newBuilder = new Merknad.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Merknad.Builder copyExcept(final Merknad _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Merknad.Builder copyOnly(final Merknad _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Merknad _storedValue; private String merknadID; private String merknadstekst; private Merknadstype.Builder> merknadstype; private ZonedDateTime merknadsdato; private String merknadRegistrertAv; private Boolean erSkjermet; public Builder(final _B _parentBuilder, final Merknad _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.merknadID = _other.merknadID; this.merknadstekst = _other.merknadstekst; this.merknadstype = ((_other.merknadstype == null)?null:_other.merknadstype.newCopyBuilder(this)); this.merknadsdato = _other.merknadsdato; this.merknadRegistrertAv = _other.merknadRegistrertAv; this.erSkjermet = _other.erSkjermet; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Merknad _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree merknadIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadIDPropertyTree!= null):((merknadIDPropertyTree == null)||(!merknadIDPropertyTree.isLeaf())))) { this.merknadID = _other.merknadID; } final PropertyTree merknadstekstPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadstekst")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadstekstPropertyTree!= null):((merknadstekstPropertyTree == null)||(!merknadstekstPropertyTree.isLeaf())))) { this.merknadstekst = _other.merknadstekst; } final PropertyTree merknadstypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadstype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadstypePropertyTree!= null):((merknadstypePropertyTree == null)||(!merknadstypePropertyTree.isLeaf())))) { this.merknadstype = ((_other.merknadstype == null)?null:_other.merknadstype.newCopyBuilder(this, merknadstypePropertyTree, _propertyTreeUse)); } final PropertyTree merknadsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadsdato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadsdatoPropertyTree!= null):((merknadsdatoPropertyTree == null)||(!merknadsdatoPropertyTree.isLeaf())))) { this.merknadsdato = _other.merknadsdato; } final PropertyTree merknadRegistrertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadRegistrertAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadRegistrertAvPropertyTree!= null):((merknadRegistrertAvPropertyTree == null)||(!merknadRegistrertAvPropertyTree.isLeaf())))) { this.merknadRegistrertAv = _other.merknadRegistrertAv; } final PropertyTree erSkjermetPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("erSkjermet")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(erSkjermetPropertyTree!= null):((erSkjermetPropertyTree == null)||(!erSkjermetPropertyTree.isLeaf())))) { this.erSkjermet = _other.erSkjermet; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Merknad >_P init(final _P _product) { _product.merknadID = this.merknadID; _product.merknadstekst = this.merknadstekst; _product.merknadstype = ((this.merknadstype == null)?null:this.merknadstype.build()); _product.merknadsdato = this.merknadsdato; _product.merknadRegistrertAv = this.merknadRegistrertAv; _product.erSkjermet = this.erSkjermet; return _product; } /** * Sets the new value of "merknadID" (any previous value will be replaced) * * @param merknadID * New value of the "merknadID" property. */ public Merknad.Builder<_B> withMerknadID(final String merknadID) { this.merknadID = merknadID; return this; } /** * Sets the new value of "merknadstekst" (any previous value will be replaced) * * @param merknadstekst * New value of the "merknadstekst" property. */ public Merknad.Builder<_B> withMerknadstekst(final String merknadstekst) { this.merknadstekst = merknadstekst; return this; } /** * Sets the new value of "merknadstype" (any previous value will be replaced) * * @param merknadstype * New value of the "merknadstype" property. */ public Merknad.Builder<_B> withMerknadstype(final Merknadstype merknadstype) { this.merknadstype = ((merknadstype == null)?null:new Merknadstype.Builder>(this, merknadstype, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "merknadstype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Merknadstype.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "merknadstype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Merknadstype.Builder#end()} to * return to the current builder. */ public Merknadstype.Builder> withMerknadstype() { if (this.merknadstype!= null) { return this.merknadstype; } return this.merknadstype = new Merknadstype.Builder>(this, null, false); } /** * Sets the new value of "merknadsdato" (any previous value will be replaced) * * @param merknadsdato * New value of the "merknadsdato" property. */ public Merknad.Builder<_B> withMerknadsdato(final ZonedDateTime merknadsdato) { this.merknadsdato = merknadsdato; return this; } /** * Sets the new value of "merknadRegistrertAv" (any previous value will be * replaced) * * @param merknadRegistrertAv * New value of the "merknadRegistrertAv" property. */ public Merknad.Builder<_B> withMerknadRegistrertAv(final String merknadRegistrertAv) { this.merknadRegistrertAv = merknadRegistrertAv; return this; } /** * Sets the new value of "erSkjermet" (any previous value will be replaced) * * @param erSkjermet * New value of the "erSkjermet" property. */ public Merknad.Builder<_B> withErSkjermet(final Boolean erSkjermet) { this.erSkjermet = erSkjermet; return this; } @Override public Merknad build() { if (_storedValue == null) { return this.init(new Merknad()); } else { return ((Merknad) _storedValue); } } public Merknad.Builder<_B> copyOf(final Merknad _other) { _other.copyTo(this); return this; } public Merknad.Builder<_B> copyOf(final Merknad.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Merknad.Selector { Select() { super(null, null, null); } public static Merknad.Select _root() { return new Merknad.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> merknadID = null; private com.kscs.util.jaxb.Selector> merknadstekst = null; private Merknadstype.Selector> merknadstype = null; private com.kscs.util.jaxb.Selector> merknadsdato = null; private com.kscs.util.jaxb.Selector> merknadRegistrertAv = null; private com.kscs.util.jaxb.Selector> erSkjermet = 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.merknadID!= null) { products.put("merknadID", this.merknadID.init()); } if (this.merknadstekst!= null) { products.put("merknadstekst", this.merknadstekst.init()); } if (this.merknadstype!= null) { products.put("merknadstype", this.merknadstype.init()); } if (this.merknadsdato!= null) { products.put("merknadsdato", this.merknadsdato.init()); } if (this.merknadRegistrertAv!= null) { products.put("merknadRegistrertAv", this.merknadRegistrertAv.init()); } if (this.erSkjermet!= null) { products.put("erSkjermet", this.erSkjermet.init()); } return products; } public com.kscs.util.jaxb.Selector> merknadID() { return ((this.merknadID == null)?this.merknadID = new com.kscs.util.jaxb.Selector>(this._root, this, "merknadID"):this.merknadID); } public com.kscs.util.jaxb.Selector> merknadstekst() { return ((this.merknadstekst == null)?this.merknadstekst = new com.kscs.util.jaxb.Selector>(this._root, this, "merknadstekst"):this.merknadstekst); } public Merknadstype.Selector> merknadstype() { return ((this.merknadstype == null)?this.merknadstype = new Merknadstype.Selector>(this._root, this, "merknadstype"):this.merknadstype); } public com.kscs.util.jaxb.Selector> merknadsdato() { return ((this.merknadsdato == null)?this.merknadsdato = new com.kscs.util.jaxb.Selector>(this._root, this, "merknadsdato"):this.merknadsdato); } public com.kscs.util.jaxb.Selector> merknadRegistrertAv() { return ((this.merknadRegistrertAv == null)?this.merknadRegistrertAv = new com.kscs.util.jaxb.Selector>(this._root, this, "merknadRegistrertAv"):this.merknadRegistrertAv); } public com.kscs.util.jaxb.Selector> erSkjermet() { return ((this.erSkjermet == null)?this.erSkjermet = new com.kscs.util.jaxb.Selector>(this._root, this, "erSkjermet"):this.erSkjermet); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy