no.ks.fiks.arkiv.v1.innsyn.mappe.MappeHent 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.innsyn.mappe;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
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.ReferanseTilMappe;
/**
* Java class for mappeHent complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="mappeHent">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="system" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="referanseTilMappe" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}referanseTilMappe"/>
* <element name="inkluder" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/mappe/hent/v1}inkluder" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "mappeHent", propOrder = {
"system",
"referanseTilMappe",
"inkluders"
})
@XmlRootElement(name = "mappeHent")
public class MappeHent {
@XmlElement(required = true)
protected String system;
@XmlElement(required = true)
protected ReferanseTilMappe referanseTilMappe;
@XmlElement(name = "inkluder")
@XmlSchemaType(name = "string")
protected List inkluders;
/**
* Gets the value of the system property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSystem() {
return system;
}
/**
* Sets the value of the system property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSystem(String value) {
this.system = value;
}
/**
* Gets the value of the referanseTilMappe property.
*
* @return
* possible object is
* {@link ReferanseTilMappe }
*
*/
public ReferanseTilMappe getReferanseTilMappe() {
return referanseTilMappe;
}
/**
* Sets the value of the referanseTilMappe property.
*
* @param value
* allowed object is
* {@link ReferanseTilMappe }
*
*/
public void setReferanseTilMappe(ReferanseTilMappe value) {
this.referanseTilMappe = value;
}
/**
* Gets the value of the inkluders 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 inkluders property.
*
*
* For example, to add a new item, do as follows:
*
* getInkluders().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Inkluder }
*
*
*/
public List getInkluders() {
if (inkluders == null) {
inkluders = new ArrayList();
}
return this.inkluders;
}
/**
* 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 MappeHent.Builder<_B> _other) {
_other.system = this.system;
_other.referanseTilMappe = ((this.referanseTilMappe == null)?null:this.referanseTilMappe.newCopyBuilder(_other));
if (this.inkluders == null) {
_other.inkluders = null;
} else {
_other.inkluders = new ArrayList();
for (Inkluder _item: this.inkluders) {
_other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
public<_B >MappeHent.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new MappeHent.Builder<_B>(_parentBuilder, this, true);
}
public MappeHent.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static MappeHent.Builder builder() {
return new MappeHent.Builder(null, null, false);
}
public static<_B >MappeHent.Builder<_B> copyOf(final MappeHent _other) {
final MappeHent.Builder<_B> _newBuilder = new MappeHent.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 MappeHent.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) {
_other.system = this.system;
}
final PropertyTree referanseTilMappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseTilMappe"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseTilMappePropertyTree!= null):((referanseTilMappePropertyTree == null)||(!referanseTilMappePropertyTree.isLeaf())))) {
_other.referanseTilMappe = ((this.referanseTilMappe == null)?null:this.referanseTilMappe.newCopyBuilder(_other, referanseTilMappePropertyTree, _propertyTreeUse));
}
final PropertyTree inkludersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("inkluders"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(inkludersPropertyTree!= null):((inkludersPropertyTree == null)||(!inkludersPropertyTree.isLeaf())))) {
if (this.inkluders == null) {
_other.inkluders = null;
} else {
_other.inkluders = new ArrayList();
for (Inkluder _item: this.inkluders) {
_other.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
}
public<_B >MappeHent.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new MappeHent.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public MappeHent.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >MappeHent.Builder<_B> copyOf(final MappeHent _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final MappeHent.Builder<_B> _newBuilder = new MappeHent.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static MappeHent.Builder copyExcept(final MappeHent _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static MappeHent.Builder copyOnly(final MappeHent _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final MappeHent _storedValue;
private String system;
private ReferanseTilMappe.Builder> referanseTilMappe;
private List inkluders;
public Builder(final _B _parentBuilder, final MappeHent _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.system = _other.system;
this.referanseTilMappe = ((_other.referanseTilMappe == null)?null:_other.referanseTilMappe.newCopyBuilder(this));
if (_other.inkluders == null) {
this.inkluders = null;
} else {
this.inkluders = new ArrayList();
for (Inkluder _item: _other.inkluders) {
this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final MappeHent _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) {
this.system = _other.system;
}
final PropertyTree referanseTilMappePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("referanseTilMappe"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(referanseTilMappePropertyTree!= null):((referanseTilMappePropertyTree == null)||(!referanseTilMappePropertyTree.isLeaf())))) {
this.referanseTilMappe = ((_other.referanseTilMappe == null)?null:_other.referanseTilMappe.newCopyBuilder(this, referanseTilMappePropertyTree, _propertyTreeUse));
}
final PropertyTree inkludersPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("inkluders"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(inkludersPropertyTree!= null):((inkludersPropertyTree == null)||(!inkludersPropertyTree.isLeaf())))) {
if (_other.inkluders == null) {
this.inkluders = null;
} else {
this.inkluders = new ArrayList();
for (Inkluder _item: _other.inkluders) {
this.inkluders.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends MappeHent >_P init(final _P _product) {
_product.system = this.system;
_product.referanseTilMappe = ((this.referanseTilMappe == null)?null:this.referanseTilMappe.build());
if (this.inkluders!= null) {
final List inkluders = new ArrayList(this.inkluders.size());
for (Buildable _item: this.inkluders) {
inkluders.add(((Inkluder) _item.build()));
}
_product.inkluders = inkluders;
}
return _product;
}
/**
* Sets the new value of "system" (any previous value will be replaced)
*
* @param system
* New value of the "system" property.
*/
public MappeHent.Builder<_B> withSystem(final String system) {
this.system = system;
return this;
}
/**
* Sets the new value of "referanseTilMappe" (any previous value will be replaced)
*
* @param referanseTilMappe
* New value of the "referanseTilMappe" property.
*/
public MappeHent.Builder<_B> withReferanseTilMappe(final ReferanseTilMappe referanseTilMappe) {
this.referanseTilMappe = ((referanseTilMappe == null)?null:new ReferanseTilMappe.Builder>(this, referanseTilMappe, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "referanseTilMappe" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe.Builder#end()}
* to return to the current builder.
*
* @return
* A new builder to build the value of the "referanseTilMappe" property.
* Use {@link
* no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.ReferanseTilMappe.Builder#end()}
* to return to the current builder.
*/
public ReferanseTilMappe.Builder extends MappeHent.Builder<_B>> withReferanseTilMappe() {
if (this.referanseTilMappe!= null) {
return this.referanseTilMappe;
}
return this.referanseTilMappe = new ReferanseTilMappe.Builder>(this, null, false);
}
/**
* Adds the given items to the value of "inkluders"
*
* @param inkluders
* Items to add to the value of the "inkluders" property
*/
public MappeHent.Builder<_B> addInkluders(final Iterable extends Inkluder> inkluders) {
if (inkluders!= null) {
if (this.inkluders == null) {
this.inkluders = new ArrayList();
}
for (Inkluder _item: inkluders) {
this.inkluders.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "inkluders" (any previous value will be replaced)
*
* @param inkluders
* New value of the "inkluders" property.
*/
public MappeHent.Builder<_B> withInkluders(final Iterable extends Inkluder> inkluders) {
if (this.inkluders!= null) {
this.inkluders.clear();
}
return addInkluders(inkluders);
}
/**
* Adds the given items to the value of "inkluders"
*
* @param inkluders
* Items to add to the value of the "inkluders" property
*/
public MappeHent.Builder<_B> addInkluders(Inkluder... inkluders) {
addInkluders(Arrays.asList(inkluders));
return this;
}
/**
* Sets the new value of "inkluders" (any previous value will be replaced)
*
* @param inkluders
* New value of the "inkluders" property.
*/
public MappeHent.Builder<_B> withInkluders(Inkluder... inkluders) {
withInkluders(Arrays.asList(inkluders));
return this;
}
@Override
public MappeHent build() {
if (_storedValue == null) {
return this.init(new MappeHent());
} else {
return ((MappeHent) _storedValue);
}
}
public MappeHent.Builder<_B> copyOf(final MappeHent _other) {
_other.copyTo(this);
return this;
}
public MappeHent.Builder<_B> copyOf(final MappeHent.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends MappeHent.Selector
{
Select() {
super(null, null, null);
}
public static MappeHent.Select _root() {
return new MappeHent.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> system = null;
private ReferanseTilMappe.Selector> referanseTilMappe = null;
private com.kscs.util.jaxb.Selector> inkluders = 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.system!= null) {
products.put("system", this.system.init());
}
if (this.referanseTilMappe!= null) {
products.put("referanseTilMappe", this.referanseTilMappe.init());
}
if (this.inkluders!= null) {
products.put("inkluders", this.inkluders.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> system() {
return ((this.system == null)?this.system = new com.kscs.util.jaxb.Selector>(this._root, this, "system"):this.system);
}
public ReferanseTilMappe.Selector> referanseTilMappe() {
return ((this.referanseTilMappe == null)?this.referanseTilMappe = new ReferanseTilMappe.Selector>(this._root, this, "referanseTilMappe"):this.referanseTilMappe);
}
public com.kscs.util.jaxb.Selector> inkluders() {
return ((this.inkluders == null)?this.inkluders = new com.kscs.util.jaxb.Selector>(this._root, this, "inkluders"):this.inkluders);
}
}
}