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

no.ks.fiks.arkiv.v1.arkivstruktur.Sletting 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.arkivstruktur;

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.Slettingstype;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for sletting complex type. * *

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

 * <complexType name="sletting">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="slettingstype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}slettingstype"/>
 *         <element name="slettetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}slettetDato"/>
 *         <element name="slettetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}slettetAv"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "sletting", propOrder = { "slettingstype", "slettetDato", "slettetAv" }) public class Sletting { @XmlElement(required = true) protected Slettingstype slettingstype; @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime slettetDato; @XmlElement(required = true) protected String slettetAv; /** * Gets the value of the slettingstype property. * * @return * possible object is * {@link Slettingstype } * */ public Slettingstype getSlettingstype() { return slettingstype; } /** * Sets the value of the slettingstype property. * * @param value * allowed object is * {@link Slettingstype } * */ public void setSlettingstype(Slettingstype value) { this.slettingstype = value; } /** * Gets the value of the slettetDato property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getSlettetDato() { return slettetDato; } /** * Sets the value of the slettetDato property. * * @param value * allowed object is * {@link String } * */ public void setSlettetDato(ZonedDateTime value) { this.slettetDato = value; } /** * Gets the value of the slettetAv property. * * @return * possible object is * {@link String } * */ public String getSlettetAv() { return slettetAv; } /** * Sets the value of the slettetAv property. * * @param value * allowed object is * {@link String } * */ public void setSlettetAv(String value) { this.slettetAv = 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 Sletting.Builder<_B> _other) { _other.slettingstype = ((this.slettingstype == null)?null:this.slettingstype.newCopyBuilder(_other)); _other.slettetDato = this.slettetDato; _other.slettetAv = this.slettetAv; } public<_B >Sletting.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Sletting.Builder<_B>(_parentBuilder, this, true); } public Sletting.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Sletting.Builder builder() { return new Sletting.Builder(null, null, false); } public static<_B >Sletting.Builder<_B> copyOf(final Sletting _other) { final Sletting.Builder<_B> _newBuilder = new Sletting.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 Sletting.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree slettingstypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("slettingstype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettingstypePropertyTree!= null):((slettingstypePropertyTree == null)||(!slettingstypePropertyTree.isLeaf())))) { _other.slettingstype = ((this.slettingstype == null)?null:this.slettingstype.newCopyBuilder(_other, slettingstypePropertyTree, _propertyTreeUse)); } final PropertyTree slettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("slettetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettetDatoPropertyTree!= null):((slettetDatoPropertyTree == null)||(!slettetDatoPropertyTree.isLeaf())))) { _other.slettetDato = this.slettetDato; } final PropertyTree slettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("slettetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettetAvPropertyTree!= null):((slettetAvPropertyTree == null)||(!slettetAvPropertyTree.isLeaf())))) { _other.slettetAv = this.slettetAv; } } public<_B >Sletting.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Sletting.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Sletting.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Sletting.Builder<_B> copyOf(final Sletting _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Sletting.Builder<_B> _newBuilder = new Sletting.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Sletting.Builder copyExcept(final Sletting _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Sletting.Builder copyOnly(final Sletting _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Sletting _storedValue; private Slettingstype.Builder> slettingstype; private ZonedDateTime slettetDato; private String slettetAv; public Builder(final _B _parentBuilder, final Sletting _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.slettingstype = ((_other.slettingstype == null)?null:_other.slettingstype.newCopyBuilder(this)); this.slettetDato = _other.slettetDato; this.slettetAv = _other.slettetAv; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Sletting _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree slettingstypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("slettingstype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettingstypePropertyTree!= null):((slettingstypePropertyTree == null)||(!slettingstypePropertyTree.isLeaf())))) { this.slettingstype = ((_other.slettingstype == null)?null:_other.slettingstype.newCopyBuilder(this, slettingstypePropertyTree, _propertyTreeUse)); } final PropertyTree slettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("slettetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettetDatoPropertyTree!= null):((slettetDatoPropertyTree == null)||(!slettetDatoPropertyTree.isLeaf())))) { this.slettetDato = _other.slettetDato; } final PropertyTree slettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("slettetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(slettetAvPropertyTree!= null):((slettetAvPropertyTree == null)||(!slettetAvPropertyTree.isLeaf())))) { this.slettetAv = _other.slettetAv; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Sletting >_P init(final _P _product) { _product.slettingstype = ((this.slettingstype == null)?null:this.slettingstype.build()); _product.slettetDato = this.slettetDato; _product.slettetAv = this.slettetAv; return _product; } /** * Sets the new value of "slettingstype" (any previous value will be replaced) * * @param slettingstype * New value of the "slettingstype" property. */ public Sletting.Builder<_B> withSlettingstype(final Slettingstype slettingstype) { this.slettingstype = ((slettingstype == null)?null:new Slettingstype.Builder>(this, slettingstype, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "slettingstype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Slettingstype.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "slettingstype" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Slettingstype.Builder#end()} * to return to the current builder. */ public Slettingstype.Builder> withSlettingstype() { if (this.slettingstype!= null) { return this.slettingstype; } return this.slettingstype = new Slettingstype.Builder>(this, null, false); } /** * Sets the new value of "slettetDato" (any previous value will be replaced) * * @param slettetDato * New value of the "slettetDato" property. */ public Sletting.Builder<_B> withSlettetDato(final ZonedDateTime slettetDato) { this.slettetDato = slettetDato; return this; } /** * Sets the new value of "slettetAv" (any previous value will be replaced) * * @param slettetAv * New value of the "slettetAv" property. */ public Sletting.Builder<_B> withSlettetAv(final String slettetAv) { this.slettetAv = slettetAv; return this; } @Override public Sletting build() { if (_storedValue == null) { return this.init(new Sletting()); } else { return ((Sletting) _storedValue); } } public Sletting.Builder<_B> copyOf(final Sletting _other) { _other.copyTo(this); return this; } public Sletting.Builder<_B> copyOf(final Sletting.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Sletting.Selector { Select() { super(null, null, null); } public static Sletting.Select _root() { return new Sletting.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private Slettingstype.Selector> slettingstype = null; private com.kscs.util.jaxb.Selector> slettetDato = null; private com.kscs.util.jaxb.Selector> slettetAv = 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.slettingstype!= null) { products.put("slettingstype", this.slettingstype.init()); } if (this.slettetDato!= null) { products.put("slettetDato", this.slettetDato.init()); } if (this.slettetAv!= null) { products.put("slettetAv", this.slettetAv.init()); } return products; } public Slettingstype.Selector> slettingstype() { return ((this.slettingstype == null)?this.slettingstype = new Slettingstype.Selector>(this._root, this, "slettingstype"):this.slettingstype); } public com.kscs.util.jaxb.Selector> slettetDato() { return ((this.slettetDato == null)?this.slettetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "slettetDato"):this.slettetDato); } public com.kscs.util.jaxb.Selector> slettetAv() { return ((this.slettetAv == null)?this.slettetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "slettetAv"):this.slettetAv); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy