
no.difi.meldingsutveksling.ks.svarut.Dokument Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.09.09 at 10:33:19 AM UTC
//
package no.difi.meldingsutveksling.ks.svarut;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.activation.DataHandler;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMimeType;
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 dokument complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="dokument">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="data" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
* <element name="dokumentType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="ekskluderesFraPrint" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="filnavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="giroarkSider" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
* <element name="mimetype" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="skalSigneres" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dokument", propOrder = {
"data",
"dokumentType",
"ekskluderesFraPrint",
"filnavn",
"giroarkSider",
"mimetype",
"skalSigneres"
})
public class Dokument {
@XmlElement(required = true)
@XmlMimeType("application/octet-stream")
protected DataHandler data;
protected String dokumentType;
protected boolean ekskluderesFraPrint;
@XmlElement(required = true)
protected String filnavn;
@XmlElement(nillable = true)
protected List giroarkSider;
@XmlElement(required = true)
protected String mimetype;
protected boolean skalSigneres;
/**
* Gets the value of the data property.
*
* @return
* possible object is
* {@link DataHandler }
*
*/
public DataHandler getData() {
return data;
}
/**
* Sets the value of the data property.
*
* @param value
* allowed object is
* {@link DataHandler }
*
*/
public void setData(DataHandler value) {
this.data = value;
}
/**
* Gets the value of the dokumentType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDokumentType() {
return dokumentType;
}
/**
* Sets the value of the dokumentType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDokumentType(String value) {
this.dokumentType = value;
}
/**
* Gets the value of the ekskluderesFraPrint property.
*
*/
public boolean isEkskluderesFraPrint() {
return ekskluderesFraPrint;
}
/**
* Sets the value of the ekskluderesFraPrint property.
*
*/
public void setEkskluderesFraPrint(boolean value) {
this.ekskluderesFraPrint = value;
}
/**
* Gets the value of the filnavn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFilnavn() {
return filnavn;
}
/**
* Sets the value of the filnavn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFilnavn(String value) {
this.filnavn = value;
}
/**
* Gets the value of the giroarkSider 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 giroarkSider property.
*
*
* For example, to add a new item, do as follows:
*
* getGiroarkSider().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*
*
*/
public List getGiroarkSider() {
if (giroarkSider == null) {
giroarkSider = new ArrayList();
}
return this.giroarkSider;
}
/**
* Gets the value of the mimetype property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMimetype() {
return mimetype;
}
/**
* Sets the value of the mimetype property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMimetype(String value) {
this.mimetype = value;
}
/**
* Gets the value of the skalSigneres property.
*
*/
public boolean isSkalSigneres() {
return skalSigneres;
}
/**
* Sets the value of the skalSigneres property.
*
*/
public void setSkalSigneres(boolean value) {
this.skalSigneres = 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 Dokument.Builder<_B> _other) {
_other.data = this.data;
_other.dokumentType = this.dokumentType;
_other.ekskluderesFraPrint = this.ekskluderesFraPrint;
_other.filnavn = this.filnavn;
if (this.giroarkSider == null) {
_other.giroarkSider = null;
} else {
_other.giroarkSider = new ArrayList();
for (Integer _item: this.giroarkSider) {
_other.giroarkSider.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
_other.mimetype = this.mimetype;
_other.skalSigneres = this.skalSigneres;
}
public<_B >Dokument.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Dokument.Builder<_B>(_parentBuilder, this, true);
}
public Dokument.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Dokument.Builder builder() {
return new Dokument.Builder(null, null, false);
}
public static<_B >Dokument.Builder<_B> copyOf(final Dokument _other) {
final Dokument.Builder<_B> _newBuilder = new Dokument.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 Dokument.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree dataPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("data"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dataPropertyTree!= null):((dataPropertyTree == null)||(!dataPropertyTree.isLeaf())))) {
_other.data = this.data;
}
final PropertyTree dokumentTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentType"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentTypePropertyTree!= null):((dokumentTypePropertyTree == null)||(!dokumentTypePropertyTree.isLeaf())))) {
_other.dokumentType = this.dokumentType;
}
final PropertyTree ekskluderesFraPrintPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ekskluderesFraPrint"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(ekskluderesFraPrintPropertyTree!= null):((ekskluderesFraPrintPropertyTree == null)||(!ekskluderesFraPrintPropertyTree.isLeaf())))) {
_other.ekskluderesFraPrint = this.ekskluderesFraPrint;
}
final PropertyTree filnavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("filnavn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(filnavnPropertyTree!= null):((filnavnPropertyTree == null)||(!filnavnPropertyTree.isLeaf())))) {
_other.filnavn = this.filnavn;
}
final PropertyTree giroarkSiderPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("giroarkSider"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(giroarkSiderPropertyTree!= null):((giroarkSiderPropertyTree == null)||(!giroarkSiderPropertyTree.isLeaf())))) {
if (this.giroarkSider == null) {
_other.giroarkSider = null;
} else {
_other.giroarkSider = new ArrayList();
for (Integer _item: this.giroarkSider) {
_other.giroarkSider.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree mimetypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mimetype"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mimetypePropertyTree!= null):((mimetypePropertyTree == null)||(!mimetypePropertyTree.isLeaf())))) {
_other.mimetype = this.mimetype;
}
final PropertyTree skalSigneresPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skalSigneres"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skalSigneresPropertyTree!= null):((skalSigneresPropertyTree == null)||(!skalSigneresPropertyTree.isLeaf())))) {
_other.skalSigneres = this.skalSigneres;
}
}
public<_B >Dokument.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Dokument.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Dokument.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Dokument.Builder<_B> copyOf(final Dokument _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Dokument.Builder<_B> _newBuilder = new Dokument.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Dokument.Builder copyExcept(final Dokument _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Dokument.Builder copyOnly(final Dokument _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Dokument _storedValue;
private DataHandler data;
private String dokumentType;
private boolean ekskluderesFraPrint;
private String filnavn;
private List giroarkSider;
private String mimetype;
private boolean skalSigneres;
public Builder(final _B _parentBuilder, final Dokument _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.data = _other.data;
this.dokumentType = _other.dokumentType;
this.ekskluderesFraPrint = _other.ekskluderesFraPrint;
this.filnavn = _other.filnavn;
if (_other.giroarkSider == null) {
this.giroarkSider = null;
} else {
this.giroarkSider = new ArrayList();
for (Integer _item: _other.giroarkSider) {
this.giroarkSider.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
this.mimetype = _other.mimetype;
this.skalSigneres = _other.skalSigneres;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Dokument _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree dataPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("data"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dataPropertyTree!= null):((dataPropertyTree == null)||(!dataPropertyTree.isLeaf())))) {
this.data = _other.data;
}
final PropertyTree dokumentTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentType"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentTypePropertyTree!= null):((dokumentTypePropertyTree == null)||(!dokumentTypePropertyTree.isLeaf())))) {
this.dokumentType = _other.dokumentType;
}
final PropertyTree ekskluderesFraPrintPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ekskluderesFraPrint"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(ekskluderesFraPrintPropertyTree!= null):((ekskluderesFraPrintPropertyTree == null)||(!ekskluderesFraPrintPropertyTree.isLeaf())))) {
this.ekskluderesFraPrint = _other.ekskluderesFraPrint;
}
final PropertyTree filnavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("filnavn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(filnavnPropertyTree!= null):((filnavnPropertyTree == null)||(!filnavnPropertyTree.isLeaf())))) {
this.filnavn = _other.filnavn;
}
final PropertyTree giroarkSiderPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("giroarkSider"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(giroarkSiderPropertyTree!= null):((giroarkSiderPropertyTree == null)||(!giroarkSiderPropertyTree.isLeaf())))) {
if (_other.giroarkSider == null) {
this.giroarkSider = null;
} else {
this.giroarkSider = new ArrayList();
for (Integer _item: _other.giroarkSider) {
this.giroarkSider.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree mimetypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mimetype"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mimetypePropertyTree!= null):((mimetypePropertyTree == null)||(!mimetypePropertyTree.isLeaf())))) {
this.mimetype = _other.mimetype;
}
final PropertyTree skalSigneresPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("skalSigneres"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(skalSigneresPropertyTree!= null):((skalSigneresPropertyTree == null)||(!skalSigneresPropertyTree.isLeaf())))) {
this.skalSigneres = _other.skalSigneres;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Dokument >_P init(final _P _product) {
_product.data = this.data;
_product.dokumentType = this.dokumentType;
_product.ekskluderesFraPrint = this.ekskluderesFraPrint;
_product.filnavn = this.filnavn;
if (this.giroarkSider!= null) {
final List giroarkSider = new ArrayList(this.giroarkSider.size());
for (Buildable _item: this.giroarkSider) {
giroarkSider.add(((Integer) _item.build()));
}
_product.giroarkSider = giroarkSider;
}
_product.mimetype = this.mimetype;
_product.skalSigneres = this.skalSigneres;
return _product;
}
/**
* Sets the new value of "data" (any previous value will be replaced)
*
* @param data
* New value of the "data" property.
*/
public Dokument.Builder<_B> withData(final DataHandler data) {
this.data = data;
return this;
}
/**
* Sets the new value of "dokumentType" (any previous value will be replaced)
*
* @param dokumentType
* New value of the "dokumentType" property.
*/
public Dokument.Builder<_B> withDokumentType(final String dokumentType) {
this.dokumentType = dokumentType;
return this;
}
/**
* Sets the new value of "ekskluderesFraPrint" (any previous value will be replaced)
*
* @param ekskluderesFraPrint
* New value of the "ekskluderesFraPrint" property.
*/
public Dokument.Builder<_B> withEkskluderesFraPrint(final boolean ekskluderesFraPrint) {
this.ekskluderesFraPrint = ekskluderesFraPrint;
return this;
}
/**
* Sets the new value of "filnavn" (any previous value will be replaced)
*
* @param filnavn
* New value of the "filnavn" property.
*/
public Dokument.Builder<_B> withFilnavn(final String filnavn) {
this.filnavn = filnavn;
return this;
}
/**
* Adds the given items to the value of "giroarkSider"
*
* @param giroarkSider
* Items to add to the value of the "giroarkSider" property
*/
public Dokument.Builder<_B> addGiroarkSider(final Iterable extends Integer> giroarkSider) {
if (giroarkSider!= null) {
if (this.giroarkSider == null) {
this.giroarkSider = new ArrayList();
}
for (Integer _item: giroarkSider) {
this.giroarkSider.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "giroarkSider" (any previous value will be replaced)
*
* @param giroarkSider
* New value of the "giroarkSider" property.
*/
public Dokument.Builder<_B> withGiroarkSider(final Iterable extends Integer> giroarkSider) {
if (this.giroarkSider!= null) {
this.giroarkSider.clear();
}
return addGiroarkSider(giroarkSider);
}
/**
* Adds the given items to the value of "giroarkSider"
*
* @param giroarkSider
* Items to add to the value of the "giroarkSider" property
*/
public Dokument.Builder<_B> addGiroarkSider(Integer... giroarkSider) {
addGiroarkSider(Arrays.asList(giroarkSider));
return this;
}
/**
* Sets the new value of "giroarkSider" (any previous value will be replaced)
*
* @param giroarkSider
* New value of the "giroarkSider" property.
*/
public Dokument.Builder<_B> withGiroarkSider(Integer... giroarkSider) {
withGiroarkSider(Arrays.asList(giroarkSider));
return this;
}
/**
* Sets the new value of "mimetype" (any previous value will be replaced)
*
* @param mimetype
* New value of the "mimetype" property.
*/
public Dokument.Builder<_B> withMimetype(final String mimetype) {
this.mimetype = mimetype;
return this;
}
/**
* Sets the new value of "skalSigneres" (any previous value will be replaced)
*
* @param skalSigneres
* New value of the "skalSigneres" property.
*/
public Dokument.Builder<_B> withSkalSigneres(final boolean skalSigneres) {
this.skalSigneres = skalSigneres;
return this;
}
@Override
public Dokument build() {
if (_storedValue == null) {
return this.init(new Dokument());
} else {
return ((Dokument) _storedValue);
}
}
public Dokument.Builder<_B> copyOf(final Dokument _other) {
_other.copyTo(this);
return this;
}
public Dokument.Builder<_B> copyOf(final Dokument.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Dokument.Selector
{
Select() {
super(null, null, null);
}
public static Dokument.Select _root() {
return new Dokument.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> data = null;
private com.kscs.util.jaxb.Selector> dokumentType = null;
private com.kscs.util.jaxb.Selector> filnavn = null;
private com.kscs.util.jaxb.Selector> giroarkSider = null;
private com.kscs.util.jaxb.Selector> mimetype = 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.data!= null) {
products.put("data", this.data.init());
}
if (this.dokumentType!= null) {
products.put("dokumentType", this.dokumentType.init());
}
if (this.filnavn!= null) {
products.put("filnavn", this.filnavn.init());
}
if (this.giroarkSider!= null) {
products.put("giroarkSider", this.giroarkSider.init());
}
if (this.mimetype!= null) {
products.put("mimetype", this.mimetype.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> data() {
return ((this.data == null)?this.data = new com.kscs.util.jaxb.Selector>(this._root, this, "data"):this.data);
}
public com.kscs.util.jaxb.Selector> dokumentType() {
return ((this.dokumentType == null)?this.dokumentType = new com.kscs.util.jaxb.Selector>(this._root, this, "dokumentType"):this.dokumentType);
}
public com.kscs.util.jaxb.Selector> filnavn() {
return ((this.filnavn == null)?this.filnavn = new com.kscs.util.jaxb.Selector>(this._root, this, "filnavn"):this.filnavn);
}
public com.kscs.util.jaxb.Selector> giroarkSider() {
return ((this.giroarkSider == null)?this.giroarkSider = new com.kscs.util.jaxb.Selector>(this._root, this, "giroarkSider"):this.giroarkSider);
}
public com.kscs.util.jaxb.Selector> mimetype() {
return ((this.mimetype == null)?this.mimetype = new com.kscs.util.jaxb.Selector>(this._root, this, "mimetype"):this.mimetype);
}
}
}