no.ks.fiks.arkiv.v1.innsyn.sok.Parameter 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.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.XmlSeeAlso;
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 parameter complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="parameter">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="operator" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}operatorType"/>
* <element name="sokVerdier" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}sokVerdier"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "parameter", propOrder = {
"operator",
"sokVerdier"
})
@XmlSeeAlso({
MappeParameter.class,
SaksmappeParameter.class,
RegistreringParameter.class,
JournalpostParameter.class,
DokumentbeskrivelseParameter.class
})
public abstract class Parameter {
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected OperatorType operator;
@XmlElement(required = true)
protected SokVerdier sokVerdier;
/**
* Gets the value of the operator property.
*
* @return
* possible object is
* {@link OperatorType }
*
*/
public OperatorType getOperator() {
return operator;
}
/**
* Sets the value of the operator property.
*
* @param value
* allowed object is
* {@link OperatorType }
*
*/
public void setOperator(OperatorType value) {
this.operator = value;
}
/**
* Gets the value of the sokVerdier property.
*
* @return
* possible object is
* {@link SokVerdier }
*
*/
public SokVerdier getSokVerdier() {
return sokVerdier;
}
/**
* Sets the value of the sokVerdier property.
*
* @param value
* allowed object is
* {@link SokVerdier }
*
*/
public void setSokVerdier(SokVerdier value) {
this.sokVerdier = 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 Parameter.Builder<_B> _other) {
_other.operator = this.operator;
_other.sokVerdier = ((this.sokVerdier == null)?null:this.sokVerdier.newCopyBuilder(_other));
}
public abstract<_B >Parameter.Builder<_B> newCopyBuilder(final _B _parentBuilder);
public abstract Parameter.Builder newCopyBuilder();
/**
* 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 Parameter.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree operatorPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("operator"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(operatorPropertyTree!= null):((operatorPropertyTree == null)||(!operatorPropertyTree.isLeaf())))) {
_other.operator = this.operator;
}
final PropertyTree sokVerdierPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sokVerdier"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sokVerdierPropertyTree!= null):((sokVerdierPropertyTree == null)||(!sokVerdierPropertyTree.isLeaf())))) {
_other.sokVerdier = ((this.sokVerdier == null)?null:this.sokVerdier.newCopyBuilder(_other, sokVerdierPropertyTree, _propertyTreeUse));
}
}
public abstract<_B >Parameter.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse);
public abstract Parameter.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse);
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Parameter _storedValue;
private OperatorType operator;
private SokVerdier.Builder> sokVerdier;
public Builder(final _B _parentBuilder, final Parameter _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.operator = _other.operator;
this.sokVerdier = ((_other.sokVerdier == null)?null:_other.sokVerdier.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Parameter _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree operatorPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("operator"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(operatorPropertyTree!= null):((operatorPropertyTree == null)||(!operatorPropertyTree.isLeaf())))) {
this.operator = _other.operator;
}
final PropertyTree sokVerdierPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sokVerdier"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sokVerdierPropertyTree!= null):((sokVerdierPropertyTree == null)||(!sokVerdierPropertyTree.isLeaf())))) {
this.sokVerdier = ((_other.sokVerdier == null)?null:_other.sokVerdier.newCopyBuilder(this, sokVerdierPropertyTree, _propertyTreeUse));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Parameter >_P init(final _P _product) {
_product.operator = this.operator;
_product.sokVerdier = ((this.sokVerdier == null)?null:this.sokVerdier.build());
return _product;
}
/**
* Sets the new value of "operator" (any previous value will be replaced)
*
* @param operator
* New value of the "operator" property.
*/
public Parameter.Builder<_B> withOperator(final OperatorType operator) {
this.operator = operator;
return this;
}
/**
* Sets the new value of "sokVerdier" (any previous value will be replaced)
*
* @param sokVerdier
* New value of the "sokVerdier" property.
*/
public Parameter.Builder<_B> withSokVerdier(final SokVerdier sokVerdier) {
this.sokVerdier = ((sokVerdier == null)?null:new SokVerdier.Builder>(this, sokVerdier, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "sokVerdier" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.SokVerdier.Builder#end()} to return to
* the current builder.
*
* @return
* A new builder to build the value of the "sokVerdier" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.SokVerdier.Builder#end()} to return to
* the current builder.
*/
public SokVerdier.Builder extends Parameter.Builder<_B>> withSokVerdier() {
if (this.sokVerdier!= null) {
return this.sokVerdier;
}
return this.sokVerdier = new SokVerdier.Builder>(this, null, false);
}
@Override
public Parameter build() {
return ((Parameter) _storedValue);
}
public Parameter.Builder<_B> copyOf(final Parameter _other) {
_other.copyTo(this);
return this;
}
public Parameter.Builder<_B> copyOf(final Parameter.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Parameter.Selector
{
Select() {
super(null, null, null);
}
public static Parameter.Select _root() {
return new Parameter.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> operator = null;
private SokVerdier.Selector> sokVerdier = 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.operator!= null) {
products.put("operator", this.operator.init());
}
if (this.sokVerdier!= null) {
products.put("sokVerdier", this.sokVerdier.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> operator() {
return ((this.operator == null)?this.operator = new com.kscs.util.jaxb.Selector>(this._root, this, "operator"):this.operator);
}
public SokVerdier.Selector> sokVerdier() {
return ((this.sokVerdier == null)?this.sokVerdier = new SokVerdier.Selector>(this._root, this, "sokVerdier"):this.sokVerdier);
}
}
}