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

no.ks.fiks.arkiv.v1.innsyn.registrering.RegistreringHent 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.innsyn.registrering;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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.ReferanseTilRegistrering;


/**
 * 

Java class for registreringHent complex type. * *

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

 * <complexType name="registreringHent">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="system" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="referanseTilRegistrering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseTilRegistrering"/>
 *         <element name="inkluder" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/registrering/hent/v1}inkluder" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "registreringHent", propOrder = { "system", "referanseTilRegistrering", "inkluders" }) @XmlRootElement(name = "registreringHent") public class RegistreringHent { @XmlElement(required = true) protected String system; @XmlElement(required = true) protected ReferanseTilRegistrering referanseTilRegistrering; @XmlElement(name = "inkluder") @XmlSchemaType(name = "string") protected List inkluders; /** * 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 referanseTilRegistrering property. * * @return * possible object is * {@link ReferanseTilRegistrering } * */ public ReferanseTilRegistrering getReferanseTilRegistrering() { return referanseTilRegistrering; } /** * Sets the value of the referanseTilRegistrering property. * * @param value * allowed object is * {@link ReferanseTilRegistrering } * */ public void setReferanseTilRegistrering(ReferanseTilRegistrering value) { this.referanseTilRegistrering = value; } /** * Gets the value of the inkluders property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the inkluders property. * *

* For example, to add a new item, do as follows: *

     *    getInkluders().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Inkluder } * * */ public List getInkluders() { if (inkluders == null) { inkluders = new ArrayList(); } return this.inkluders; } /** * 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 RegistreringHent.Builder<_B> _other) { _other.system = this.system; _other.referanseTilRegistrering = ((this.referanseTilRegistrering == null)?null:this.referanseTilRegistrering.newCopyBuilder(_other)); if (this.inkluders == null) { _other.inkluders = null; } else { _other.inkluders = new ArrayList(); for (Inkluder _item: this.inkluders) { _other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } public<_B >RegistreringHent.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new RegistreringHent.Builder<_B>(_parentBuilder, this, true); } public RegistreringHent.Builder newCopyBuilder() { return newCopyBuilder(null); } public static RegistreringHent.Builder builder() { return new RegistreringHent.Builder(null, null, false); } public static<_B >RegistreringHent.Builder<_B> copyOf(final RegistreringHent _other) { final RegistreringHent.Builder<_B> _newBuilder = new RegistreringHent.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 RegistreringHent.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 referanseTilRegistreringPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseTilRegistrering")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseTilRegistreringPropertyTree!= null):((referanseTilRegistreringPropertyTree == null)||(!referanseTilRegistreringPropertyTree.isLeaf())))) { _other.referanseTilRegistrering = ((this.referanseTilRegistrering == null)?null:this.referanseTilRegistrering.newCopyBuilder(_other, referanseTilRegistreringPropertyTree, _propertyTreeUse)); } final PropertyTree inkludersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("inkluders")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(inkludersPropertyTree!= null):((inkludersPropertyTree == null)||(!inkludersPropertyTree.isLeaf())))) { if (this.inkluders == null) { _other.inkluders = null; } else { _other.inkluders = new ArrayList(); for (Inkluder _item: this.inkluders) { _other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } public<_B >RegistreringHent.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new RegistreringHent.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public RegistreringHent.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >RegistreringHent.Builder<_B> copyOf(final RegistreringHent _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final RegistreringHent.Builder<_B> _newBuilder = new RegistreringHent.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static RegistreringHent.Builder copyExcept(final RegistreringHent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static RegistreringHent.Builder copyOnly(final RegistreringHent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final RegistreringHent _storedValue; private String system; private ReferanseTilRegistrering.Builder> referanseTilRegistrering; private List inkluders; public Builder(final _B _parentBuilder, final RegistreringHent _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.system = _other.system; this.referanseTilRegistrering = ((_other.referanseTilRegistrering == null)?null:_other.referanseTilRegistrering.newCopyBuilder(this)); if (_other.inkluders == null) { this.inkluders = null; } else { this.inkluders = new ArrayList(); for (Inkluder _item: _other.inkluders) { this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final RegistreringHent _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 referanseTilRegistreringPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseTilRegistrering")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseTilRegistreringPropertyTree!= null):((referanseTilRegistreringPropertyTree == null)||(!referanseTilRegistreringPropertyTree.isLeaf())))) { this.referanseTilRegistrering = ((_other.referanseTilRegistrering == null)?null:_other.referanseTilRegistrering.newCopyBuilder(this, referanseTilRegistreringPropertyTree, _propertyTreeUse)); } final PropertyTree inkludersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("inkluders")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(inkludersPropertyTree!= null):((inkludersPropertyTree == null)||(!inkludersPropertyTree.isLeaf())))) { if (_other.inkluders == null) { this.inkluders = null; } else { this.inkluders = new ArrayList(); for (Inkluder _item: _other.inkluders) { this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends RegistreringHent >_P init(final _P _product) { _product.system = this.system; _product.referanseTilRegistrering = ((this.referanseTilRegistrering == null)?null:this.referanseTilRegistrering.build()); if (this.inkluders!= null) { final List inkluders = new ArrayList(this.inkluders.size()); for (Buildable _item: this.inkluders) { inkluders.add(((Inkluder) _item.build())); } _product.inkluders = inkluders; } return _product; } /** * Sets the new value of "system" (any previous value will be replaced) * * @param system * New value of the "system" property. */ public RegistreringHent.Builder<_B> withSystem(final String system) { this.system = system; return this; } /** * Sets the new value of "referanseTilRegistrering" (any previous value will be * replaced) * * @param referanseTilRegistrering * New value of the "referanseTilRegistrering" property. */ public RegistreringHent.Builder<_B> withReferanseTilRegistrering(final ReferanseTilRegistrering referanseTilRegistrering) { this.referanseTilRegistrering = ((referanseTilRegistrering == null)?null:new ReferanseTilRegistrering.Builder>(this, referanseTilRegistrering, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "referanseTilRegistrering" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilRegistrering.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "referanseTilRegistrering" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilRegistrering.Builder#end()} * to return to the current builder. */ public ReferanseTilRegistrering.Builder> withReferanseTilRegistrering() { if (this.referanseTilRegistrering!= null) { return this.referanseTilRegistrering; } return this.referanseTilRegistrering = new ReferanseTilRegistrering.Builder>(this, null, false); } /** * Adds the given items to the value of "inkluders" * * @param inkluders * Items to add to the value of the "inkluders" property */ public RegistreringHent.Builder<_B> addInkluders(final Iterable inkluders) { if (inkluders!= null) { if (this.inkluders == null) { this.inkluders = new ArrayList(); } for (Inkluder _item: inkluders) { this.inkluders.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Sets the new value of "inkluders" (any previous value will be replaced) * * @param inkluders * New value of the "inkluders" property. */ public RegistreringHent.Builder<_B> withInkluders(final Iterable inkluders) { if (this.inkluders!= null) { this.inkluders.clear(); } return addInkluders(inkluders); } /** * Adds the given items to the value of "inkluders" * * @param inkluders * Items to add to the value of the "inkluders" property */ public RegistreringHent.Builder<_B> addInkluders(Inkluder... inkluders) { addInkluders(Arrays.asList(inkluders)); return this; } /** * Sets the new value of "inkluders" (any previous value will be replaced) * * @param inkluders * New value of the "inkluders" property. */ public RegistreringHent.Builder<_B> withInkluders(Inkluder... inkluders) { withInkluders(Arrays.asList(inkluders)); return this; } @Override public RegistreringHent build() { if (_storedValue == null) { return this.init(new RegistreringHent()); } else { return ((RegistreringHent) _storedValue); } } public RegistreringHent.Builder<_B> copyOf(final RegistreringHent _other) { _other.copyTo(this); return this; } public RegistreringHent.Builder<_B> copyOf(final RegistreringHent.Builder _other) { return copyOf(_other.build()); } } public static class Select extends RegistreringHent.Selector { Select() { super(null, null, null); } public static RegistreringHent.Select _root() { return new RegistreringHent.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> system = null; private ReferanseTilRegistrering.Selector> referanseTilRegistrering = null; private com.kscs.util.jaxb.Selector> inkluders = 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.referanseTilRegistrering!= null) { products.put("referanseTilRegistrering", this.referanseTilRegistrering.init()); } if (this.inkluders!= null) { products.put("inkluders", this.inkluders.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 ReferanseTilRegistrering.Selector> referanseTilRegistrering() { return ((this.referanseTilRegistrering == null)?this.referanseTilRegistrering = new ReferanseTilRegistrering.Selector>(this._root, this, "referanseTilRegistrering"):this.referanseTilRegistrering); } public com.kscs.util.jaxb.Selector> inkluders() { return ((this.inkluders == null)?this.inkluders = new com.kscs.util.jaxb.Selector>(this._root, this, "inkluders"):this.inkluders); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy