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

no.arkivverket.standarder.noark5.arkivmelding.Merknad Maven / Gradle / Ivy

//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.10.09 at 07:52:57 AM UTC 
//


package no.arkivverket.standarder.noark5.arkivmelding;

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.datatype.XMLGregorianCalendar;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;


/**
 * 

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="merknadstekst" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}merknadstekst"/>
 *         <element name="merknadstype" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}merknadstype" minOccurs="0"/>
 *         <element name="merknadsdato" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}merknadsdato"/>
 *         <element name="merknadRegistrertAv" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}merknadRegistrertAv"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "merknad", propOrder = { "merknadstekst", "merknadstype", "merknadsdato", "merknadRegistrertAv" }) public class Merknad { @XmlElement(required = true) protected String merknadstekst; protected String merknadstype; @XmlElement(required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar merknadsdato; @XmlElement(required = true) protected String merknadRegistrertAv; /** * 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 String } * */ public String getMerknadstype() { return merknadstype; } /** * Sets the value of the merknadstype property. * * @param value * allowed object is * {@link String } * */ public void setMerknadstype(String value) { this.merknadstype = value; } /** * Gets the value of the merknadsdato property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getMerknadsdato() { return merknadsdato; } /** * Sets the value of the merknadsdato property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setMerknadsdato(XMLGregorianCalendar 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; } /** * 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.merknadstekst = this.merknadstekst; _other.merknadstype = this.merknadstype; _other.merknadsdato = ((this.merknadsdato == null)?null:((XMLGregorianCalendar) this.merknadsdato.clone())); _other.merknadRegistrertAv = this.merknadRegistrertAv; } 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 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; } final PropertyTree merknadsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadsdato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadsdatoPropertyTree!= null):((merknadsdatoPropertyTree == null)||(!merknadsdatoPropertyTree.isLeaf())))) { _other.merknadsdato = ((this.merknadsdato == null)?null:((XMLGregorianCalendar) this.merknadsdato.clone())); } final PropertyTree merknadRegistrertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadRegistrertAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadRegistrertAvPropertyTree!= null):((merknadRegistrertAvPropertyTree == null)||(!merknadRegistrertAvPropertyTree.isLeaf())))) { _other.merknadRegistrertAv = this.merknadRegistrertAv; } } 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 merknadstekst; private String merknadstype; private XMLGregorianCalendar merknadsdato; private String merknadRegistrertAv; public Builder(final _B _parentBuilder, final Merknad _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.merknadstekst = _other.merknadstekst; this.merknadstype = _other.merknadstype; this.merknadsdato = ((_other.merknadsdato == null)?null:((XMLGregorianCalendar) _other.merknadsdato.clone())); this.merknadRegistrertAv = _other.merknadRegistrertAv; } 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 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; } final PropertyTree merknadsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadsdato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadsdatoPropertyTree!= null):((merknadsdatoPropertyTree == null)||(!merknadsdatoPropertyTree.isLeaf())))) { this.merknadsdato = ((_other.merknadsdato == null)?null:((XMLGregorianCalendar) _other.merknadsdato.clone())); } final PropertyTree merknadRegistrertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("merknadRegistrertAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(merknadRegistrertAvPropertyTree!= null):((merknadRegistrertAvPropertyTree == null)||(!merknadRegistrertAvPropertyTree.isLeaf())))) { this.merknadRegistrertAv = _other.merknadRegistrertAv; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Merknad >_P init(final _P _product) { _product.merknadstekst = this.merknadstekst; _product.merknadstype = this.merknadstype; _product.merknadsdato = this.merknadsdato; _product.merknadRegistrertAv = this.merknadRegistrertAv; return _product; } /** * 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 String merknadstype) { this.merknadstype = merknadstype; return this; } /** * 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 XMLGregorianCalendar 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; } @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> merknadstekst = null; private com.kscs.util.jaxb.Selector> merknadstype = null; private com.kscs.util.jaxb.Selector> merknadsdato = null; private com.kscs.util.jaxb.Selector> merknadRegistrertAv = 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.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()); } return products; } 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 com.kscs.util.jaxb.Selector> merknadstype() { return ((this.merknadstype == null)?this.merknadstype = new com.kscs.util.jaxb.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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy