no.ks.fiks.arkiv.v1.innsyn.sok.JournalpostSokdefinisjon 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 journalpostSokdefinisjon complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="journalpostSokdefinisjon">
* <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}journalpostInkluder" maxOccurs="unbounded" minOccurs="0"/>
* <element name="parametere" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}journalpostParameter" maxOccurs="unbounded"/>
* <element name="sortering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}journalpostSortering" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "journalpostSokdefinisjon", propOrder = {
"inkluders",
"parameteres",
"sorterings"
})
public class JournalpostSokdefinisjon
extends Sokdefinisjon
{
@XmlElement(name = "inkluder")
@XmlSchemaType(name = "string")
protected List inkluders;
@XmlElement(name = "parametere", required = true)
protected List parameteres;
@XmlElement(name = "sortering")
protected List sorterings;
/**
* 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 JournalpostInkluder }
*
*
*/
public List getInkluders() {
if (inkluders == null) {
inkluders = new ArrayList();
}
return this.inkluders;
}
/**
* Gets the value of the parameteres 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 parameteres property.
*
*
* For example, to add a new item, do as follows:
*
* getParameteres().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JournalpostParameter }
*
*
*/
public List getParameteres() {
if (parameteres == null) {
parameteres = new ArrayList();
}
return this.parameteres;
}
/**
* Gets the value of the sorterings 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 sorterings property.
*
*
* For example, to add a new item, do as follows:
*
* getSorterings().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JournalpostSortering }
*
*
*/
public List getSorterings() {
if (sorterings == null) {
sorterings = new ArrayList();
}
return this.sorterings;
}
/**
* 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 JournalpostSokdefinisjon.Builder<_B> _other) {
super.copyTo(_other);
if (this.inkluders == null) {
_other.inkluders = null;
} else {
_other.inkluders = new ArrayList();
for (JournalpostInkluder _item: this.inkluders) {
_other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
if (this.parameteres == null) {
_other.parameteres = null;
} else {
_other.parameteres = new ArrayList>>();
for (JournalpostParameter _item: this.parameteres) {
_other.parameteres.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
if (this.sorterings == null) {
_other.sorterings = null;
} else {
_other.sorterings = new ArrayList>>();
for (JournalpostSortering _item: this.sorterings) {
_other.sorterings.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
}
@Override
public<_B >JournalpostSokdefinisjon.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new JournalpostSokdefinisjon.Builder<_B>(_parentBuilder, this, true);
}
@Override
public JournalpostSokdefinisjon.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static JournalpostSokdefinisjon.Builder builder() {
return new JournalpostSokdefinisjon.Builder(null, null, false);
}
public static<_B >JournalpostSokdefinisjon.Builder<_B> copyOf(final Sokdefinisjon _other) {
final JournalpostSokdefinisjon.Builder<_B> _newBuilder = new JournalpostSokdefinisjon.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
public static<_B >JournalpostSokdefinisjon.Builder<_B> copyOf(final JournalpostSokdefinisjon _other) {
final JournalpostSokdefinisjon.Builder<_B> _newBuilder = new JournalpostSokdefinisjon.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 JournalpostSokdefinisjon.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 (JournalpostInkluder _item: this.inkluders) {
_other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree parameteresPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("parameteres"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(parameteresPropertyTree!= null):((parameteresPropertyTree == null)||(!parameteresPropertyTree.isLeaf())))) {
if (this.parameteres == null) {
_other.parameteres = null;
} else {
_other.parameteres = new ArrayList>>();
for (JournalpostParameter _item: this.parameteres) {
_other.parameteres.add(((_item == null)?null:_item.newCopyBuilder(_other, parameteresPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree sorteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sorterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sorteringsPropertyTree!= null):((sorteringsPropertyTree == null)||(!sorteringsPropertyTree.isLeaf())))) {
if (this.sorterings == null) {
_other.sorterings = null;
} else {
_other.sorterings = new ArrayList>>();
for (JournalpostSortering _item: this.sorterings) {
_other.sorterings.add(((_item == null)?null:_item.newCopyBuilder(_other, sorteringsPropertyTree, _propertyTreeUse)));
}
}
}
}
@Override
public<_B >JournalpostSokdefinisjon.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new JournalpostSokdefinisjon.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
@Override
public JournalpostSokdefinisjon.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >JournalpostSokdefinisjon.Builder<_B> copyOf(final Sokdefinisjon _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final JournalpostSokdefinisjon.Builder<_B> _newBuilder = new JournalpostSokdefinisjon.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static<_B >JournalpostSokdefinisjon.Builder<_B> copyOf(final JournalpostSokdefinisjon _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final JournalpostSokdefinisjon.Builder<_B> _newBuilder = new JournalpostSokdefinisjon.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static JournalpostSokdefinisjon.Builder copyExcept(final Sokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static JournalpostSokdefinisjon.Builder copyExcept(final JournalpostSokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static JournalpostSokdefinisjon.Builder copyOnly(final Sokdefinisjon _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static JournalpostSokdefinisjon.Builder copyOnly(final JournalpostSokdefinisjon _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 List>> parameteres;
private List>> sorterings;
public Builder(final _B _parentBuilder, final JournalpostSokdefinisjon _other, final boolean _copy) {
super(_parentBuilder, _other, _copy);
if (_other!= null) {
if (_other.inkluders == null) {
this.inkluders = null;
} else {
this.inkluders = new ArrayList();
for (JournalpostInkluder _item: _other.inkluders) {
this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
if (_other.parameteres == null) {
this.parameteres = null;
} else {
this.parameteres = new ArrayList>>();
for (JournalpostParameter _item: _other.parameteres) {
this.parameteres.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
if (_other.sorterings == null) {
this.sorterings = null;
} else {
this.sorterings = new ArrayList>>();
for (JournalpostSortering _item: _other.sorterings) {
this.sorterings.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
}
}
public Builder(final _B _parentBuilder, final JournalpostSokdefinisjon _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 (JournalpostInkluder _item: _other.inkluders) {
this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree parameteresPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("parameteres"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(parameteresPropertyTree!= null):((parameteresPropertyTree == null)||(!parameteresPropertyTree.isLeaf())))) {
if (_other.parameteres == null) {
this.parameteres = null;
} else {
this.parameteres = new ArrayList>>();
for (JournalpostParameter _item: _other.parameteres) {
this.parameteres.add(((_item == null)?null:_item.newCopyBuilder(this, parameteresPropertyTree, _propertyTreeUse)));
}
}
}
final PropertyTree sorteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sorterings"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sorteringsPropertyTree!= null):((sorteringsPropertyTree == null)||(!sorteringsPropertyTree.isLeaf())))) {
if (_other.sorterings == null) {
this.sorterings = null;
} else {
this.sorterings = new ArrayList>>();
for (JournalpostSortering _item: _other.sorterings) {
this.sorterings.add(((_item == null)?null:_item.newCopyBuilder(this, sorteringsPropertyTree, _propertyTreeUse)));
}
}
}
}
}
protected<_P extends JournalpostSokdefinisjon >_P init(final _P _product) {
if (this.inkluders!= null) {
final List inkluders = new ArrayList(this.inkluders.size());
for (Buildable _item: this.inkluders) {
inkluders.add(((JournalpostInkluder) _item.build()));
}
_product.inkluders = inkluders;
}
if (this.parameteres!= null) {
final List parameteres = new ArrayList(this.parameteres.size());
for (JournalpostParameter.Builder> _item: this.parameteres) {
parameteres.add(_item.build());
}
_product.parameteres = parameteres;
}
if (this.sorterings!= null) {
final List sorterings = new ArrayList(this.sorterings.size());
for (JournalpostSortering.Builder> _item: this.sorterings) {
sorterings.add(_item.build());
}
_product.sorterings = sorterings;
}
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 JournalpostSokdefinisjon.Builder<_B> addInkluders(final Iterable extends JournalpostInkluder> inkluders) {
if (inkluders!= null) {
if (this.inkluders == null) {
this.inkluders = new ArrayList();
}
for (JournalpostInkluder _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 JournalpostSokdefinisjon.Builder<_B> withInkluders(final Iterable extends JournalpostInkluder> 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 JournalpostSokdefinisjon.Builder<_B> addInkluders(JournalpostInkluder... 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 JournalpostSokdefinisjon.Builder<_B> withInkluders(JournalpostInkluder... inkluders) {
withInkluders(Arrays.asList(inkluders));
return this;
}
/**
* Adds the given items to the value of "parameteres"
*
* @param parameteres
* Items to add to the value of the "parameteres" property
*/
public JournalpostSokdefinisjon.Builder<_B> addParameteres(final Iterable extends JournalpostParameter> parameteres) {
if (parameteres!= null) {
if (this.parameteres == null) {
this.parameteres = new ArrayList>>();
}
for (JournalpostParameter _item: parameteres) {
this.parameteres.add(new JournalpostParameter.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "parameteres" (any previous value will be replaced)
*
* @param parameteres
* New value of the "parameteres" property.
*/
public JournalpostSokdefinisjon.Builder<_B> withParameteres(final Iterable extends JournalpostParameter> parameteres) {
if (this.parameteres!= null) {
this.parameteres.clear();
}
return addParameteres(parameteres);
}
/**
* Adds the given items to the value of "parameteres"
*
* @param parameteres
* Items to add to the value of the "parameteres" property
*/
public JournalpostSokdefinisjon.Builder<_B> addParameteres(JournalpostParameter... parameteres) {
addParameteres(Arrays.asList(parameteres));
return this;
}
/**
* Sets the new value of "parameteres" (any previous value will be replaced)
*
* @param parameteres
* New value of the "parameteres" property.
*/
public JournalpostSokdefinisjon.Builder<_B> withParameteres(JournalpostParameter... parameteres) {
withParameteres(Arrays.asList(parameteres));
return this;
}
/**
* Returns a new builder to build an additional value of the "Parameteres"
* property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.JournalpostParameter.Builder#end()} to
* return to the current builder.
*
* @return
* a new builder to build an additional value of the "Parameteres" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.JournalpostParameter.Builder#end()} to
* return to the current builder.
*/
public JournalpostParameter.Builder extends JournalpostSokdefinisjon.Builder<_B>> addParameteres() {
if (this.parameteres == null) {
this.parameteres = new ArrayList>>();
}
final JournalpostParameter.Builder> parameteres_Builder = new JournalpostParameter.Builder>(this, null, false);
this.parameteres.add(parameteres_Builder);
return parameteres_Builder;
}
/**
* Adds the given items to the value of "sorterings"
*
* @param sorterings
* Items to add to the value of the "sorterings" property
*/
public JournalpostSokdefinisjon.Builder<_B> addSorterings(final Iterable extends JournalpostSortering> sorterings) {
if (sorterings!= null) {
if (this.sorterings == null) {
this.sorterings = new ArrayList>>();
}
for (JournalpostSortering _item: sorterings) {
this.sorterings.add(new JournalpostSortering.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "sorterings" (any previous value will be replaced)
*
* @param sorterings
* New value of the "sorterings" property.
*/
public JournalpostSokdefinisjon.Builder<_B> withSorterings(final Iterable extends JournalpostSortering> sorterings) {
if (this.sorterings!= null) {
this.sorterings.clear();
}
return addSorterings(sorterings);
}
/**
* Adds the given items to the value of "sorterings"
*
* @param sorterings
* Items to add to the value of the "sorterings" property
*/
public JournalpostSokdefinisjon.Builder<_B> addSorterings(JournalpostSortering... sorterings) {
addSorterings(Arrays.asList(sorterings));
return this;
}
/**
* Sets the new value of "sorterings" (any previous value will be replaced)
*
* @param sorterings
* New value of the "sorterings" property.
*/
public JournalpostSokdefinisjon.Builder<_B> withSorterings(JournalpostSortering... sorterings) {
withSorterings(Arrays.asList(sorterings));
return this;
}
/**
* Returns a new builder to build an additional value of the "Sorterings" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.JournalpostSortering.Builder#end()} to
* return to the current builder.
*
* @return
* a new builder to build an additional value of the "Sorterings" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.JournalpostSortering.Builder#end()} to
* return to the current builder.
*/
public JournalpostSortering.Builder extends JournalpostSokdefinisjon.Builder<_B>> addSorterings() {
if (this.sorterings == null) {
this.sorterings = new ArrayList>>();
}
final JournalpostSortering.Builder> sorterings_Builder = new JournalpostSortering.Builder>(this, null, false);
this.sorterings.add(sorterings_Builder);
return sorterings_Builder;
}
/**
* Sets the new value of "responstype" (any previous value will be replaced)
*
* @param responstype
* New value of the "responstype" property.
*/
@Override
public JournalpostSokdefinisjon.Builder<_B> withResponstype(final Responstype responstype) {
super.withResponstype(responstype);
return this;
}
@Override
public JournalpostSokdefinisjon build() {
if (_storedValue == null) {
return this.init(new JournalpostSokdefinisjon());
} else {
return ((JournalpostSokdefinisjon) _storedValue);
}
}
public JournalpostSokdefinisjon.Builder<_B> copyOf(final JournalpostSokdefinisjon _other) {
_other.copyTo(this);
return this;
}
public JournalpostSokdefinisjon.Builder<_B> copyOf(final JournalpostSokdefinisjon.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends JournalpostSokdefinisjon.Selector
{
Select() {
super(null, null, null);
}
public static JournalpostSokdefinisjon.Select _root() {
return new JournalpostSokdefinisjon.Select();
}
}
public static class Selector , TParent >
extends Sokdefinisjon.Selector
{
private com.kscs.util.jaxb.Selector> inkluders = null;
private JournalpostParameter.Selector> parameteres = null;
private JournalpostSortering.Selector> sorterings = 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.parameteres!= null) {
products.put("parameteres", this.parameteres.init());
}
if (this.sorterings!= null) {
products.put("sorterings", this.sorterings.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 JournalpostParameter.Selector> parameteres() {
return ((this.parameteres == null)?this.parameteres = new JournalpostParameter.Selector>(this._root, this, "parameteres"):this.parameteres);
}
public JournalpostSortering.Selector> sorterings() {
return ((this.sorterings == null)?this.sorterings = new JournalpostSortering.Selector>(this._root, this, "sorterings"):this.sorterings);
}
}
}