no.ks.fiks.arkiv.v1.innsyn.sok.SaksmappeFritekstSokdefinisjon Maven / Gradle / Ivy
//
// 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.sok;
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.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.Responstype;
/**
* Java class for saksmappeFritekstSokdefinisjon complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="saksmappeFritekstSokdefinisjon">
* <complexContent>
* <extension base="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}sokdefinisjon">
* <sequence>
* <element name="inkluder" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}saksmappeInkluder" maxOccurs="unbounded" minOccurs="0"/>
* <element name="soketekst" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "saksmappeFritekstSokdefinisjon", propOrder = {
"inkluders",
"soketekst"
})
public class SaksmappeFritekstSokdefinisjon
extends Sokdefinisjon
{
@XmlElement(name = "inkluder")
@XmlSchemaType(name = "string")
protected List inkluders;
@XmlElement(required = true)
protected String soketekst;
/**
* 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 SaksmappeInkluder }
*
*
*/
public List getInkluders() {
if (inkluders == null) {
inkluders = new ArrayList();
}
return this.inkluders;
}
/**
* Gets the value of the soketekst property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSoketekst() {
return soketekst;
}
/**
* Sets the value of the soketekst property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSoketekst(String value) {
this.soketekst = 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 SaksmappeFritekstSokdefinisjon.Builder<_B> _other) {
super.copyTo(_other);
if (this.inkluders == null) {
_other.inkluders = null;
} else {
_other.inkluders = new ArrayList();
for (SaksmappeInkluder _item: this.inkluders) {
_other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
_other.soketekst = this.soketekst;
}
@Override
public<_B >SaksmappeFritekstSokdefinisjon.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new SaksmappeFritekstSokdefinisjon.Builder<_B>(_parentBuilder, this, true);
}
@Override
public SaksmappeFritekstSokdefinisjon.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static SaksmappeFritekstSokdefinisjon.Builder builder() {
return new SaksmappeFritekstSokdefinisjon.Builder(null, null, false);
}
public static<_B >SaksmappeFritekstSokdefinisjon.Builder<_B> copyOf(final Sokdefinisjon _other) {
final SaksmappeFritekstSokdefinisjon.Builder<_B> _newBuilder = new SaksmappeFritekstSokdefinisjon.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
public static<_B >SaksmappeFritekstSokdefinisjon.Builder<_B> copyOf(final SaksmappeFritekstSokdefinisjon _other) {
final SaksmappeFritekstSokdefinisjon.Builder<_B> _newBuilder = new SaksmappeFritekstSokdefinisjon.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 SaksmappeFritekstSokdefinisjon.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
super.copyTo(_other, _propertyTree, _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 (SaksmappeInkluder _item: this.inkluders) {
_other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree soketekstPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("soketekst"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(soketekstPropertyTree!= null):((soketekstPropertyTree == null)||(!soketekstPropertyTree.isLeaf())))) {
_other.soketekst = this.soketekst;
}
}
@Override
public<_B >SaksmappeFritekstSokdefinisjon.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new SaksmappeFritekstSokdefinisjon.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
@Override
public SaksmappeFritekstSokdefinisjon.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >SaksmappeFritekstSokdefinisjon.Builder<_B> copyOf(final Sokdefinisjon _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final SaksmappeFritekstSokdefinisjon.Builder<_B> _newBuilder = new SaksmappeFritekstSokdefinisjon.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static<_B >SaksmappeFritekstSokdefinisjon.Builder<_B> copyOf(final SaksmappeFritekstSokdefinisjon _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final SaksmappeFritekstSokdefinisjon.Builder<_B> _newBuilder = new SaksmappeFritekstSokdefinisjon.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static SaksmappeFritekstSokdefinisjon.Builder copyExcept(final Sokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static SaksmappeFritekstSokdefinisjon.Builder copyExcept(final SaksmappeFritekstSokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static SaksmappeFritekstSokdefinisjon.Builder copyOnly(final Sokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static SaksmappeFritekstSokdefinisjon.Builder copyOnly(final SaksmappeFritekstSokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >
extends Sokdefinisjon.Builder<_B>
implements Buildable
{
private List inkluders;
private String soketekst;
public Builder(final _B _parentBuilder, final SaksmappeFritekstSokdefinisjon _other, final boolean _copy) {
super(_parentBuilder, _other, _copy);
if (_other!= null) {
if (_other.inkluders == null) {
this.inkluders = null;
} else {
this.inkluders = new ArrayList();
for (SaksmappeInkluder _item: _other.inkluders) {
this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
this.soketekst = _other.soketekst;
}
}
public Builder(final _B _parentBuilder, final SaksmappeFritekstSokdefinisjon _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
super(_parentBuilder, _other, _copy, _propertyTree, _propertyTreeUse);
if (_other!= null) {
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 (SaksmappeInkluder _item: _other.inkluders) {
this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree soketekstPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("soketekst"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(soketekstPropertyTree!= null):((soketekstPropertyTree == null)||(!soketekstPropertyTree.isLeaf())))) {
this.soketekst = _other.soketekst;
}
}
}
protected<_P extends SaksmappeFritekstSokdefinisjon >_P init(final _P _product) {
if (this.inkluders!= null) {
final List inkluders = new ArrayList(this.inkluders.size());
for (Buildable _item: this.inkluders) {
inkluders.add(((SaksmappeInkluder) _item.build()));
}
_product.inkluders = inkluders;
}
_product.soketekst = this.soketekst;
return super.init(_product);
}
/**
* Adds the given items to the value of "inkluders"
*
* @param inkluders
* Items to add to the value of the "inkluders" property
*/
public SaksmappeFritekstSokdefinisjon.Builder<_B> addInkluders(final Iterable extends SaksmappeInkluder> inkluders) {
if (inkluders!= null) {
if (this.inkluders == null) {
this.inkluders = new ArrayList();
}
for (SaksmappeInkluder _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 SaksmappeFritekstSokdefinisjon.Builder<_B> withInkluders(final Iterable extends SaksmappeInkluder> 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 SaksmappeFritekstSokdefinisjon.Builder<_B> addInkluders(SaksmappeInkluder... 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 SaksmappeFritekstSokdefinisjon.Builder<_B> withInkluders(SaksmappeInkluder... inkluders) {
withInkluders(Arrays.asList(inkluders));
return this;
}
/**
* Sets the new value of "soketekst" (any previous value will be replaced)
*
* @param soketekst
* New value of the "soketekst" property.
*/
public SaksmappeFritekstSokdefinisjon.Builder<_B> withSoketekst(final String soketekst) {
this.soketekst = soketekst;
return this;
}
/**
* Sets the new value of "responstype" (any previous value will be replaced)
*
* @param responstype
* New value of the "responstype" property.
*/
@Override
public SaksmappeFritekstSokdefinisjon.Builder<_B> withResponstype(final Responstype responstype) {
super.withResponstype(responstype);
return this;
}
@Override
public SaksmappeFritekstSokdefinisjon build() {
if (_storedValue == null) {
return this.init(new SaksmappeFritekstSokdefinisjon());
} else {
return ((SaksmappeFritekstSokdefinisjon) _storedValue);
}
}
public SaksmappeFritekstSokdefinisjon.Builder<_B> copyOf(final SaksmappeFritekstSokdefinisjon _other) {
_other.copyTo(this);
return this;
}
public SaksmappeFritekstSokdefinisjon.Builder<_B> copyOf(final SaksmappeFritekstSokdefinisjon.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends SaksmappeFritekstSokdefinisjon.Selector
{
Select() {
super(null, null, null);
}
public static SaksmappeFritekstSokdefinisjon.Select _root() {
return new SaksmappeFritekstSokdefinisjon.Select();
}
}
public static class Selector , TParent >
extends Sokdefinisjon.Selector
{
private com.kscs.util.jaxb.Selector> inkluders = null;
private com.kscs.util.jaxb.Selector> soketekst = 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.inkluders!= null) {
products.put("inkluders", this.inkluders.init());
}
if (this.soketekst!= null) {
products.put("soketekst", this.soketekst.init());
}
return products;
}
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);
}
public com.kscs.util.jaxb.Selector> soketekst() {
return ((this.soketekst == null)?this.soketekst = new com.kscs.util.jaxb.Selector>(this._root, this, "soketekst"):this.soketekst);
}
}
}