no.ks.fiks.arkiv.v1.innsyn.sok.Sokdefinisjon 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;
import no.ks.fiks.arkiv.v1.arkivstruktur.Responstype;
/**
* Java class for sokdefinisjon complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="sokdefinisjon">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="responstype" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/v1}responstype"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "sokdefinisjon", propOrder = {
"responstype"
})
@XmlSeeAlso({
MappeSokdefinisjon.class,
MappeFritekstSokdefinisjon.class,
SaksmappeSokdefinisjon.class,
SaksmappeFritekstSokdefinisjon.class,
RegistreringSokdefinisjon.class,
RegistreringFritekstSokdefinisjon.class,
JournalpostSokdefinisjon.class,
JournalpostFritekstSokdefinisjon.class,
JournalpostMedSaksmappeSokdefinisjon.class,
JournalpostMedSaksmappeFritekstSokdefinisjon.class,
DokumentbeskrivelseSokdefinisjon.class,
DokumentbeskrivelseFritekstSokdefinisjon.class
})
public abstract class Sokdefinisjon {
@XmlElement(required = true, defaultValue = "minimum")
@XmlSchemaType(name = "string")
protected Responstype responstype;
/**
* Gets the value of the responstype property.
*
* @return
* possible object is
* {@link Responstype }
*
*/
public Responstype getResponstype() {
return responstype;
}
/**
* Sets the value of the responstype property.
*
* @param value
* allowed object is
* {@link Responstype }
*
*/
public void setResponstype(Responstype value) {
this.responstype = 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 Sokdefinisjon.Builder<_B> _other) {
_other.responstype = this.responstype;
}
public abstract<_B >Sokdefinisjon.Builder<_B> newCopyBuilder(final _B _parentBuilder);
public abstract Sokdefinisjon.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 Sokdefinisjon.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree responstypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("responstype"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(responstypePropertyTree!= null):((responstypePropertyTree == null)||(!responstypePropertyTree.isLeaf())))) {
_other.responstype = this.responstype;
}
}
public abstract<_B >Sokdefinisjon.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse);
public abstract Sokdefinisjon.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse);
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Sokdefinisjon _storedValue;
private Responstype responstype;
public Builder(final _B _parentBuilder, final Sokdefinisjon _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.responstype = _other.responstype;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Sokdefinisjon _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree responstypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("responstype"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(responstypePropertyTree!= null):((responstypePropertyTree == null)||(!responstypePropertyTree.isLeaf())))) {
this.responstype = _other.responstype;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Sokdefinisjon >_P init(final _P _product) {
_product.responstype = this.responstype;
return _product;
}
/**
* Sets the new value of "responstype" (any previous value will be replaced)
*
* @param responstype
* New value of the "responstype" property.
*/
public Sokdefinisjon.Builder<_B> withResponstype(final Responstype responstype) {
this.responstype = responstype;
return this;
}
@Override
public Sokdefinisjon build() {
return ((Sokdefinisjon) _storedValue);
}
public Sokdefinisjon.Builder<_B> copyOf(final Sokdefinisjon _other) {
_other.copyTo(this);
return this;
}
public Sokdefinisjon.Builder<_B> copyOf(final Sokdefinisjon.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Sokdefinisjon.Selector
{
Select() {
super(null, null, null);
}
public static Sokdefinisjon.Select _root() {
return new Sokdefinisjon.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> responstype = 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.responstype!= null) {
products.put("responstype", this.responstype.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> responstype() {
return ((this.responstype == null)?this.responstype = new com.kscs.util.jaxb.Selector>(this._root, this, "responstype"):this.responstype);
}
}
}