no.ks.fiks.arkiv.v1.arkivstruktur.nokler.RegistreringNoekler 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.arkivstruktur.nokler;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SystemID;
/**
* Java class for registreringNoekler complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="registreringNoekler">
* <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="referanseEksternNoekkel" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}eksternNoekkel" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "registreringNoekler", propOrder = {
"systemID",
"referanseEksternNoekkel"
})
@XmlSeeAlso({
JournalpostNoekler.class
})
public class RegistreringNoekler {
protected SystemID systemID;
protected EksternNoekkel referanseEksternNoekkel;
/**
* 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 referanseEksternNoekkel property.
*
* @return
* possible object is
* {@link EksternNoekkel }
*
*/
public EksternNoekkel getReferanseEksternNoekkel() {
return referanseEksternNoekkel;
}
/**
* Sets the value of the referanseEksternNoekkel property.
*
* @param value
* allowed object is
* {@link EksternNoekkel }
*
*/
public void setReferanseEksternNoekkel(EksternNoekkel value) {
this.referanseEksternNoekkel = 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 RegistreringNoekler.Builder<_B> _other) {
_other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other));
_other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other));
}
public<_B >RegistreringNoekler.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new RegistreringNoekler.Builder<_B>(_parentBuilder, this, true);
}
public RegistreringNoekler.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static RegistreringNoekler.Builder builder() {
return new RegistreringNoekler.Builder(null, null, false);
}
public static<_B >RegistreringNoekler.Builder<_B> copyOf(final RegistreringNoekler _other) {
final RegistreringNoekler.Builder<_B> _newBuilder = new RegistreringNoekler.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 RegistreringNoekler.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 referanseEksternNoekkelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseEksternNoekkel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseEksternNoekkelPropertyTree!= null):((referanseEksternNoekkelPropertyTree == null)||(!referanseEksternNoekkelPropertyTree.isLeaf())))) {
_other.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.newCopyBuilder(_other, referanseEksternNoekkelPropertyTree, _propertyTreeUse));
}
}
public<_B >RegistreringNoekler.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new RegistreringNoekler.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public RegistreringNoekler.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >RegistreringNoekler.Builder<_B> copyOf(final RegistreringNoekler _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final RegistreringNoekler.Builder<_B> _newBuilder = new RegistreringNoekler.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static RegistreringNoekler.Builder copyExcept(final RegistreringNoekler _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static RegistreringNoekler.Builder copyOnly(final RegistreringNoekler _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final RegistreringNoekler _storedValue;
private SystemID.Builder> systemID;
private EksternNoekkel.Builder> referanseEksternNoekkel;
public Builder(final _B _parentBuilder, final RegistreringNoekler _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.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final RegistreringNoekler _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 referanseEksternNoekkelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseEksternNoekkel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseEksternNoekkelPropertyTree!= null):((referanseEksternNoekkelPropertyTree == null)||(!referanseEksternNoekkelPropertyTree.isLeaf())))) {
this.referanseEksternNoekkel = ((_other.referanseEksternNoekkel == null)?null:_other.referanseEksternNoekkel.newCopyBuilder(this, referanseEksternNoekkelPropertyTree, _propertyTreeUse));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends RegistreringNoekler >_P init(final _P _product) {
_product.systemID = ((this.systemID == null)?null:this.systemID.build());
_product.referanseEksternNoekkel = ((this.referanseEksternNoekkel == null)?null:this.referanseEksternNoekkel.build());
return _product;
}
/**
* Sets the new value of "systemID" (any previous value will be replaced)
*
* @param systemID
* New value of the "systemID" property.
*/
public RegistreringNoekler.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 RegistreringNoekler.Builder<_B>> withSystemID() {
if (this.systemID!= null) {
return this.systemID;
}
return this.systemID = new SystemID.Builder>(this, null, false);
}
/**
* Sets the new value of "referanseEksternNoekkel" (any previous value will be
* replaced)
*
* @param referanseEksternNoekkel
* New value of the "referanseEksternNoekkel" property.
*/
public RegistreringNoekler.Builder<_B> withReferanseEksternNoekkel(final EksternNoekkel referanseEksternNoekkel) {
this.referanseEksternNoekkel = ((referanseEksternNoekkel == null)?null:new EksternNoekkel.Builder>(this, referanseEksternNoekkel, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "referanseEksternNoekkel" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel.Builder#end()}
* to return to the current builder.
*
* @return
* A new builder to build the value of the "referanseEksternNoekkel" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.EksternNoekkel.Builder#end()}
* to return to the current builder.
*/
public EksternNoekkel.Builder extends RegistreringNoekler.Builder<_B>> withReferanseEksternNoekkel() {
if (this.referanseEksternNoekkel!= null) {
return this.referanseEksternNoekkel;
}
return this.referanseEksternNoekkel = new EksternNoekkel.Builder>(this, null, false);
}
@Override
public RegistreringNoekler build() {
if (_storedValue == null) {
return this.init(new RegistreringNoekler());
} else {
return ((RegistreringNoekler) _storedValue);
}
}
public RegistreringNoekler.Builder<_B> copyOf(final RegistreringNoekler _other) {
_other.copyTo(this);
return this;
}
public RegistreringNoekler.Builder<_B> copyOf(final RegistreringNoekler.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends RegistreringNoekler.Selector
{
Select() {
super(null, null, null);
}
public static RegistreringNoekler.Select _root() {
return new RegistreringNoekler.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private SystemID.Selector> systemID = null;
private EksternNoekkel.Selector> referanseEksternNoekkel = 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.referanseEksternNoekkel!= null) {
products.put("referanseEksternNoekkel", this.referanseEksternNoekkel.init());
}
return products;
}
public SystemID.Selector> systemID() {
return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID);
}
public EksternNoekkel.Selector> referanseEksternNoekkel() {
return ((this.referanseEksternNoekkel == null)?this.referanseEksternNoekkel = new EksternNoekkel.Selector>(this._root, this, "referanseEksternNoekkel"):this.referanseEksternNoekkel);
}
}
}