
no.difi.meldingsutveksling.ks.svarut.RetrieveMottakerSystemForOrgnrResponse Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.09.09 at 10:33:19 AM UTC
//
package no.difi.meldingsutveksling.ks.svarut;
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.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
* Java class for retrieveMottakerSystemForOrgnrResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="retrieveMottakerSystemForOrgnrResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="return" type="{http://www.ks.no/svarut/servicesV9}mottakerForsendelseTyper" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "retrieveMottakerSystemForOrgnrResponse", propOrder = {
"_return"
})
public class RetrieveMottakerSystemForOrgnrResponse {
@XmlElement(name = "return")
protected List _return;
/**
* Gets the value of the return 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 return property.
*
*
* For example, to add a new item, do as follows:
*
* getReturn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link MottakerForsendelseTyper }
*
*
*/
public List getReturn() {
if (_return == null) {
_return = new ArrayList();
}
return this._return;
}
/**
* 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 RetrieveMottakerSystemForOrgnrResponse.Builder<_B> _other) {
if (this._return == null) {
_other._return = null;
} else {
_other._return = new ArrayList>>();
for (MottakerForsendelseTyper _item: this._return) {
_other._return.add(((_item == null)?null:_item.newCopyBuilder(_other)));
}
}
}
public<_B >RetrieveMottakerSystemForOrgnrResponse.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new RetrieveMottakerSystemForOrgnrResponse.Builder<_B>(_parentBuilder, this, true);
}
public RetrieveMottakerSystemForOrgnrResponse.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static RetrieveMottakerSystemForOrgnrResponse.Builder builder() {
return new RetrieveMottakerSystemForOrgnrResponse.Builder(null, null, false);
}
public static<_B >RetrieveMottakerSystemForOrgnrResponse.Builder<_B> copyOf(final RetrieveMottakerSystemForOrgnrResponse _other) {
final RetrieveMottakerSystemForOrgnrResponse.Builder<_B> _newBuilder = new RetrieveMottakerSystemForOrgnrResponse.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 RetrieveMottakerSystemForOrgnrResponse.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree _returnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("_return"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(_returnPropertyTree!= null):((_returnPropertyTree == null)||(!_returnPropertyTree.isLeaf())))) {
if (this._return == null) {
_other._return = null;
} else {
_other._return = new ArrayList>>();
for (MottakerForsendelseTyper _item: this._return) {
_other._return.add(((_item == null)?null:_item.newCopyBuilder(_other, _returnPropertyTree, _propertyTreeUse)));
}
}
}
}
public<_B >RetrieveMottakerSystemForOrgnrResponse.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new RetrieveMottakerSystemForOrgnrResponse.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public RetrieveMottakerSystemForOrgnrResponse.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >RetrieveMottakerSystemForOrgnrResponse.Builder<_B> copyOf(final RetrieveMottakerSystemForOrgnrResponse _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final RetrieveMottakerSystemForOrgnrResponse.Builder<_B> _newBuilder = new RetrieveMottakerSystemForOrgnrResponse.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static RetrieveMottakerSystemForOrgnrResponse.Builder copyExcept(final RetrieveMottakerSystemForOrgnrResponse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static RetrieveMottakerSystemForOrgnrResponse.Builder copyOnly(final RetrieveMottakerSystemForOrgnrResponse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final RetrieveMottakerSystemForOrgnrResponse _storedValue;
private List>> _return;
public Builder(final _B _parentBuilder, final RetrieveMottakerSystemForOrgnrResponse _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
if (_other._return == null) {
this._return = null;
} else {
this._return = new ArrayList>>();
for (MottakerForsendelseTyper _item: _other._return) {
this._return.add(((_item == null)?null:_item.newCopyBuilder(this)));
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final RetrieveMottakerSystemForOrgnrResponse _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree _returnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("_return"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(_returnPropertyTree!= null):((_returnPropertyTree == null)||(!_returnPropertyTree.isLeaf())))) {
if (_other._return == null) {
this._return = null;
} else {
this._return = new ArrayList>>();
for (MottakerForsendelseTyper _item: _other._return) {
this._return.add(((_item == null)?null:_item.newCopyBuilder(this, _returnPropertyTree, _propertyTreeUse)));
}
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends RetrieveMottakerSystemForOrgnrResponse >_P init(final _P _product) {
if (this._return!= null) {
final List _return = new ArrayList(this._return.size());
for (MottakerForsendelseTyper.Builder> _item: this._return) {
_return.add(_item.build());
}
_product._return = _return;
}
return _product;
}
/**
* Adds the given items to the value of "_return"
*
* @param _return
* Items to add to the value of the "_return" property
*/
public RetrieveMottakerSystemForOrgnrResponse.Builder<_B> addReturn(final Iterable extends MottakerForsendelseTyper> _return) {
if (_return!= null) {
if (this._return == null) {
this._return = new ArrayList>>();
}
for (MottakerForsendelseTyper _item: _return) {
this._return.add(new MottakerForsendelseTyper.Builder>(this, _item, false));
}
}
return this;
}
/**
* Sets the new value of "_return" (any previous value will be replaced)
*
* @param _return
* New value of the "_return" property.
*/
public RetrieveMottakerSystemForOrgnrResponse.Builder<_B> withReturn(final Iterable extends MottakerForsendelseTyper> _return) {
if (this._return!= null) {
this._return.clear();
}
return addReturn(_return);
}
/**
* Adds the given items to the value of "_return"
*
* @param _return
* Items to add to the value of the "_return" property
*/
public RetrieveMottakerSystemForOrgnrResponse.Builder<_B> addReturn(MottakerForsendelseTyper... _return) {
addReturn(Arrays.asList(_return));
return this;
}
/**
* Sets the new value of "_return" (any previous value will be replaced)
*
* @param _return
* New value of the "_return" property.
*/
public RetrieveMottakerSystemForOrgnrResponse.Builder<_B> withReturn(MottakerForsendelseTyper... _return) {
withReturn(Arrays.asList(_return));
return this;
}
/**
* Returns a new builder to build an additional value of the "Return" property.
* Use {@link no.difi.meldingsutveksling.ks.svarut.MottakerForsendelseTyper.Builder#end()} to return to the current builder.
*
* @return
* a new builder to build an additional value of the "Return" property.
* Use {@link no.difi.meldingsutveksling.ks.svarut.MottakerForsendelseTyper.Builder#end()} to return to the current builder.
*/
public MottakerForsendelseTyper.Builder extends RetrieveMottakerSystemForOrgnrResponse.Builder<_B>> addReturn() {
if (this._return == null) {
this._return = new ArrayList>>();
}
final MottakerForsendelseTyper.Builder> _return_Builder = new MottakerForsendelseTyper.Builder>(this, null, false);
this._return.add(_return_Builder);
return _return_Builder;
}
@Override
public RetrieveMottakerSystemForOrgnrResponse build() {
if (_storedValue == null) {
return this.init(new RetrieveMottakerSystemForOrgnrResponse());
} else {
return ((RetrieveMottakerSystemForOrgnrResponse) _storedValue);
}
}
public RetrieveMottakerSystemForOrgnrResponse.Builder<_B> copyOf(final RetrieveMottakerSystemForOrgnrResponse _other) {
_other.copyTo(this);
return this;
}
public RetrieveMottakerSystemForOrgnrResponse.Builder<_B> copyOf(final RetrieveMottakerSystemForOrgnrResponse.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends RetrieveMottakerSystemForOrgnrResponse.Selector
{
Select() {
super(null, null, null);
}
public static RetrieveMottakerSystemForOrgnrResponse.Select _root() {
return new RetrieveMottakerSystemForOrgnrResponse.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private MottakerForsendelseTyper.Selector> _return = 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._return!= null) {
products.put("_return", this._return.init());
}
return products;
}
public MottakerForsendelseTyper.Selector> _return() {
return ((this._return == null)?this._return = new MottakerForsendelseTyper.Selector>(this._root, this, "_return"):this._return);
}
}
}