no.ks.fiks.arkiv.v1.dokumentobjekt.opprett.DokumentobjektOpprett 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.dokumentobjekt.opprett;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import no.ks.fiks.arkiv.v1.arkivmelding.opprett.Dokumentobjekt;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;
/**
* Legg til et dokumenobjekt til en dokumentbeskrivelse basert på dokumentbeskrivelseID
*
* Java class for dokumentobjektOpprett complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="dokumentobjektOpprett">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="dokumentbeskrivelseID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}systemID"/>
* <element name="dokumentobjekt" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}dokumentobjekt"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dokumentobjektOpprett", propOrder = {
"dokumentbeskrivelseID",
"dokumentobjekt"
})
@XmlRootElement(name = "dokumentobjektOpprett")
public class DokumentobjektOpprett {
@XmlElement(required = true)
protected SystemID dokumentbeskrivelseID;
@XmlElement(required = true)
protected Dokumentobjekt dokumentobjekt;
/**
* Gets the value of the dokumentbeskrivelseID property.
*
* @return
* possible object is
* {@link SystemID }
*
*/
public SystemID getDokumentbeskrivelseID() {
return dokumentbeskrivelseID;
}
/**
* Sets the value of the dokumentbeskrivelseID property.
*
* @param value
* allowed object is
* {@link SystemID }
*
*/
public void setDokumentbeskrivelseID(SystemID value) {
this.dokumentbeskrivelseID = value;
}
/**
* Gets the value of the dokumentobjekt property.
*
* @return
* possible object is
* {@link Dokumentobjekt }
*
*/
public Dokumentobjekt getDokumentobjekt() {
return dokumentobjekt;
}
/**
* Sets the value of the dokumentobjekt property.
*
* @param value
* allowed object is
* {@link Dokumentobjekt }
*
*/
public void setDokumentobjekt(Dokumentobjekt value) {
this.dokumentobjekt = 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 DokumentobjektOpprett.Builder<_B> _other) {
_other.dokumentbeskrivelseID = ((this.dokumentbeskrivelseID == null)?null:this.dokumentbeskrivelseID.newCopyBuilder(_other));
_other.dokumentobjekt = ((this.dokumentobjekt == null)?null:this.dokumentobjekt.newCopyBuilder(_other));
}
public<_B >DokumentobjektOpprett.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new DokumentobjektOpprett.Builder<_B>(_parentBuilder, this, true);
}
public DokumentobjektOpprett.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static DokumentobjektOpprett.Builder builder() {
return new DokumentobjektOpprett.Builder(null, null, false);
}
public static<_B >DokumentobjektOpprett.Builder<_B> copyOf(final DokumentobjektOpprett _other) {
final DokumentobjektOpprett.Builder<_B> _newBuilder = new DokumentobjektOpprett.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 DokumentobjektOpprett.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree dokumentbeskrivelseIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentbeskrivelseID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentbeskrivelseIDPropertyTree!= null):((dokumentbeskrivelseIDPropertyTree == null)||(!dokumentbeskrivelseIDPropertyTree.isLeaf())))) {
_other.dokumentbeskrivelseID = ((this.dokumentbeskrivelseID == null)?null:this.dokumentbeskrivelseID.newCopyBuilder(_other, dokumentbeskrivelseIDPropertyTree, _propertyTreeUse));
}
final PropertyTree dokumentobjektPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentobjekt"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentobjektPropertyTree!= null):((dokumentobjektPropertyTree == null)||(!dokumentobjektPropertyTree.isLeaf())))) {
_other.dokumentobjekt = ((this.dokumentobjekt == null)?null:this.dokumentobjekt.newCopyBuilder(_other, dokumentobjektPropertyTree, _propertyTreeUse));
}
}
public<_B >DokumentobjektOpprett.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new DokumentobjektOpprett.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public DokumentobjektOpprett.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >DokumentobjektOpprett.Builder<_B> copyOf(final DokumentobjektOpprett _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final DokumentobjektOpprett.Builder<_B> _newBuilder = new DokumentobjektOpprett.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static DokumentobjektOpprett.Builder copyExcept(final DokumentobjektOpprett _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static DokumentobjektOpprett.Builder copyOnly(final DokumentobjektOpprett _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final DokumentobjektOpprett _storedValue;
private SystemID.Builder> dokumentbeskrivelseID;
private Dokumentobjekt.Builder> dokumentobjekt;
public Builder(final _B _parentBuilder, final DokumentobjektOpprett _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.dokumentbeskrivelseID = ((_other.dokumentbeskrivelseID == null)?null:_other.dokumentbeskrivelseID.newCopyBuilder(this));
this.dokumentobjekt = ((_other.dokumentobjekt == null)?null:_other.dokumentobjekt.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final DokumentobjektOpprett _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree dokumentbeskrivelseIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentbeskrivelseID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentbeskrivelseIDPropertyTree!= null):((dokumentbeskrivelseIDPropertyTree == null)||(!dokumentbeskrivelseIDPropertyTree.isLeaf())))) {
this.dokumentbeskrivelseID = ((_other.dokumentbeskrivelseID == null)?null:_other.dokumentbeskrivelseID.newCopyBuilder(this, dokumentbeskrivelseIDPropertyTree, _propertyTreeUse));
}
final PropertyTree dokumentobjektPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dokumentobjekt"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dokumentobjektPropertyTree!= null):((dokumentobjektPropertyTree == null)||(!dokumentobjektPropertyTree.isLeaf())))) {
this.dokumentobjekt = ((_other.dokumentobjekt == null)?null:_other.dokumentobjekt.newCopyBuilder(this, dokumentobjektPropertyTree, _propertyTreeUse));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends DokumentobjektOpprett >_P init(final _P _product) {
_product.dokumentbeskrivelseID = ((this.dokumentbeskrivelseID == null)?null:this.dokumentbeskrivelseID.build());
_product.dokumentobjekt = ((this.dokumentobjekt == null)?null:this.dokumentobjekt.build());
return _product;
}
/**
* Sets the new value of "dokumentbeskrivelseID" (any previous value will be
* replaced)
*
* @param dokumentbeskrivelseID
* New value of the "dokumentbeskrivelseID" property.
*/
public DokumentobjektOpprett.Builder<_B> withDokumentbeskrivelseID(final SystemID dokumentbeskrivelseID) {
this.dokumentbeskrivelseID = ((dokumentbeskrivelseID == null)?null:new SystemID.Builder>(this, dokumentbeskrivelseID, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "dokumentbeskrivelseID" 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 "dokumentbeskrivelseID" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID.Builder#end()} to
* return to the current builder.
*/
public SystemID.Builder extends DokumentobjektOpprett.Builder<_B>> withDokumentbeskrivelseID() {
if (this.dokumentbeskrivelseID!= null) {
return this.dokumentbeskrivelseID;
}
return this.dokumentbeskrivelseID = new SystemID.Builder>(this, null, false);
}
/**
* Sets the new value of "dokumentobjekt" (any previous value will be replaced)
*
* @param dokumentobjekt
* New value of the "dokumentobjekt" property.
*/
public DokumentobjektOpprett.Builder<_B> withDokumentobjekt(final Dokumentobjekt dokumentobjekt) {
this.dokumentobjekt = ((dokumentobjekt == null)?null:new Dokumentobjekt.Builder>(this, dokumentobjekt, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "dokumentobjekt" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.Dokumentobjekt.Builder#end()} to return
* to the current builder.
*
* @return
* A new builder to build the value of the "dokumentobjekt" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivmelding.opprett.Dokumentobjekt.Builder#end()} to return
* to the current builder.
*/
public Dokumentobjekt.Builder extends DokumentobjektOpprett.Builder<_B>> withDokumentobjekt() {
if (this.dokumentobjekt!= null) {
return this.dokumentobjekt;
}
return this.dokumentobjekt = new Dokumentobjekt.Builder>(this, null, false);
}
@Override
public DokumentobjektOpprett build() {
if (_storedValue == null) {
return this.init(new DokumentobjektOpprett());
} else {
return ((DokumentobjektOpprett) _storedValue);
}
}
public DokumentobjektOpprett.Builder<_B> copyOf(final DokumentobjektOpprett _other) {
_other.copyTo(this);
return this;
}
public DokumentobjektOpprett.Builder<_B> copyOf(final DokumentobjektOpprett.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends DokumentobjektOpprett.Selector
{
Select() {
super(null, null, null);
}
public static DokumentobjektOpprett.Select _root() {
return new DokumentobjektOpprett.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private SystemID.Selector> dokumentbeskrivelseID = null;
private Dokumentobjekt.Selector> dokumentobjekt = 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.dokumentbeskrivelseID!= null) {
products.put("dokumentbeskrivelseID", this.dokumentbeskrivelseID.init());
}
if (this.dokumentobjekt!= null) {
products.put("dokumentobjekt", this.dokumentobjekt.init());
}
return products;
}
public SystemID.Selector> dokumentbeskrivelseID() {
return ((this.dokumentbeskrivelseID == null)?this.dokumentbeskrivelseID = new SystemID.Selector>(this._root, this, "dokumentbeskrivelseID"):this.dokumentbeskrivelseID);
}
public Dokumentobjekt.Selector> dokumentobjekt() {
return ((this.dokumentobjekt == null)?this.dokumentobjekt = new Dokumentobjekt.Selector>(this._root, this, "dokumentobjekt"):this.dokumentobjekt);
}
}
}