no.ks.fiks.arkiv.v1.arkivstruktur.nokler.DokumentbeskrivelseNoekler 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.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.SystemID;
/**
* Java class for dokumentbeskrivelseNoekler complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="dokumentbeskrivelseNoekler">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dokumentbeskrivelseNoekler", propOrder = {
"systemID"
})
public class DokumentbeskrivelseNoekler {
protected SystemID systemID;
/**
* 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;
}
/**
* 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 DokumentbeskrivelseNoekler.Builder<_B> _other) {
_other.systemID = ((this.systemID == null)?null:this.systemID.newCopyBuilder(_other));
}
public<_B >DokumentbeskrivelseNoekler.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new DokumentbeskrivelseNoekler.Builder<_B>(_parentBuilder, this, true);
}
public DokumentbeskrivelseNoekler.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static DokumentbeskrivelseNoekler.Builder builder() {
return new DokumentbeskrivelseNoekler.Builder(null, null, false);
}
public static<_B >DokumentbeskrivelseNoekler.Builder<_B> copyOf(final DokumentbeskrivelseNoekler _other) {
final DokumentbeskrivelseNoekler.Builder<_B> _newBuilder = new DokumentbeskrivelseNoekler.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 DokumentbeskrivelseNoekler.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));
}
}
public<_B >DokumentbeskrivelseNoekler.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new DokumentbeskrivelseNoekler.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public DokumentbeskrivelseNoekler.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >DokumentbeskrivelseNoekler.Builder<_B> copyOf(final DokumentbeskrivelseNoekler _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final DokumentbeskrivelseNoekler.Builder<_B> _newBuilder = new DokumentbeskrivelseNoekler.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static DokumentbeskrivelseNoekler.Builder copyExcept(final DokumentbeskrivelseNoekler _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static DokumentbeskrivelseNoekler.Builder copyOnly(final DokumentbeskrivelseNoekler _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final DokumentbeskrivelseNoekler _storedValue;
private SystemID.Builder> systemID;
public Builder(final _B _parentBuilder, final DokumentbeskrivelseNoekler _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.systemID = ((_other.systemID == null)?null:_other.systemID.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final DokumentbeskrivelseNoekler _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));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends DokumentbeskrivelseNoekler >_P init(final _P _product) {
_product.systemID = ((this.systemID == null)?null:this.systemID.build());
return _product;
}
/**
* Sets the new value of "systemID" (any previous value will be replaced)
*
* @param systemID
* New value of the "systemID" property.
*/
public DokumentbeskrivelseNoekler.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 DokumentbeskrivelseNoekler.Builder<_B>> withSystemID() {
if (this.systemID!= null) {
return this.systemID;
}
return this.systemID = new SystemID.Builder>(this, null, false);
}
@Override
public DokumentbeskrivelseNoekler build() {
if (_storedValue == null) {
return this.init(new DokumentbeskrivelseNoekler());
} else {
return ((DokumentbeskrivelseNoekler) _storedValue);
}
}
public DokumentbeskrivelseNoekler.Builder<_B> copyOf(final DokumentbeskrivelseNoekler _other) {
_other.copyTo(this);
return this;
}
public DokumentbeskrivelseNoekler.Builder<_B> copyOf(final DokumentbeskrivelseNoekler.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends DokumentbeskrivelseNoekler.Selector
{
Select() {
super(null, null, null);
}
public static DokumentbeskrivelseNoekler.Select _root() {
return new DokumentbeskrivelseNoekler.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private SystemID.Selector> systemID = 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());
}
return products;
}
public SystemID.Selector> systemID() {
return ((this.systemID == null)?this.systemID = new SystemID.Selector>(this._root, this, "systemID"):this.systemID);
}
}
}