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

no.ks.fiks.arkiv.v1.arkivstruktur.Dokumentobjekt 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.arkivstruktur;

import java.time.ZonedDateTime;
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 javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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.metadatakatalog.Format;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Variantformat;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for dokumentobjekt complex type. * *

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

 * <complexType name="dokumentobjekt">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="systemID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}systemID"/>
 *         <element name="versjonsnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}versjonsnummer"/>
 *         <element name="variantformat" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}variantformat"/>
 *         <element name="filnavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="format" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}format"/>
 *         <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="formatDetaljer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}formatDetaljer" minOccurs="0"/>
 *         <element name="opprettetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetDato"/>
 *         <element name="opprettetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetAv"/>
 *         <element name="referanseDokumentfil" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseDokumentfil"/>
 *         <element name="sjekksum" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}sjekksum"/>
 *         <element name="sjekksumAlgoritme" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}sjekksumAlgoritme"/>
 *         <element name="filstoerrelse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}filstoerrelse"/>
 *         <element name="elektroniskSignatur" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/v1}elektroniskSignatur" minOccurs="0"/>
 *         <element name="konvertering" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivstruktur/v1}konvertering" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "dokumentobjekt", propOrder = { "systemID", "versjonsnummer", "variantformat", "filnavn", "format", "mimeType", "formatDetaljer", "opprettetDato", "opprettetAv", "referanseDokumentfil", "sjekksum", "sjekksumAlgoritme", "filstoerrelse", "elektroniskSignatur", "konverterings" }) public class Dokumentobjekt { @XmlElement(required = true) protected SystemID systemID; protected int versjonsnummer; @XmlElement(required = true) protected Variantformat variantformat; @XmlElement(required = true) protected String filnavn; @XmlElement(required = true) protected Format format; protected String mimeType; protected String formatDetaljer; @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime opprettetDato; @XmlElement(required = true) protected String opprettetAv; @XmlElement(required = true) protected String referanseDokumentfil; @XmlElement(required = true) protected String sjekksum; @XmlElement(required = true) protected String sjekksumAlgoritme; protected int filstoerrelse; protected ElektroniskSignatur elektroniskSignatur; @XmlElement(name = "konvertering") protected List konverterings; /** * Gets the value of the systemID property. * * @return * possible object is * {@link SystemID } * */ public SystemID getSystemID() { return systemID; } /** * Sets the value of the systemID property. * * @param value * allowed object is * {@link SystemID } * */ public void setSystemID(SystemID value) { this.systemID = value; } /** * Gets the value of the versjonsnummer property. * */ public int getVersjonsnummer() { return versjonsnummer; } /** * Sets the value of the versjonsnummer property. * */ public void setVersjonsnummer(int value) { this.versjonsnummer = value; } /** * Gets the value of the variantformat property. * * @return * possible object is * {@link Variantformat } * */ public Variantformat getVariantformat() { return variantformat; } /** * Sets the value of the variantformat property. * * @param value * allowed object is * {@link Variantformat } * */ public void setVariantformat(Variantformat value) { this.variantformat = 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 format property. * * @return * possible object is * {@link Format } * */ public Format getFormat() { return format; } /** * Sets the value of the format property. * * @param value * allowed object is * {@link Format } * */ public void setFormat(Format value) { this.format = value; } /** * 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 formatDetaljer property. * * @return * possible object is * {@link String } * */ public String getFormatDetaljer() { return formatDetaljer; } /** * Sets the value of the formatDetaljer property. * * @param value * allowed object is * {@link String } * */ public void setFormatDetaljer(String value) { this.formatDetaljer = value; } /** * Gets the value of the opprettetDato property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getOpprettetDato() { return opprettetDato; } /** * Sets the value of the opprettetDato property. * * @param value * allowed object is * {@link String } * */ public void setOpprettetDato(ZonedDateTime value) { this.opprettetDato = value; } /** * Gets the value of the opprettetAv property. * * @return * possible object is * {@link String } * */ public String getOpprettetAv() { return opprettetAv; } /** * Sets the value of the opprettetAv property. * * @param value * allowed object is * {@link String } * */ public void setOpprettetAv(String value) { this.opprettetAv = value; } /** * Gets the value of the referanseDokumentfil property. * * @return * possible object is * {@link String } * */ public String getReferanseDokumentfil() { return referanseDokumentfil; } /** * Sets the value of the referanseDokumentfil property. * * @param value * allowed object is * {@link String } * */ public void setReferanseDokumentfil(String value) { this.referanseDokumentfil = value; } /** * Gets the value of the sjekksum property. * * @return * possible object is * {@link String } * */ public String getSjekksum() { return sjekksum; } /** * Sets the value of the sjekksum property. * * @param value * allowed object is * {@link String } * */ public void setSjekksum(String value) { this.sjekksum = value; } /** * Gets the value of the sjekksumAlgoritme property. * * @return * possible object is * {@link String } * */ public String getSjekksumAlgoritme() { return sjekksumAlgoritme; } /** * Sets the value of the sjekksumAlgoritme property. * * @param value * allowed object is * {@link String } * */ public void setSjekksumAlgoritme(String value) { this.sjekksumAlgoritme = value; } /** * Gets the value of the filstoerrelse property. * */ public int getFilstoerrelse() { return filstoerrelse; } /** * Sets the value of the filstoerrelse property. * */ public void setFilstoerrelse(int value) { this.filstoerrelse = value; } /** * Gets the value of the elektroniskSignatur property. * * @return * possible object is * {@link ElektroniskSignatur } * */ public ElektroniskSignatur getElektroniskSignatur() { return elektroniskSignatur; } /** * Sets the value of the elektroniskSignatur property. * * @param value * allowed object is * {@link ElektroniskSignatur } * */ public void setElektroniskSignatur(ElektroniskSignatur value) { this.elektroniskSignatur = value; } /** * Gets the value of the konverterings 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 konverterings property. * *

* For example, to add a new item, do as follows: *

     *    getKonverterings().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Konvertering } * * */ public List getKonverterings() { if (konverterings == null) { konverterings = new ArrayList(); } return this.konverterings; } /** * 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 Dokumentobjekt.Builder<_B> _other) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other)); _other.versjonsnummer = this.versjonsnummer; _other.variantformat = ((this.variantformat == null)?null:this.variantformat.newCopyBuilder(_other)); _other.filnavn = this.filnavn; _other.format = ((this.format == null)?null:this.format.newCopyBuilder(_other)); _other.mimeType = this.mimeType; _other.formatDetaljer = this.formatDetaljer; _other.opprettetDato = this.opprettetDato; _other.opprettetAv = this.opprettetAv; _other.referanseDokumentfil = this.referanseDokumentfil; _other.sjekksum = this.sjekksum; _other.sjekksumAlgoritme = this.sjekksumAlgoritme; _other.filstoerrelse = this.filstoerrelse; _other.elektroniskSignatur = ((this.elektroniskSignatur == null)?null:this.elektroniskSignatur.newCopyBuilder(_other)); if (this.konverterings == null) { _other.konverterings = null; } else { _other.konverterings = new ArrayList>>(); for (Konvertering _item: this.konverterings) { _other.konverterings.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >Dokumentobjekt.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Dokumentobjekt.Builder<_B>(_parentBuilder, this, true); } public Dokumentobjekt.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Dokumentobjekt.Builder builder() { return new Dokumentobjekt.Builder(null, null, false); } public static<_B >Dokumentobjekt.Builder<_B> copyOf(final Dokumentobjekt _other) { final Dokumentobjekt.Builder<_B> _newBuilder = new Dokumentobjekt.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 Dokumentobjekt.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree systemIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("systemID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemIDPropertyTree!= null):((systemIDPropertyTree == null)||(!systemIDPropertyTree.isLeaf())))) { _other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other, systemIDPropertyTree, _propertyTreeUse)); } final PropertyTree versjonsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("versjonsnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(versjonsnummerPropertyTree!= null):((versjonsnummerPropertyTree == null)||(!versjonsnummerPropertyTree.isLeaf())))) { _other.versjonsnummer = this.versjonsnummer; } final PropertyTree variantformatPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("variantformat")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(variantformatPropertyTree!= null):((variantformatPropertyTree == null)||(!variantformatPropertyTree.isLeaf())))) { _other.variantformat = ((this.variantformat == null)?null:this.variantformat.newCopyBuilder(_other, variantformatPropertyTree, _propertyTreeUse)); } 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 formatPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("format")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(formatPropertyTree!= null):((formatPropertyTree == null)||(!formatPropertyTree.isLeaf())))) { _other.format = ((this.format == null)?null:this.format.newCopyBuilder(_other, formatPropertyTree, _propertyTreeUse)); } 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 formatDetaljerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("formatDetaljer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(formatDetaljerPropertyTree!= null):((formatDetaljerPropertyTree == null)||(!formatDetaljerPropertyTree.isLeaf())))) { _other.formatDetaljer = this.formatDetaljer; } final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) { _other.opprettetDato = this.opprettetDato; } final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) { _other.opprettetAv = this.opprettetAv; } final PropertyTree referanseDokumentfilPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseDokumentfil")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseDokumentfilPropertyTree!= null):((referanseDokumentfilPropertyTree == null)||(!referanseDokumentfilPropertyTree.isLeaf())))) { _other.referanseDokumentfil = this.referanseDokumentfil; } final PropertyTree sjekksumPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sjekksum")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sjekksumPropertyTree!= null):((sjekksumPropertyTree == null)||(!sjekksumPropertyTree.isLeaf())))) { _other.sjekksum = this.sjekksum; } final PropertyTree sjekksumAlgoritmePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sjekksumAlgoritme")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sjekksumAlgoritmePropertyTree!= null):((sjekksumAlgoritmePropertyTree == null)||(!sjekksumAlgoritmePropertyTree.isLeaf())))) { _other.sjekksumAlgoritme = this.sjekksumAlgoritme; } final PropertyTree filstoerrelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("filstoerrelse")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(filstoerrelsePropertyTree!= null):((filstoerrelsePropertyTree == null)||(!filstoerrelsePropertyTree.isLeaf())))) { _other.filstoerrelse = this.filstoerrelse; } final PropertyTree elektroniskSignaturPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("elektroniskSignatur")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(elektroniskSignaturPropertyTree!= null):((elektroniskSignaturPropertyTree == null)||(!elektroniskSignaturPropertyTree.isLeaf())))) { _other.elektroniskSignatur = ((this.elektroniskSignatur == null)?null:this.elektroniskSignatur.newCopyBuilder(_other, elektroniskSignaturPropertyTree, _propertyTreeUse)); } final PropertyTree konverteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("konverterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(konverteringsPropertyTree!= null):((konverteringsPropertyTree == null)||(!konverteringsPropertyTree.isLeaf())))) { if (this.konverterings == null) { _other.konverterings = null; } else { _other.konverterings = new ArrayList>>(); for (Konvertering _item: this.konverterings) { _other.konverterings.add(((_item == null)?null:_item.newCopyBuilder(_other, konverteringsPropertyTree, _propertyTreeUse))); } } } } public<_B >Dokumentobjekt.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Dokumentobjekt.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Dokumentobjekt.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Dokumentobjekt.Builder<_B> copyOf(final Dokumentobjekt _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Dokumentobjekt.Builder<_B> _newBuilder = new Dokumentobjekt.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Dokumentobjekt.Builder copyExcept(final Dokumentobjekt _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Dokumentobjekt.Builder copyOnly(final Dokumentobjekt _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Dokumentobjekt _storedValue; private SystemID.Builder> systemID; private int versjonsnummer; private Variantformat.Builder> variantformat; private String filnavn; private Format.Builder> format; private String mimeType; private String formatDetaljer; private ZonedDateTime opprettetDato; private String opprettetAv; private String referanseDokumentfil; private String sjekksum; private String sjekksumAlgoritme; private int filstoerrelse; private ElektroniskSignatur.Builder> elektroniskSignatur; private List>> konverterings; public Builder(final _B _parentBuilder, final Dokumentobjekt _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.systemID = ((_other.systemID == null)?null:_other.systemID.newCopyBuilder(this)); this.versjonsnummer = _other.versjonsnummer; this.variantformat = ((_other.variantformat == null)?null:_other.variantformat.newCopyBuilder(this)); this.filnavn = _other.filnavn; this.format = ((_other.format == null)?null:_other.format.newCopyBuilder(this)); this.mimeType = _other.mimeType; this.formatDetaljer = _other.formatDetaljer; this.opprettetDato = _other.opprettetDato; this.opprettetAv = _other.opprettetAv; this.referanseDokumentfil = _other.referanseDokumentfil; this.sjekksum = _other.sjekksum; this.sjekksumAlgoritme = _other.sjekksumAlgoritme; this.filstoerrelse = _other.filstoerrelse; this.elektroniskSignatur = ((_other.elektroniskSignatur == null)?null:_other.elektroniskSignatur.newCopyBuilder(this)); if (_other.konverterings == null) { this.konverterings = null; } else { this.konverterings = new ArrayList>>(); for (Konvertering _item: _other.konverterings) { this.konverterings.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Dokumentobjekt _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree systemIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("systemID")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemIDPropertyTree!= null):((systemIDPropertyTree == null)||(!systemIDPropertyTree.isLeaf())))) { this.systemID = ((_other.systemID == null)?null:_other.systemID.newCopyBuilder(this, systemIDPropertyTree, _propertyTreeUse)); } final PropertyTree versjonsnummerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("versjonsnummer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(versjonsnummerPropertyTree!= null):((versjonsnummerPropertyTree == null)||(!versjonsnummerPropertyTree.isLeaf())))) { this.versjonsnummer = _other.versjonsnummer; } final PropertyTree variantformatPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("variantformat")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(variantformatPropertyTree!= null):((variantformatPropertyTree == null)||(!variantformatPropertyTree.isLeaf())))) { this.variantformat = ((_other.variantformat == null)?null:_other.variantformat.newCopyBuilder(this, variantformatPropertyTree, _propertyTreeUse)); } 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 formatPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("format")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(formatPropertyTree!= null):((formatPropertyTree == null)||(!formatPropertyTree.isLeaf())))) { this.format = ((_other.format == null)?null:_other.format.newCopyBuilder(this, formatPropertyTree, _propertyTreeUse)); } 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 formatDetaljerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("formatDetaljer")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(formatDetaljerPropertyTree!= null):((formatDetaljerPropertyTree == null)||(!formatDetaljerPropertyTree.isLeaf())))) { this.formatDetaljer = _other.formatDetaljer; } final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) { this.opprettetDato = _other.opprettetDato; } final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) { this.opprettetAv = _other.opprettetAv; } final PropertyTree referanseDokumentfilPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseDokumentfil")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseDokumentfilPropertyTree!= null):((referanseDokumentfilPropertyTree == null)||(!referanseDokumentfilPropertyTree.isLeaf())))) { this.referanseDokumentfil = _other.referanseDokumentfil; } final PropertyTree sjekksumPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sjekksum")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sjekksumPropertyTree!= null):((sjekksumPropertyTree == null)||(!sjekksumPropertyTree.isLeaf())))) { this.sjekksum = _other.sjekksum; } final PropertyTree sjekksumAlgoritmePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("sjekksumAlgoritme")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sjekksumAlgoritmePropertyTree!= null):((sjekksumAlgoritmePropertyTree == null)||(!sjekksumAlgoritmePropertyTree.isLeaf())))) { this.sjekksumAlgoritme = _other.sjekksumAlgoritme; } final PropertyTree filstoerrelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("filstoerrelse")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(filstoerrelsePropertyTree!= null):((filstoerrelsePropertyTree == null)||(!filstoerrelsePropertyTree.isLeaf())))) { this.filstoerrelse = _other.filstoerrelse; } final PropertyTree elektroniskSignaturPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("elektroniskSignatur")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(elektroniskSignaturPropertyTree!= null):((elektroniskSignaturPropertyTree == null)||(!elektroniskSignaturPropertyTree.isLeaf())))) { this.elektroniskSignatur = ((_other.elektroniskSignatur == null)?null:_other.elektroniskSignatur.newCopyBuilder(this, elektroniskSignaturPropertyTree, _propertyTreeUse)); } final PropertyTree konverteringsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("konverterings")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(konverteringsPropertyTree!= null):((konverteringsPropertyTree == null)||(!konverteringsPropertyTree.isLeaf())))) { if (_other.konverterings == null) { this.konverterings = null; } else { this.konverterings = new ArrayList>>(); for (Konvertering _item: _other.konverterings) { this.konverterings.add(((_item == null)?null:_item.newCopyBuilder(this, konverteringsPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Dokumentobjekt >_P init(final _P _product) { _product.systemID = ((this.systemID == null)?null:this.systemID.build()); _product.versjonsnummer = this.versjonsnummer; _product.variantformat = ((this.variantformat == null)?null:this.variantformat.build()); _product.filnavn = this.filnavn; _product.format = ((this.format == null)?null:this.format.build()); _product.mimeType = this.mimeType; _product.formatDetaljer = this.formatDetaljer; _product.opprettetDato = this.opprettetDato; _product.opprettetAv = this.opprettetAv; _product.referanseDokumentfil = this.referanseDokumentfil; _product.sjekksum = this.sjekksum; _product.sjekksumAlgoritme = this.sjekksumAlgoritme; _product.filstoerrelse = this.filstoerrelse; _product.elektroniskSignatur = ((this.elektroniskSignatur == null)?null:this.elektroniskSignatur.build()); if (this.konverterings!= null) { final List konverterings = new ArrayList(this.konverterings.size()); for (Konvertering.Builder> _item: this.konverterings) { konverterings.add(_item.build()); } _product.konverterings = konverterings; } return _product; } /** * Sets the new value of "systemID" (any previous value will be replaced) * * @param systemID * New value of the "systemID" property. */ public Dokumentobjekt.Builder<_B> withSystemID(final SystemID systemID) { this.systemID = ((systemID == null)?null:new SystemID.Builder>(this, systemID, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "systemID" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "systemID" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID.Builder#end()} to * return to the current builder. */ public SystemID.Builder> withSystemID() { if (this.systemID!= null) { return this.systemID; } return this.systemID = new SystemID.Builder>(this, null, false); } /** * Sets the new value of "versjonsnummer" (any previous value will be replaced) * * @param versjonsnummer * New value of the "versjonsnummer" property. */ public Dokumentobjekt.Builder<_B> withVersjonsnummer(final int versjonsnummer) { this.versjonsnummer = versjonsnummer; return this; } /** * Sets the new value of "variantformat" (any previous value will be replaced) * * @param variantformat * New value of the "variantformat" property. */ public Dokumentobjekt.Builder<_B> withVariantformat(final Variantformat variantformat) { this.variantformat = ((variantformat == null)?null:new Variantformat.Builder>(this, variantformat, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "variantformat" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Variantformat.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "variantformat" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Variantformat.Builder#end()} * to return to the current builder. */ public Variantformat.Builder> withVariantformat() { if (this.variantformat!= null) { return this.variantformat; } return this.variantformat = new Variantformat.Builder>(this, null, false); } /** * Sets the new value of "filnavn" (any previous value will be replaced) * * @param filnavn * New value of the "filnavn" property. */ public Dokumentobjekt.Builder<_B> withFilnavn(final String filnavn) { this.filnavn = filnavn; return this; } /** * Sets the new value of "format" (any previous value will be replaced) * * @param format * New value of the "format" property. */ public Dokumentobjekt.Builder<_B> withFormat(final Format format) { this.format = ((format == null)?null:new Format.Builder>(this, format, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the "format" * property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Format.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "format" property. * Use {@link * no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Format.Builder#end()} to * return to the current builder. */ public Format.Builder> withFormat() { if (this.format!= null) { return this.format; } return this.format = new Format.Builder>(this, null, false); } /** * Sets the new value of "mimeType" (any previous value will be replaced) * * @param mimeType * New value of the "mimeType" property. */ public Dokumentobjekt.Builder<_B> withMimeType(final String mimeType) { this.mimeType = mimeType; return this; } /** * Sets the new value of "formatDetaljer" (any previous value will be replaced) * * @param formatDetaljer * New value of the "formatDetaljer" property. */ public Dokumentobjekt.Builder<_B> withFormatDetaljer(final String formatDetaljer) { this.formatDetaljer = formatDetaljer; return this; } /** * Sets the new value of "opprettetDato" (any previous value will be replaced) * * @param opprettetDato * New value of the "opprettetDato" property. */ public Dokumentobjekt.Builder<_B> withOpprettetDato(final ZonedDateTime opprettetDato) { this.opprettetDato = opprettetDato; return this; } /** * Sets the new value of "opprettetAv" (any previous value will be replaced) * * @param opprettetAv * New value of the "opprettetAv" property. */ public Dokumentobjekt.Builder<_B> withOpprettetAv(final String opprettetAv) { this.opprettetAv = opprettetAv; return this; } /** * Sets the new value of "referanseDokumentfil" (any previous value will be * replaced) * * @param referanseDokumentfil * New value of the "referanseDokumentfil" property. */ public Dokumentobjekt.Builder<_B> withReferanseDokumentfil(final String referanseDokumentfil) { this.referanseDokumentfil = referanseDokumentfil; return this; } /** * Sets the new value of "sjekksum" (any previous value will be replaced) * * @param sjekksum * New value of the "sjekksum" property. */ public Dokumentobjekt.Builder<_B> withSjekksum(final String sjekksum) { this.sjekksum = sjekksum; return this; } /** * Sets the new value of "sjekksumAlgoritme" (any previous value will be replaced) * * @param sjekksumAlgoritme * New value of the "sjekksumAlgoritme" property. */ public Dokumentobjekt.Builder<_B> withSjekksumAlgoritme(final String sjekksumAlgoritme) { this.sjekksumAlgoritme = sjekksumAlgoritme; return this; } /** * Sets the new value of "filstoerrelse" (any previous value will be replaced) * * @param filstoerrelse * New value of the "filstoerrelse" property. */ public Dokumentobjekt.Builder<_B> withFilstoerrelse(final int filstoerrelse) { this.filstoerrelse = filstoerrelse; return this; } /** * Sets the new value of "elektroniskSignatur" (any previous value will be * replaced) * * @param elektroniskSignatur * New value of the "elektroniskSignatur" property. */ public Dokumentobjekt.Builder<_B> withElektroniskSignatur(final ElektroniskSignatur elektroniskSignatur) { this.elektroniskSignatur = ((elektroniskSignatur == null)?null:new ElektroniskSignatur.Builder>(this, elektroniskSignatur, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the * "elektroniskSignatur" property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.ElektroniskSignatur.Builder#end()} * to return to the current builder. * * @return * A new builder to build the value of the "elektroniskSignatur" property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.ElektroniskSignatur.Builder#end()} * to return to the current builder. */ public ElektroniskSignatur.Builder> withElektroniskSignatur() { if (this.elektroniskSignatur!= null) { return this.elektroniskSignatur; } return this.elektroniskSignatur = new ElektroniskSignatur.Builder>(this, null, false); } /** * Adds the given items to the value of "konverterings" * * @param konverterings * Items to add to the value of the "konverterings" property */ public Dokumentobjekt.Builder<_B> addKonverterings(final Iterable konverterings) { if (konverterings!= null) { if (this.konverterings == null) { this.konverterings = new ArrayList>>(); } for (Konvertering _item: konverterings) { this.konverterings.add(new Konvertering.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "konverterings" (any previous value will be replaced) * * @param konverterings * New value of the "konverterings" property. */ public Dokumentobjekt.Builder<_B> withKonverterings(final Iterable konverterings) { if (this.konverterings!= null) { this.konverterings.clear(); } return addKonverterings(konverterings); } /** * Adds the given items to the value of "konverterings" * * @param konverterings * Items to add to the value of the "konverterings" property */ public Dokumentobjekt.Builder<_B> addKonverterings(Konvertering... konverterings) { addKonverterings(Arrays.asList(konverterings)); return this; } /** * Sets the new value of "konverterings" (any previous value will be replaced) * * @param konverterings * New value of the "konverterings" property. */ public Dokumentobjekt.Builder<_B> withKonverterings(Konvertering... konverterings) { withKonverterings(Arrays.asList(konverterings)); return this; } /** * Returns a new builder to build an additional value of the "Konverterings" * property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.Konvertering.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Konverterings" property. * Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.Konvertering.Builder#end()} to * return to the current builder. */ public Konvertering.Builder> addKonverterings() { if (this.konverterings == null) { this.konverterings = new ArrayList>>(); } final Konvertering.Builder> konverterings_Builder = new Konvertering.Builder>(this, null, false); this.konverterings.add(konverterings_Builder); return konverterings_Builder; } @Override public Dokumentobjekt build() { if (_storedValue == null) { return this.init(new Dokumentobjekt()); } else { return ((Dokumentobjekt) _storedValue); } } public Dokumentobjekt.Builder<_B> copyOf(final Dokumentobjekt _other) { _other.copyTo(this); return this; } public Dokumentobjekt.Builder<_B> copyOf(final Dokumentobjekt.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Dokumentobjekt.Selector { Select() { super(null, null, null); } public static Dokumentobjekt.Select _root() { return new Dokumentobjekt.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private SystemID.Selector> systemID = null; private Variantformat.Selector> variantformat = null; private com.kscs.util.jaxb.Selector> filnavn = null; private Format.Selector> format = null; private com.kscs.util.jaxb.Selector> mimeType = null; private com.kscs.util.jaxb.Selector> formatDetaljer = null; private com.kscs.util.jaxb.Selector> opprettetDato = null; private com.kscs.util.jaxb.Selector> opprettetAv = null; private com.kscs.util.jaxb.Selector> referanseDokumentfil = null; private com.kscs.util.jaxb.Selector> sjekksum = null; private com.kscs.util.jaxb.Selector> sjekksumAlgoritme = null; private ElektroniskSignatur.Selector> elektroniskSignatur = null; private Konvertering.Selector> konverterings = 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.systemID!= null) { products.put("systemID", this.systemID.init()); } if (this.variantformat!= null) { products.put("variantformat", this.variantformat.init()); } if (this.filnavn!= null) { products.put("filnavn", this.filnavn.init()); } if (this.format!= null) { products.put("format", this.format.init()); } if (this.mimeType!= null) { products.put("mimeType", this.mimeType.init()); } if (this.formatDetaljer!= null) { products.put("formatDetaljer", this.formatDetaljer.init()); } if (this.opprettetDato!= null) { products.put("opprettetDato", this.opprettetDato.init()); } if (this.opprettetAv!= null) { products.put("opprettetAv", this.opprettetAv.init()); } if (this.referanseDokumentfil!= null) { products.put("referanseDokumentfil", this.referanseDokumentfil.init()); } if (this.sjekksum!= null) { products.put("sjekksum", this.sjekksum.init()); } if (this.sjekksumAlgoritme!= null) { products.put("sjekksumAlgoritme", this.sjekksumAlgoritme.init()); } if (this.elektroniskSignatur!= null) { products.put("elektroniskSignatur", this.elektroniskSignatur.init()); } if (this.konverterings!= null) { products.put("konverterings", this.konverterings.init()); } return products; } public SystemID.Selector> systemID() { return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID); } public Variantformat.Selector> variantformat() { return ((this.variantformat == null)?this.variantformat = new Variantformat.Selector>(this._root, this, "variantformat"):this.variantformat); } 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 Format.Selector> format() { return ((this.format == null)?this.format = new Format.Selector>(this._root, this, "format"):this.format); } 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); } public com.kscs.util.jaxb.Selector> formatDetaljer() { return ((this.formatDetaljer == null)?this.formatDetaljer = new com.kscs.util.jaxb.Selector>(this._root, this, "formatDetaljer"):this.formatDetaljer); } public com.kscs.util.jaxb.Selector> opprettetDato() { return ((this.opprettetDato == null)?this.opprettetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetDato"):this.opprettetDato); } public com.kscs.util.jaxb.Selector> opprettetAv() { return ((this.opprettetAv == null)?this.opprettetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetAv"):this.opprettetAv); } public com.kscs.util.jaxb.Selector> referanseDokumentfil() { return ((this.referanseDokumentfil == null)?this.referanseDokumentfil = new com.kscs.util.jaxb.Selector>(this._root, this, "referanseDokumentfil"):this.referanseDokumentfil); } public com.kscs.util.jaxb.Selector> sjekksum() { return ((this.sjekksum == null)?this.sjekksum = new com.kscs.util.jaxb.Selector>(this._root, this, "sjekksum"):this.sjekksum); } public com.kscs.util.jaxb.Selector> sjekksumAlgoritme() { return ((this.sjekksumAlgoritme == null)?this.sjekksumAlgoritme = new com.kscs.util.jaxb.Selector>(this._root, this, "sjekksumAlgoritme"):this.sjekksumAlgoritme); } public ElektroniskSignatur.Selector> elektroniskSignatur() { return ((this.elektroniskSignatur == null)?this.elektroniskSignatur = new ElektroniskSignatur.Selector>(this._root, this, "elektroniskSignatur"):this.elektroniskSignatur); } public Konvertering.Selector> konverterings() { return ((this.konverterings == null)?this.konverterings = new Konvertering.Selector>(this._root, this, "konverterings"):this.konverterings); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy