All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kscs.jaxb2.contract.test.ReservedWordsSingleChoice 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.HashMap;
import java.util.Map;
import javax.xml.namespace.QName;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import com.kscs.util.jaxb.PropertyVisitor;
import com.kscs.util.jaxb.SingleProperty;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
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 = { "_import", "clazz" }) @XmlRootElement(name = "reserved-words-single-choice") public class ReservedWordsSingleChoice implements Cloneable { @XmlElement(name = "import") protected Import _import; @XmlElement(name = "class") protected Class clazz; protected transient ReservedWordsSingleChoice.Modifier __cachedModifier__; /** * Ruft den Wert der import-Eigenschaft ab. * * @return * possible object is * {@link Import } * */ public Import getImport() { return _import; } /** * Legt den Wert der import-Eigenschaft fest. * * @param value * allowed object is * {@link Import } * */ protected void setImport(Import value) { this._import = value; } /** * Ruft den Wert der clazz-Eigenschaft ab. * * @return * possible object is * {@link Class } * */ public Class getClazz() { return clazz; } /** * Legt den Wert der clazz-Eigenschaft fest. * * @param value * allowed object is * {@link Class } * */ protected void setClazz(Class value) { this.clazz = value; } @Override public ReservedWordsSingleChoice clone() { final ReservedWordsSingleChoice _newObject; try { _newObject = ((ReservedWordsSingleChoice) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject._import = ((this._import == null)?null:this._import.clone()); _newObject.clazz = ((this.clazz == null)?null:this.clazz.clone()); 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 ReservedWordsSingleChoice.Builder<_B> _other) { _other._import = ((this._import == null)?null:this._import.newCopyBuilder(_other)); _other.clazz = ((this.clazz == null)?null:this.clazz.newCopyBuilder(_other)); } public<_B >ReservedWordsSingleChoice.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new ReservedWordsSingleChoice.Builder<_B>(_parentBuilder, this, true); } public ReservedWordsSingleChoice.Builder newCopyBuilder() { return newCopyBuilder(null); } public static ReservedWordsSingleChoice.Builder builder() { return new ReservedWordsSingleChoice.Builder<>(null, null, false); } public static<_B >ReservedWordsSingleChoice.Builder<_B> copyOf(final ReservedWordsSingleChoice _other) { final ReservedWordsSingleChoice.Builder<_B> _newBuilder = new ReservedWordsSingleChoice.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 ReservedWordsSingleChoice.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree _importPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("_import")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(_importPropertyTree!= null):((_importPropertyTree == null)||(!_importPropertyTree.isLeaf())))) { _other._import = ((this._import == null)?null:this._import.newCopyBuilder(_other, _importPropertyTree, _propertyTreeUse)); } final PropertyTree clazzPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("clazz")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(clazzPropertyTree!= null):((clazzPropertyTree == null)||(!clazzPropertyTree.isLeaf())))) { _other.clazz = ((this.clazz == null)?null:this.clazz.newCopyBuilder(_other, clazzPropertyTree, _propertyTreeUse)); } } public<_B >ReservedWordsSingleChoice.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new ReservedWordsSingleChoice.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public ReservedWordsSingleChoice.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >ReservedWordsSingleChoice.Builder<_B> copyOf(final ReservedWordsSingleChoice _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final ReservedWordsSingleChoice.Builder<_B> _newBuilder = new ReservedWordsSingleChoice.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static ReservedWordsSingleChoice.Builder copyExcept(final ReservedWordsSingleChoice _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static ReservedWordsSingleChoice.Builder copyOnly(final ReservedWordsSingleChoice _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public ReservedWordsSingleChoice.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new ReservedWordsSingleChoice.Modifier(); } return ((ReservedWordsSingleChoice.Modifier) this.__cachedModifier__); } public ReservedWordsSingleChoice visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); if (_visitor_.visit(new SingleProperty<>(ReservedWordsSingleChoice.PropInfo._import, this))&&(this._import!= null)) { this._import.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(ReservedWordsSingleChoice.PropInfo.clazz, this))&&(this.clazz!= null)) { this.clazz.visit(_visitor_); } return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final ReservedWordsSingleChoice _storedValue; private Import.Builder> _import; private Class.Builder> clazz; public Builder(final _B _parentBuilder, final ReservedWordsSingleChoice _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this._import = ((_other._import == null)?null:_other._import.newCopyBuilder(this)); this.clazz = ((_other.clazz == null)?null:_other.clazz.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final ReservedWordsSingleChoice _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree _importPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("_import")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(_importPropertyTree!= null):((_importPropertyTree == null)||(!_importPropertyTree.isLeaf())))) { this._import = ((_other._import == null)?null:_other._import.newCopyBuilder(this, _importPropertyTree, _propertyTreeUse)); } final PropertyTree clazzPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("clazz")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(clazzPropertyTree!= null):((clazzPropertyTree == null)||(!clazzPropertyTree.isLeaf())))) { this.clazz = ((_other.clazz == null)?null:_other.clazz.newCopyBuilder(this, clazzPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends ReservedWordsSingleChoice >_P init(final _P _product) { _product._import = ((this._import == null)?null:this._import.build()); _product.clazz = ((this.clazz == null)?null:this.clazz.build()); return _product; } /** * Setzt den neuen Wert der Eigenschaft "_import" (Vorher zugewiesener Wert wird * ersetzt) * * @param _import * Neuer Wert der Eigenschaft "_import". */ public ReservedWordsSingleChoice.Builder<_B> withImport(final Import _import) { this._import = ((_import == null)?null:new Import.Builder<>(this, _import, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der 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 des Wertes der Eigenschaft "_import". * Mit {@link com.kscs.jaxb2.contract.test.Import.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Import.Builder> withImport() { if (this._import!= null) { return this._import; } return this._import = new Import.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "clazz" (Vorher zugewiesener Wert wird * ersetzt) * * @param clazz * Neuer Wert der Eigenschaft "clazz". */ public ReservedWordsSingleChoice.Builder<_B> withClazz(final Class clazz) { this.clazz = ((clazz == null)?null:new Class.Builder<>(this, clazz, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "clazz". * Mit {@link com.kscs.jaxb2.contract.test.Class.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "clazz". * Mit {@link com.kscs.jaxb2.contract.test.Class.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Class.Builder> withClazz() { if (this.clazz!= null) { return this.clazz; } return this.clazz = new Class.Builder<>(this, null, false); } @Override public ReservedWordsSingleChoice build() { if (_storedValue == null) { return this.init(new ReservedWordsSingleChoice()); } else { return ((ReservedWordsSingleChoice) _storedValue); } } public ReservedWordsSingleChoice.Builder<_B> copyOf(final ReservedWordsSingleChoice _other) { _other.copyTo(this); return this; } public ReservedWordsSingleChoice.Builder<_B> copyOf(final ReservedWordsSingleChoice.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setImport(final Import _import) { ReservedWordsSingleChoice.this.setImport(_import); } public void setClazz(final Class clazz) { ReservedWordsSingleChoice.this.setClazz(clazz); } } public static class PropInfo { public static final transient SinglePropertyInfo _import = new SinglePropertyInfo("_import", ReservedWordsSingleChoice.class, Import.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "import"), new QName("http://www.kscs.com/jaxb2/contract/test", "import"), false) { @Override public Import get(final ReservedWordsSingleChoice _instance_) { return ((_instance_ == null)?null:_instance_._import); } @Override public void set(final ReservedWordsSingleChoice _instance_, final Import _value_) { if (_instance_!= null) { _instance_._import = _value_; } } } ; public static final transient SinglePropertyInfo clazz = new SinglePropertyInfo("clazz", ReservedWordsSingleChoice.class, Class.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "class"), new QName("http://www.kscs.com/jaxb2/contract/test", "class"), false) { @Override public Class get(final ReservedWordsSingleChoice _instance_) { return ((_instance_ == null)?null:_instance_.clazz); } @Override public void set(final ReservedWordsSingleChoice _instance_, final Class _value_) { if (_instance_!= null) { _instance_.clazz = _value_; } } } ; } public static class Select extends ReservedWordsSingleChoice.Selector { Select() { super(null, null, null); } public static ReservedWordsSingleChoice.Select _root() { return new ReservedWordsSingleChoice.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private Import.Selector> _import = null; private Class.Selector> clazz = 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._import!= null) { products.put("_import", this._import.init()); } if (this.clazz!= null) { products.put("clazz", this.clazz.init()); } return products; } public Import.Selector> _import() { return ((this._import == null)?this._import = new Import.Selector<>(this._root, this, "_import"):this._import); } public Class.Selector> clazz() { return ((this.clazz == null)?this.clazz = new Class.Selector<>(this._root, this, "clazz"):this.clazz); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy