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

no.ks.fiks.arkiv.v1.arkivmelding.opprett.Arkivmelding 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.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;


/**
 * 

Java class for arkivmelding complex type. * *

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

 * <complexType name="arkivmelding">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="system" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="regel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="antallFiler" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <choice>
 *           <element name="mappe" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}mappe" minOccurs="0"/>
 *           <element name="registrering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}registrering" minOccurs="0"/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "arkivmelding", propOrder = { "system", "regel", "antallFiler", "registrering", "mappe" }) @XmlRootElement(name = "arkivmelding") public class Arkivmelding { @XmlElement(required = true) protected String system; protected String regel; protected int antallFiler; protected Registrering registrering; protected Mappe mappe; /** * Gets the value of the system property. * * @return * possible object is * {@link String } * */ public String getSystem() { return system; } /** * Sets the value of the system property. * * @param value * allowed object is * {@link String } * */ public void setSystem(String value) { this.system = value; } /** * Gets the value of the regel property. * * @return * possible object is * {@link String } * */ public String getRegel() { return regel; } /** * Sets the value of the regel property. * * @param value * allowed object is * {@link String } * */ public void setRegel(String value) { this.regel = value; } /** * Gets the value of the antallFiler property. * */ public int getAntallFiler() { return antallFiler; } /** * Sets the value of the antallFiler property. * */ public void setAntallFiler(int value) { this.antallFiler = value; } /** * Gets the value of the registrering property. * * @return * possible object is * {@link Registrering } * */ public Registrering getRegistrering() { return registrering; } /** * Sets the value of the registrering property. * * @param value * allowed object is * {@link Registrering } * */ public void setRegistrering(Registrering value) { this.registrering = value; } /** * Gets the value of the mappe property. * * @return * possible object is * {@link Mappe } * */ public Mappe getMappe() { return mappe; } /** * Sets the value of the mappe property. * * @param value * allowed object is * {@link Mappe } * */ public void setMappe(Mappe value) { this.mappe = 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 Arkivmelding.Builder<_B> _other) { _other.system = this.system; _other.regel = this.regel; _other.antallFiler = this.antallFiler; _other.registrering = ((this.registrering == null)?null:this.registrering.newCopyBuilder(_other)); _other.mappe = ((this.mappe == null)?null:this.mappe.newCopyBuilder(_other)); } public<_B >Arkivmelding.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Arkivmelding.Builder<_B>(_parentBuilder, this, true); } public Arkivmelding.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Arkivmelding.Builder builder() { return new Arkivmelding.Builder(null, null, false); } public static<_B >Arkivmelding.Builder<_B> copyOf(final Arkivmelding _other) { final Arkivmelding.Builder<_B> _newBuilder = new Arkivmelding.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 Arkivmelding.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) { _other.system = this.system; } final PropertyTree regelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("regel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(regelPropertyTree!= null):((regelPropertyTree == null)||(!regelPropertyTree.isLeaf())))) { _other.regel = this.regel; } final PropertyTree antallFilerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("antallFiler")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(antallFilerPropertyTree!= null):((antallFilerPropertyTree == null)||(!antallFilerPropertyTree.isLeaf())))) { _other.antallFiler = this.antallFiler; } final PropertyTree registreringPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registrering")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringPropertyTree!= null):((registreringPropertyTree == null)||(!registreringPropertyTree.isLeaf())))) { _other.registrering = ((this.registrering == null)?null:this.registrering.newCopyBuilder(_other, registreringPropertyTree, _propertyTreeUse)); } final PropertyTree mappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappe")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappePropertyTree!= null):((mappePropertyTree == null)||(!mappePropertyTree.isLeaf())))) { _other.mappe = ((this.mappe == null)?null:this.mappe.newCopyBuilder(_other, mappePropertyTree, _propertyTreeUse)); } } public<_B >Arkivmelding.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Arkivmelding.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Arkivmelding.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Arkivmelding.Builder<_B> copyOf(final Arkivmelding _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Arkivmelding.Builder<_B> _newBuilder = new Arkivmelding.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Arkivmelding.Builder copyExcept(final Arkivmelding _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Arkivmelding.Builder copyOnly(final Arkivmelding _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Arkivmelding _storedValue; private String system; private String regel; private int antallFiler; private Registrering.Builder> registrering; private Mappe.Builder> mappe; public Builder(final _B _parentBuilder, final Arkivmelding _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.system = _other.system; this.regel = _other.regel; this.antallFiler = _other.antallFiler; this.registrering = ((_other.registrering == null)?null:_other.registrering.newCopyBuilder(this)); this.mappe = ((_other.mappe == null)?null:_other.mappe.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Arkivmelding _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) { this.system = _other.system; } final PropertyTree regelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("regel")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(regelPropertyTree!= null):((regelPropertyTree == null)||(!regelPropertyTree.isLeaf())))) { this.regel = _other.regel; } final PropertyTree antallFilerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("antallFiler")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(antallFilerPropertyTree!= null):((antallFilerPropertyTree == null)||(!antallFilerPropertyTree.isLeaf())))) { this.antallFiler = _other.antallFiler; } final PropertyTree registreringPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("registrering")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(registreringPropertyTree!= null):((registreringPropertyTree == null)||(!registreringPropertyTree.isLeaf())))) { this.registrering = ((_other.registrering == null)?null:_other.registrering.newCopyBuilder(this, registreringPropertyTree, _propertyTreeUse)); } final PropertyTree mappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mappe")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mappePropertyTree!= null):((mappePropertyTree == null)||(!mappePropertyTree.isLeaf())))) { this.mappe = ((_other.mappe == null)?null:_other.mappe.newCopyBuilder(this, mappePropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Arkivmelding >_P init(final _P _product) { _product.system = this.system; _product.regel = this.regel; _product.antallFiler = this.antallFiler; _product.registrering = ((this.registrering == null)?null:this.registrering.build()); _product.mappe = ((this.mappe == null)?null:this.mappe.build()); return _product; } /** * Sets the new value of "system" (any previous value will be replaced) * * @param system * New value of the "system" property. */ public Arkivmelding.Builder<_B> withSystem(final String system) { this.system = system; return this; } /** * Sets the new value of "regel" (any previous value will be replaced) * * @param regel * New value of the "regel" property. */ public Arkivmelding.Builder<_B> withRegel(final String regel) { this.regel = regel; return this; } /** * Sets the new value of "antallFiler" (any previous value will be replaced) * * @param antallFiler * New value of the "antallFiler" property. */ public Arkivmelding.Builder<_B> withAntallFiler(final int antallFiler) { this.antallFiler = antallFiler; return this; } /** * Sets the new value of "registrering" (any previous value will be replaced) * * @param registrering * New value of the "registrering" property. */ public Arkivmelding.Builder<_B> withRegistrering(final Registrering registrering) { this.registrering = ((registrering == null)?null:new Registrering.Builder>(this, registrering, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "registrering" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Registrering.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "registrering" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Registrering.Builder#end()} * to return to the current builder. */ public Registrering.Builder> withRegistrering() { if (this.registrering!= null) { return this.registrering; } return this.registrering = new Registrering.Builder>(this, null, false); } /** * Sets the new value of "mappe" (any previous value will be replaced) * * @param mappe * New value of the "mappe" property. */ public Arkivmelding.Builder<_B> withMappe(final Mappe mappe) { this.mappe = ((mappe == null)?null:new Mappe.Builder>(this, mappe, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the "mappe" * property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Mappe.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "mappe" property. * Use {@link no.ks.fiks.arkiv.v1.arkivmelding.opprett.Mappe.Builder#end()} to * return to the current builder. */ public Mappe.Builder> withMappe() { if (this.mappe!= null) { return this.mappe; } return this.mappe = new Mappe.Builder>(this, null, false); } @Override public Arkivmelding build() { if (_storedValue == null) { return this.init(new Arkivmelding()); } else { return ((Arkivmelding) _storedValue); } } public Arkivmelding.Builder<_B> copyOf(final Arkivmelding _other) { _other.copyTo(this); return this; } public Arkivmelding.Builder<_B> copyOf(final Arkivmelding.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Arkivmelding.Selector { Select() { super(null, null, null); } public static Arkivmelding.Select _root() { return new Arkivmelding.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> system = null; private com.kscs.util.jaxb.Selector> regel = null; private Registrering.Selector> registrering = null; private Mappe.Selector> mappe = 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.system!= null) { products.put("system", this.system.init()); } if (this.regel!= null) { products.put("regel", this.regel.init()); } if (this.registrering!= null) { products.put("registrering", this.registrering.init()); } if (this.mappe!= null) { products.put("mappe", this.mappe.init()); } return products; } public com.kscs.util.jaxb.Selector> system() { return ((this.system == null)?this.system = new com.kscs.util.jaxb.Selector>(this._root, this, "system"):this.system); } public com.kscs.util.jaxb.Selector> regel() { return ((this.regel == null)?this.regel = new com.kscs.util.jaxb.Selector>(this._root, this, "regel"):this.regel); } public Registrering.Selector> registrering() { return ((this.registrering == null)?this.registrering = new Registrering.Selector>(this._root, this, "registrering"):this.registrering); } public Mappe.Selector> mappe() { return ((this.mappe == null)?this.mappe = new Mappe.Selector>(this._root, this, "mappe"):this.mappe); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy