Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.kscs.jaxb2.contract.test.ReservedWordsMultiChoice Maven / Gradle / Ivy
//
// Diese Datei wurde mit der Eclipse Implementation of JAXB, v4.0.2 generiert
// Siehe https://eclipse-ee4j.github.io/jaxb-ri
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
//
package com.kscs.jaxb2.contract.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.CollectionProperty;
import com.kscs.util.jaxb.CollectionPropertyInfo;
import com.kscs.util.jaxb.CollectionPropertyInfo;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import com.kscs.util.jaxb.PropertyVisitor;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java-Klasse für anonymous complex type.
*
*
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
*
{@code
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"importOrClazz"
})
@XmlRootElement(name = "reserved-words-multi-choice")
public class ReservedWordsMultiChoice implements Cloneable
{
@XmlElements({
@XmlElement(name = "import", type = Import.class),
@XmlElement(name = "class", type = Class.class)
})
protected List importOrClazz;
protected transient List importOrClazz_RO = null;
protected transient ReservedWordsMultiChoice.Modifier __cachedModifier__;
@Override
public ReservedWordsMultiChoice clone() {
final ReservedWordsMultiChoice _newObject;
try {
_newObject = ((ReservedWordsMultiChoice) super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
_newObject.importOrClazz = ((this.importOrClazz == null)?null:new ArrayList<>(this.importOrClazz));
_newObject.importOrClazz_RO = ((importOrClazz == null)?null:Collections.unmodifiableList(_newObject.importOrClazz));
return _newObject;
}
/**
* Copies all state of this object to a builder. This method is used by the 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 ReservedWordsMultiChoice.Builder<_B> _other) {
if (this.importOrClazz == null) {
_other.importOrClazz = null;
} else {
_other.importOrClazz = new ArrayList<>();
for (Object _item: this.importOrClazz) {
_other.importOrClazz.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
public<_B >ReservedWordsMultiChoice.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new ReservedWordsMultiChoice.Builder<_B>(_parentBuilder, this, true);
}
public ReservedWordsMultiChoice.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static ReservedWordsMultiChoice.Builder builder() {
return new ReservedWordsMultiChoice.Builder<>(null, null, false);
}
public static<_B >ReservedWordsMultiChoice.Builder<_B> copyOf(final ReservedWordsMultiChoice _other) {
final ReservedWordsMultiChoice.Builder<_B> _newBuilder = new ReservedWordsMultiChoice.Builder<>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
/**
* Copies all state of this object to a builder. This method is used by the 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 ReservedWordsMultiChoice.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree importOrClazzPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("importOrClazz"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(importOrClazzPropertyTree!= null):((importOrClazzPropertyTree == null)||(!importOrClazzPropertyTree.isLeaf())))) {
if (this.importOrClazz == null) {
_other.importOrClazz = null;
} else {
_other.importOrClazz = new ArrayList<>();
for (Object _item: this.importOrClazz) {
_other.importOrClazz.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
}
public<_B >ReservedWordsMultiChoice.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new ReservedWordsMultiChoice.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public ReservedWordsMultiChoice.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >ReservedWordsMultiChoice.Builder<_B> copyOf(final ReservedWordsMultiChoice _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final ReservedWordsMultiChoice.Builder<_B> _newBuilder = new ReservedWordsMultiChoice.Builder<>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static ReservedWordsMultiChoice.Builder copyExcept(final ReservedWordsMultiChoice _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static ReservedWordsMultiChoice.Builder copyOnly(final ReservedWordsMultiChoice _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public List getImportOrClazz() {
if (this.importOrClazz == null) {
this.importOrClazz = new ArrayList<>();
}
if (this.importOrClazz_RO == null) {
this.importOrClazz_RO = ((importOrClazz == null)?null:Collections.unmodifiableList(this.importOrClazz));
}
return this.importOrClazz_RO;
}
public ReservedWordsMultiChoice.Modifier modifier() {
if (null == this.__cachedModifier__) {
this.__cachedModifier__ = new ReservedWordsMultiChoice.Modifier();
}
return ((ReservedWordsMultiChoice.Modifier) this.__cachedModifier__);
}
public ReservedWordsMultiChoice visit(final PropertyVisitor _visitor_) {
_visitor_.visit(this);
_visitor_.visit(new CollectionProperty<>(ReservedWordsMultiChoice.PropInfo.importOrClazz, this));
return this;
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final ReservedWordsMultiChoice _storedValue;
private List importOrClazz;
public Builder(final _B _parentBuilder, final ReservedWordsMultiChoice _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
if (_other.importOrClazz == null) {
this.importOrClazz = null;
} else {
this.importOrClazz = new ArrayList<>();
for (Object _item: _other.importOrClazz) {
this.importOrClazz.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final ReservedWordsMultiChoice _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree importOrClazzPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("importOrClazz"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(importOrClazzPropertyTree!= null):((importOrClazzPropertyTree == null)||(!importOrClazzPropertyTree.isLeaf())))) {
if (_other.importOrClazz == null) {
this.importOrClazz = null;
} else {
this.importOrClazz = new ArrayList<>();
for (Object _item: _other.importOrClazz) {
this.importOrClazz.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends ReservedWordsMultiChoice >_P init(final _P _product) {
if (this.importOrClazz!= null) {
final List importOrClazz = new ArrayList<>(this.importOrClazz.size());
for (Buildable _item: this.importOrClazz) {
importOrClazz.add(((Object) _item.build()));
}
_product.importOrClazz = importOrClazz;
}
_product.importOrClazz_RO = ((importOrClazz == null)?null:Collections.unmodifiableList(_product.importOrClazz));
return _product;
}
/**
* Fügt Werte zur Eigenschaft "importOrClazz" hinzu.
*
* @param importOrClazz
* Werte, die zur Eigenschaft "importOrClazz" hinzugefügt werden.
*/
public ReservedWordsMultiChoice.Builder<_B> addImportOrClazz(final Iterable> importOrClazz) {
if (importOrClazz!= null) {
if (this.importOrClazz == null) {
this.importOrClazz = new ArrayList<>();
}
for (Object _item: importOrClazz) {
this.importOrClazz.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Setzt den neuen Wert der Eigenschaft "importOrClazz" (Vorher zugewiesener Wert
* wird ersetzt)
*
* @param importOrClazz
* Neuer Wert der Eigenschaft "importOrClazz".
*/
public ReservedWordsMultiChoice.Builder<_B> withImportOrClazz(final Iterable> importOrClazz) {
if (this.importOrClazz!= null) {
this.importOrClazz.clear();
}
return addImportOrClazz(importOrClazz);
}
/**
* Fügt Werte zur Eigenschaft "importOrClazz" hinzu.
*
* @param importOrClazz
* Werte, die zur Eigenschaft "importOrClazz" hinzugefügt werden.
*/
public ReservedWordsMultiChoice.Builder<_B> addImportOrClazz(Object... importOrClazz) {
addImportOrClazz(Arrays.asList(importOrClazz));
return this;
}
/**
* Setzt den neuen Wert der Eigenschaft "importOrClazz" (Vorher zugewiesener Wert
* wird ersetzt)
*
* @param importOrClazz
* Neuer Wert der Eigenschaft "importOrClazz".
*/
public ReservedWordsMultiChoice.Builder<_B> withImportOrClazz(Object... importOrClazz) {
withImportOrClazz(Arrays.asList(importOrClazz));
return this;
}
/**
* Fügt Werte zur Eigenschaft "_import_" hinzu.
*
* @param _import_
* Werte, die zur Eigenschaft "_import_" hinzugefügt werden.
*/
public ReservedWordsMultiChoice.Builder<_B> addImport(final Iterable extends Import> _import_) {
if (_import_!= null) {
if (this.importOrClazz == null) {
this.importOrClazz = new ArrayList<>();
}
for (Import _item: _import_) {
this.importOrClazz.add(new Import.Builder<>(this, _item, false));
}
}
return this;
}
/**
* Fügt Werte zur Eigenschaft "_import_" hinzu.
*
* @param _import_
* Werte, die zur Eigenschaft "_import_" hinzugefügt werden.
*/
public ReservedWordsMultiChoice.Builder<_B> addImport(Import... _import_) {
return addImport(Arrays.asList(_import_));
}
/**
* Erzeugt einen neuen "Builder" zum Zusammenbauen eines zusätzlichen Wertes für
* die Eigenschaft "_import".
* Mit {@link com.kscs.jaxb2.contract.test.Import.Builder#end()} geht es zurück zum
* aktuellen Builder.
*
* @return
* Ein neuer "Builder" zum Zusammenbauen eines zusätzlichen Wertes für die
* Eigenschaft "_import".
* Mit {@link com.kscs.jaxb2.contract.test.Import.Builder#end()} geht es zurück zum
* aktuellen Builder.
*/
public Import.Builder extends ReservedWordsMultiChoice.Builder<_B>> addImport() {
if (this.importOrClazz == null) {
this.importOrClazz = new ArrayList<>();
}
final Import.Builder> _import_Builder = new Import.Builder<>(this, null, false);
this.importOrClazz.add(_import_Builder);
return _import_Builder;
}
/**
* Fügt Werte zur Eigenschaft "_class_" hinzu.
*
* @param _class_
* Werte, die zur Eigenschaft "_class_" hinzugefügt werden.
*/
public ReservedWordsMultiChoice.Builder<_B> addClazz(final Iterable extends Class> _class_) {
if (_class_!= null) {
if (this.importOrClazz == null) {
this.importOrClazz = new ArrayList<>();
}
for (Class _item: _class_) {
this.importOrClazz.add(new Class.Builder<>(this, _item, false));
}
}
return this;
}
/**
* Fügt Werte zur Eigenschaft "_class_" hinzu.
*
* @param _class_
* Werte, die zur Eigenschaft "_class_" hinzugefügt werden.
*/
public ReservedWordsMultiChoice.Builder<_B> addClazz(Class... _class_) {
return addClazz(Arrays.asList(_class_));
}
/**
* Erzeugt einen neuen "Builder" zum Zusammenbauen eines zusätzlichen Wertes für
* die Eigenschaft "_class".
* Mit {@link com.kscs.jaxb2.contract.test.Class.Builder#end()} geht es zurück zum
* aktuellen Builder.
*
* @return
* Ein neuer "Builder" zum Zusammenbauen eines zusätzlichen Wertes für die
* Eigenschaft "_class".
* Mit {@link com.kscs.jaxb2.contract.test.Class.Builder#end()} geht es zurück zum
* aktuellen Builder.
*/
public Class.Builder extends ReservedWordsMultiChoice.Builder<_B>> addClazz() {
if (this.importOrClazz == null) {
this.importOrClazz = new ArrayList<>();
}
final Class.Builder> _class_Builder = new Class.Builder<>(this, null, false);
this.importOrClazz.add(_class_Builder);
return _class_Builder;
}
@Override
public ReservedWordsMultiChoice build() {
if (_storedValue == null) {
return this.init(new ReservedWordsMultiChoice());
} else {
return ((ReservedWordsMultiChoice) _storedValue);
}
}
public ReservedWordsMultiChoice.Builder<_B> copyOf(final ReservedWordsMultiChoice _other) {
_other.copyTo(this);
return this;
}
public ReservedWordsMultiChoice.Builder<_B> copyOf(final ReservedWordsMultiChoice.Builder _other) {
return copyOf(_other.build());
}
}
public class Modifier {
public List getImportOrClazz() {
if (ReservedWordsMultiChoice.this.importOrClazz == null) {
ReservedWordsMultiChoice.this.importOrClazz = new ArrayList<>();
}
return ReservedWordsMultiChoice.this.importOrClazz;
}
}
public static class PropInfo {
public static final transient CollectionPropertyInfo importOrClazz = new CollectionPropertyInfo("importOrClazz", ReservedWordsMultiChoice.class, Object.class, true, null, new QName("", ""), new QName("", ""), false) {
@Override
public List get(final ReservedWordsMultiChoice _instance_) {
return ((_instance_ == null)?null:_instance_.importOrClazz);
}
@Override
public void set(final ReservedWordsMultiChoice _instance_, final List _value_) {
if (_instance_!= null) {
_instance_.importOrClazz = _value_;
}
}
}
;
}
public static class Select
extends ReservedWordsMultiChoice.Selector
{
Select() {
super(null, null, null);
}
public static ReservedWordsMultiChoice.Select _root() {
return new ReservedWordsMultiChoice.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> importOrClazz = 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.importOrClazz!= null) {
products.put("importOrClazz", this.importOrClazz.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> importOrClazz() {
return ((this.importOrClazz == null)?this.importOrClazz = new com.kscs.util.jaxb.Selector<>(this._root, this, "importOrClazz"):this.importOrClazz);
}
}
}