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

no.ks.fiks.arkiv.v1.innsyn.sok.Sok 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.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.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 sok complex type. * *

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

 * <complexType name="sok">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="system" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="take" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="skip" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="sokdefinisjon" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}sokdefinisjon"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "sok", propOrder = { "system", "take", "skip", "sokdefinisjon" }) @XmlRootElement(name = "sok") public class Sok { @XmlElement(required = true) protected String system; protected int take; protected int skip; @XmlElement(required = true) protected Sokdefinisjon sokdefinisjon; /** * 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 take property. * */ public int getTake() { return take; } /** * Sets the value of the take property. * */ public void setTake(int value) { this.take = value; } /** * Gets the value of the skip property. * */ public int getSkip() { return skip; } /** * Sets the value of the skip property. * */ public void setSkip(int value) { this.skip = value; } /** * Gets the value of the sokdefinisjon property. * * @return * possible object is * {@link Sokdefinisjon } * */ public Sokdefinisjon getSokdefinisjon() { return sokdefinisjon; } /** * Sets the value of the sokdefinisjon property. * * @param value * allowed object is * {@link Sokdefinisjon } * */ public void setSokdefinisjon(Sokdefinisjon value) { this.sokdefinisjon = 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 Sok.Builder<_B> _other) { _other.system = this.system; _other.take = this.take; _other.skip = this.skip; _other.sokdefinisjon = ((this.sokdefinisjon == null)?null:this.sokdefinisjon.newCopyBuilder(_other)); } public<_B >Sok.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Sok.Builder<_B>(_parentBuilder, this, true); } public Sok.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Sok.Builder builder() { return new Sok.Builder(null, null, false); } public static<_B >Sok.Builder<_B> copyOf(final Sok _other) { final Sok.Builder<_B> _newBuilder = new Sok.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 Sok.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 takePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("take")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(takePropertyTree!= null):((takePropertyTree == null)||(!takePropertyTree.isLeaf())))) { _other.take = this.take; } final PropertyTree skipPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skip")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skipPropertyTree!= null):((skipPropertyTree == null)||(!skipPropertyTree.isLeaf())))) { _other.skip = this.skip; } final PropertyTree sokdefinisjonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sokdefinisjon")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sokdefinisjonPropertyTree!= null):((sokdefinisjonPropertyTree == null)||(!sokdefinisjonPropertyTree.isLeaf())))) { _other.sokdefinisjon = ((this.sokdefinisjon == null)?null:this.sokdefinisjon.newCopyBuilder(_other, sokdefinisjonPropertyTree, _propertyTreeUse)); } } public<_B >Sok.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Sok.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Sok.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Sok.Builder<_B> copyOf(final Sok _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Sok.Builder<_B> _newBuilder = new Sok.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Sok.Builder copyExcept(final Sok _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Sok.Builder copyOnly(final Sok _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Sok _storedValue; private String system; private int take; private int skip; private Sokdefinisjon.Builder> sokdefinisjon; public Builder(final _B _parentBuilder, final Sok _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.system = _other.system; this.take = _other.take; this.skip = _other.skip; this.sokdefinisjon = ((_other.sokdefinisjon == null)?null:_other.sokdefinisjon.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Sok _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 takePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("take")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(takePropertyTree!= null):((takePropertyTree == null)||(!takePropertyTree.isLeaf())))) { this.take = _other.take; } final PropertyTree skipPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skip")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skipPropertyTree!= null):((skipPropertyTree == null)||(!skipPropertyTree.isLeaf())))) { this.skip = _other.skip; } final PropertyTree sokdefinisjonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sokdefinisjon")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sokdefinisjonPropertyTree!= null):((sokdefinisjonPropertyTree == null)||(!sokdefinisjonPropertyTree.isLeaf())))) { this.sokdefinisjon = ((_other.sokdefinisjon == null)?null:_other.sokdefinisjon.newCopyBuilder(this, sokdefinisjonPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Sok >_P init(final _P _product) { _product.system = this.system; _product.take = this.take; _product.skip = this.skip; _product.sokdefinisjon = ((this.sokdefinisjon == null)?null:this.sokdefinisjon.build()); return _product; } /** * Sets the new value of "system" (any previous value will be replaced) * * @param system * New value of the "system" property. */ public Sok.Builder<_B> withSystem(final String system) { this.system = system; return this; } /** * Sets the new value of "take" (any previous value will be replaced) * * @param take * New value of the "take" property. */ public Sok.Builder<_B> withTake(final int take) { this.take = take; return this; } /** * Sets the new value of "skip" (any previous value will be replaced) * * @param skip * New value of the "skip" property. */ public Sok.Builder<_B> withSkip(final int skip) { this.skip = skip; return this; } /** * Sets the new value of "sokdefinisjon" (any previous value will be replaced) * * @param sokdefinisjon * New value of the "sokdefinisjon" property. */ public Sok.Builder<_B> withSokdefinisjon(final Sokdefinisjon sokdefinisjon) { this.sokdefinisjon = ((sokdefinisjon == null)?null:new Sokdefinisjon.Builder>(this, sokdefinisjon, false)); return this; } @Override public Sok build() { if (_storedValue == null) { return this.init(new Sok()); } else { return ((Sok) _storedValue); } } public Sok.Builder<_B> copyOf(final Sok _other) { _other.copyTo(this); return this; } public Sok.Builder<_B> copyOf(final Sok.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Sok.Selector { Select() { super(null, null, null); } public static Sok.Select _root() { return new Sok.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> system = null; private Sokdefinisjon.Selector> sokdefinisjon = 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.sokdefinisjon!= null) { products.put("sokdefinisjon", this.sokdefinisjon.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 Sokdefinisjon.Selector> sokdefinisjon() { return ((this.sokdefinisjon == null)?this.sokdefinisjon = new Sokdefinisjon.Selector>(this._root, this, "sokdefinisjon"):this.sokdefinisjon); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy