no.ks.fiks.arkiv.v1.arkivmelding.opprett.Dokumentobjekt 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.arkivmelding.opprett;
import java.time.ZonedDateTime;
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.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" minOccurs="0"/>
* <element name="versjonsnummer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}versjonsnummer" minOccurs="0"/>
* <element name="variantformat" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}variantformat" minOccurs="0"/>
* <element name="format" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}format" minOccurs="0"/>
* <element name="formatDetaljer" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}formatDetaljer" minOccurs="0"/>
* <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="opprettetDato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetDato" minOccurs="0"/>
* <element name="opprettetAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}opprettetAv" minOccurs="0"/>
* <element name="filnavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="referanseDokumentfil" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseDokumentfil" minOccurs="0"/>
* <element name="sjekksum" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}sjekksum" minOccurs="0"/>
* <element name="sjekksumAlgoritme" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}sjekksumAlgoritme" minOccurs="0"/>
* <element name="filstoerrelse" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}filstoerrelse" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dokumentobjekt", propOrder = {
"systemID",
"versjonsnummer",
"variantformat",
"format",
"formatDetaljer",
"mimeType",
"opprettetDato",
"opprettetAv",
"filnavn",
"referanseDokumentfil",
"sjekksum",
"sjekksumAlgoritme",
"filstoerrelse"
})
public class Dokumentobjekt {
protected SystemID systemID;
protected Integer versjonsnummer;
protected Variantformat variantformat;
protected Format format;
protected String formatDetaljer;
protected String mimeType;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime opprettetDato;
protected String opprettetAv;
@XmlElement(required = true)
protected String filnavn;
protected String referanseDokumentfil;
protected String sjekksum;
protected String sjekksumAlgoritme;
protected Integer filstoerrelse;
/**
* 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.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getVersjonsnummer() {
return versjonsnummer;
}
/**
* Sets the value of the versjonsnummer property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setVersjonsnummer(Integer 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 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 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 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 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 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 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.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getFilstoerrelse() {
return filstoerrelse;
}
/**
* Sets the value of the filstoerrelse property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setFilstoerrelse(Integer value) {
this.filstoerrelse = 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 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.format = ((this.format == null)?null:this.format.newCopyBuilder(_other));
_other.formatDetaljer = this.formatDetaljer;
_other.mimeType = this.mimeType;
_other.opprettetDato = this.opprettetDato;
_other.opprettetAv = this.opprettetAv;
_other.filnavn = this.filnavn;
_other.referanseDokumentfil = this.referanseDokumentfil;
_other.sjekksum = this.sjekksum;
_other.sjekksumAlgoritme = this.sjekksumAlgoritme;
_other.filstoerrelse = this.filstoerrelse;
}
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 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 formatDetaljerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("formatDetaljer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(formatDetaljerPropertyTree!= null):((formatDetaljerPropertyTree == null)||(!formatDetaljerPropertyTree.isLeaf())))) {
_other.formatDetaljer = this.formatDetaljer;
}
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 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 filnavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("filnavn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(filnavnPropertyTree!= null):((filnavnPropertyTree == null)||(!filnavnPropertyTree.isLeaf())))) {
_other.filnavn = this.filnavn;
}
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;
}
}
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 Integer versjonsnummer;
private Variantformat.Builder> variantformat;
private Format.Builder> format;
private String formatDetaljer;
private String mimeType;
private ZonedDateTime opprettetDato;
private String opprettetAv;
private String filnavn;
private String referanseDokumentfil;
private String sjekksum;
private String sjekksumAlgoritme;
private Integer filstoerrelse;
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.format = ((_other.format == null)?null:_other.format.newCopyBuilder(this));
this.formatDetaljer = _other.formatDetaljer;
this.mimeType = _other.mimeType;
this.opprettetDato = _other.opprettetDato;
this.opprettetAv = _other.opprettetAv;
this.filnavn = _other.filnavn;
this.referanseDokumentfil = _other.referanseDokumentfil;
this.sjekksum = _other.sjekksum;
this.sjekksumAlgoritme = _other.sjekksumAlgoritme;
this.filstoerrelse = _other.filstoerrelse;
} 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 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 formatDetaljerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("formatDetaljer"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(formatDetaljerPropertyTree!= null):((formatDetaljerPropertyTree == null)||(!formatDetaljerPropertyTree.isLeaf())))) {
this.formatDetaljer = _other.formatDetaljer;
}
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 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 filnavnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("filnavn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(filnavnPropertyTree!= null):((filnavnPropertyTree == null)||(!filnavnPropertyTree.isLeaf())))) {
this.filnavn = _other.filnavn;
}
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;
}
} 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.format = ((this.format == null)?null:this.format.build());
_product.formatDetaljer = this.formatDetaljer;
_product.mimeType = this.mimeType;
_product.opprettetDato = this.opprettetDato;
_product.opprettetAv = this.opprettetAv;
_product.filnavn = this.filnavn;
_product.referanseDokumentfil = this.referanseDokumentfil;
_product.sjekksum = this.sjekksum;
_product.sjekksumAlgoritme = this.sjekksumAlgoritme;
_product.filstoerrelse = this.filstoerrelse;
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 extends Dokumentobjekt.Builder<_B>> 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 Integer 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 extends Dokumentobjekt.Builder<_B>> withVariantformat() {
if (this.variantformat!= null) {
return this.variantformat;
}
return this.variantformat = new Variantformat.Builder>(this, null, false);
}
/**
* 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 extends Dokumentobjekt.Builder<_B>> withFormat() {
if (this.format!= null) {
return this.format;
}
return this.format = new Format.Builder>(this, null, false);
}
/**
* 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 "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 "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 "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 "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 Integer filstoerrelse) {
this.filstoerrelse = filstoerrelse;
return this;
}
@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 com.kscs.util.jaxb.Selector> versjonsnummer = null;
private Variantformat.Selector> variantformat = null;
private Format.Selector> format = null;
private com.kscs.util.jaxb.Selector> formatDetaljer = null;
private com.kscs.util.jaxb.Selector> mimeType = null;
private com.kscs.util.jaxb.Selector> opprettetDato = null;
private com.kscs.util.jaxb.Selector> opprettetAv = null;
private com.kscs.util.jaxb.Selector> filnavn = 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 com.kscs.util.jaxb.Selector> filstoerrelse = 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.versjonsnummer!= null) {
products.put("versjonsnummer", this.versjonsnummer.init());
}
if (this.variantformat!= null) {
products.put("variantformat", this.variantformat.init());
}
if (this.format!= null) {
products.put("format", this.format.init());
}
if (this.formatDetaljer!= null) {
products.put("formatDetaljer", this.formatDetaljer.init());
}
if (this.mimeType!= null) {
products.put("mimeType", this.mimeType.init());
}
if (this.opprettetDato!= null) {
products.put("opprettetDato", this.opprettetDato.init());
}
if (this.opprettetAv!= null) {
products.put("opprettetAv", this.opprettetAv.init());
}
if (this.filnavn!= null) {
products.put("filnavn", this.filnavn.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.filstoerrelse!= null) {
products.put("filstoerrelse", this.filstoerrelse.init());
}
return products;
}
public SystemID.Selector> systemID() {
return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID);
}
public com.kscs.util.jaxb.Selector> versjonsnummer() {
return ((this.versjonsnummer == null)?this.versjonsnummer = new com.kscs.util.jaxb.Selector>(this._root, this, "versjonsnummer"):this.versjonsnummer);
}
public Variantformat.Selector> variantformat() {
return ((this.variantformat == null)?this.variantformat = new Variantformat.Selector>(this._root, this, "variantformat"):this.variantformat);
}
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> 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> 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> 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> 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> 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 com.kscs.util.jaxb.Selector> filstoerrelse() {
return ((this.filstoerrelse == null)?this.filstoerrelse = new com.kscs.util.jaxb.Selector>(this._root, this, "filstoerrelse"):this.filstoerrelse);
}
}
}