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

com.kscs.jaxb2.contract.test.JavadocAnnotations 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 com.kscs.util.jaxb.SingleProperty;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
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.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;


/**
 * javadoc-annotations anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly.
 * 
 * 

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 = { "simpleElement", "simpleElementWithAttributes", "useOfComplexType", "useOfComplexTypeWithSuperType", "choiceOfElementsOne", "choiceOfElementsTwo", "choiceOfElementsThree", "choiceOfElementsFour", "choiceOfElementsFive" }) @XmlRootElement(name = "javadoc-annotations") public class JavadocAnnotations implements Cloneable { @XmlElement(name = "simple-element", required = true) protected String simpleElement; @XmlElement(name = "simple-element-with-attributes", required = true) protected JavadocAnnotations.SimpleElementWithAttributes simpleElementWithAttributes; @XmlElement(name = "use-of-complexType", required = true) protected JavadocAnnotationsComplexType useOfComplexType; @XmlElement(name = "use-of-complexType-with-super-type", required = true) protected Car useOfComplexTypeWithSuperType; @XmlElement(name = "choice-of-elements-one", required = true) protected JavadocAnnotations.ChoiceOfElementsOne choiceOfElementsOne; @XmlElement(name = "choice-of-elements-two", required = true) protected JavadocAnnotations.ChoiceOfElementsTwo choiceOfElementsTwo; @XmlElement(name = "choice-of-elements-three", required = true) protected JavadocAnnotations.ChoiceOfElementsThree choiceOfElementsThree; @XmlElement(name = "choice-of-elements-four", required = true) protected JavadocAnnotations.ChoiceOfElementsFour choiceOfElementsFour; @XmlElement(name = "choice-of-elements-five", required = true) protected JavadocAnnotations.ChoiceOfElementsFive choiceOfElementsFive; protected transient JavadocAnnotations.Modifier __cachedModifier__; /** * Ruft den Wert der simpleElement-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getSimpleElement() { return simpleElement; } /** * Legt den Wert der simpleElement-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ protected void setSimpleElement(String value) { this.simpleElement = value; } /** * Ruft den Wert der simpleElementWithAttributes-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotations.SimpleElementWithAttributes } * */ public JavadocAnnotations.SimpleElementWithAttributes getSimpleElementWithAttributes() { return simpleElementWithAttributes; } /** * Legt den Wert der simpleElementWithAttributes-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotations.SimpleElementWithAttributes } * */ protected void setSimpleElementWithAttributes(JavadocAnnotations.SimpleElementWithAttributes value) { this.simpleElementWithAttributes = value; } /** * Ruft den Wert der useOfComplexType-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotationsComplexType } * */ public JavadocAnnotationsComplexType getUseOfComplexType() { return useOfComplexType; } /** * Legt den Wert der useOfComplexType-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotationsComplexType } * */ protected void setUseOfComplexType(JavadocAnnotationsComplexType value) { this.useOfComplexType = value; } /** * Ruft den Wert der useOfComplexTypeWithSuperType-Eigenschaft ab. * * @return * possible object is * {@link Car } * */ public Car getUseOfComplexTypeWithSuperType() { return useOfComplexTypeWithSuperType; } /** * Legt den Wert der useOfComplexTypeWithSuperType-Eigenschaft fest. * * @param value * allowed object is * {@link Car } * */ protected void setUseOfComplexTypeWithSuperType(Car value) { this.useOfComplexTypeWithSuperType = value; } /** * Ruft den Wert der choiceOfElementsOne-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotations.ChoiceOfElementsOne } * */ public JavadocAnnotations.ChoiceOfElementsOne getChoiceOfElementsOne() { return choiceOfElementsOne; } /** * Legt den Wert der choiceOfElementsOne-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotations.ChoiceOfElementsOne } * */ protected void setChoiceOfElementsOne(JavadocAnnotations.ChoiceOfElementsOne value) { this.choiceOfElementsOne = value; } /** * Ruft den Wert der choiceOfElementsTwo-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotations.ChoiceOfElementsTwo } * */ public JavadocAnnotations.ChoiceOfElementsTwo getChoiceOfElementsTwo() { return choiceOfElementsTwo; } /** * Legt den Wert der choiceOfElementsTwo-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotations.ChoiceOfElementsTwo } * */ protected void setChoiceOfElementsTwo(JavadocAnnotations.ChoiceOfElementsTwo value) { this.choiceOfElementsTwo = value; } /** * Ruft den Wert der choiceOfElementsThree-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotations.ChoiceOfElementsThree } * */ public JavadocAnnotations.ChoiceOfElementsThree getChoiceOfElementsThree() { return choiceOfElementsThree; } /** * Legt den Wert der choiceOfElementsThree-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotations.ChoiceOfElementsThree } * */ protected void setChoiceOfElementsThree(JavadocAnnotations.ChoiceOfElementsThree value) { this.choiceOfElementsThree = value; } /** * Ruft den Wert der choiceOfElementsFour-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotations.ChoiceOfElementsFour } * */ public JavadocAnnotations.ChoiceOfElementsFour getChoiceOfElementsFour() { return choiceOfElementsFour; } /** * Legt den Wert der choiceOfElementsFour-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotations.ChoiceOfElementsFour } * */ protected void setChoiceOfElementsFour(JavadocAnnotations.ChoiceOfElementsFour value) { this.choiceOfElementsFour = value; } /** * Ruft den Wert der choiceOfElementsFive-Eigenschaft ab. * * @return * possible object is * {@link JavadocAnnotations.ChoiceOfElementsFive } * */ public JavadocAnnotations.ChoiceOfElementsFive getChoiceOfElementsFive() { return choiceOfElementsFive; } /** * Legt den Wert der choiceOfElementsFive-Eigenschaft fest. * * @param value * allowed object is * {@link JavadocAnnotations.ChoiceOfElementsFive } * */ protected void setChoiceOfElementsFive(JavadocAnnotations.ChoiceOfElementsFive value) { this.choiceOfElementsFive = value; } @Override public JavadocAnnotations clone() { final JavadocAnnotations _newObject; try { _newObject = ((JavadocAnnotations) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.simpleElementWithAttributes = ((this.simpleElementWithAttributes == null)?null:this.simpleElementWithAttributes.clone()); _newObject.useOfComplexType = ((this.useOfComplexType == null)?null:this.useOfComplexType.clone()); _newObject.useOfComplexTypeWithSuperType = ((this.useOfComplexTypeWithSuperType == null)?null:this.useOfComplexTypeWithSuperType.clone()); _newObject.choiceOfElementsOne = ((this.choiceOfElementsOne == null)?null:this.choiceOfElementsOne.clone()); _newObject.choiceOfElementsTwo = ((this.choiceOfElementsTwo == null)?null:this.choiceOfElementsTwo.clone()); _newObject.choiceOfElementsThree = ((this.choiceOfElementsThree == null)?null:this.choiceOfElementsThree.clone()); _newObject.choiceOfElementsFour = ((this.choiceOfElementsFour == null)?null:this.choiceOfElementsFour.clone()); _newObject.choiceOfElementsFive = ((this.choiceOfElementsFive == null)?null:this.choiceOfElementsFive.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 JavadocAnnotations.Builder<_B> _other) { _other.simpleElement = this.simpleElement; _other.simpleElementWithAttributes = ((this.simpleElementWithAttributes == null)?null:this.simpleElementWithAttributes.newCopyBuilder(_other)); _other.useOfComplexType = ((this.useOfComplexType == null)?null:this.useOfComplexType.newCopyBuilder(_other)); _other.useOfComplexTypeWithSuperType = ((this.useOfComplexTypeWithSuperType == null)?null:this.useOfComplexTypeWithSuperType.newCopyBuilder(_other)); _other.choiceOfElementsOne = ((this.choiceOfElementsOne == null)?null:this.choiceOfElementsOne.newCopyBuilder(_other)); _other.choiceOfElementsTwo = ((this.choiceOfElementsTwo == null)?null:this.choiceOfElementsTwo.newCopyBuilder(_other)); _other.choiceOfElementsThree = ((this.choiceOfElementsThree == null)?null:this.choiceOfElementsThree.newCopyBuilder(_other)); _other.choiceOfElementsFour = ((this.choiceOfElementsFour == null)?null:this.choiceOfElementsFour.newCopyBuilder(_other)); _other.choiceOfElementsFive = ((this.choiceOfElementsFive == null)?null:this.choiceOfElementsFive.newCopyBuilder(_other)); } public<_B >JavadocAnnotations.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.Builder builder() { return new JavadocAnnotations.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.Builder<_B> copyOf(final JavadocAnnotations _other) { final JavadocAnnotations.Builder<_B> _newBuilder = new JavadocAnnotations.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 JavadocAnnotations.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree simpleElementPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("simpleElement")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(simpleElementPropertyTree!= null):((simpleElementPropertyTree == null)||(!simpleElementPropertyTree.isLeaf())))) { _other.simpleElement = this.simpleElement; } final PropertyTree simpleElementWithAttributesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("simpleElementWithAttributes")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(simpleElementWithAttributesPropertyTree!= null):((simpleElementWithAttributesPropertyTree == null)||(!simpleElementWithAttributesPropertyTree.isLeaf())))) { _other.simpleElementWithAttributes = ((this.simpleElementWithAttributes == null)?null:this.simpleElementWithAttributes.newCopyBuilder(_other, simpleElementWithAttributesPropertyTree, _propertyTreeUse)); } final PropertyTree useOfComplexTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("useOfComplexType")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(useOfComplexTypePropertyTree!= null):((useOfComplexTypePropertyTree == null)||(!useOfComplexTypePropertyTree.isLeaf())))) { _other.useOfComplexType = ((this.useOfComplexType == null)?null:this.useOfComplexType.newCopyBuilder(_other, useOfComplexTypePropertyTree, _propertyTreeUse)); } final PropertyTree useOfComplexTypeWithSuperTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("useOfComplexTypeWithSuperType")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(useOfComplexTypeWithSuperTypePropertyTree!= null):((useOfComplexTypeWithSuperTypePropertyTree == null)||(!useOfComplexTypeWithSuperTypePropertyTree.isLeaf())))) { _other.useOfComplexTypeWithSuperType = ((this.useOfComplexTypeWithSuperType == null)?null:this.useOfComplexTypeWithSuperType.newCopyBuilder(_other, useOfComplexTypeWithSuperTypePropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsOnePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsOne")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsOnePropertyTree!= null):((choiceOfElementsOnePropertyTree == null)||(!choiceOfElementsOnePropertyTree.isLeaf())))) { _other.choiceOfElementsOne = ((this.choiceOfElementsOne == null)?null:this.choiceOfElementsOne.newCopyBuilder(_other, choiceOfElementsOnePropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsTwoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsTwo")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsTwoPropertyTree!= null):((choiceOfElementsTwoPropertyTree == null)||(!choiceOfElementsTwoPropertyTree.isLeaf())))) { _other.choiceOfElementsTwo = ((this.choiceOfElementsTwo == null)?null:this.choiceOfElementsTwo.newCopyBuilder(_other, choiceOfElementsTwoPropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsThreePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsThree")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsThreePropertyTree!= null):((choiceOfElementsThreePropertyTree == null)||(!choiceOfElementsThreePropertyTree.isLeaf())))) { _other.choiceOfElementsThree = ((this.choiceOfElementsThree == null)?null:this.choiceOfElementsThree.newCopyBuilder(_other, choiceOfElementsThreePropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsFourPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsFour")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsFourPropertyTree!= null):((choiceOfElementsFourPropertyTree == null)||(!choiceOfElementsFourPropertyTree.isLeaf())))) { _other.choiceOfElementsFour = ((this.choiceOfElementsFour == null)?null:this.choiceOfElementsFour.newCopyBuilder(_other, choiceOfElementsFourPropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsFivePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsFive")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsFivePropertyTree!= null):((choiceOfElementsFivePropertyTree == null)||(!choiceOfElementsFivePropertyTree.isLeaf())))) { _other.choiceOfElementsFive = ((this.choiceOfElementsFive == null)?null:this.choiceOfElementsFive.newCopyBuilder(_other, choiceOfElementsFivePropertyTree, _propertyTreeUse)); } } public<_B >JavadocAnnotations.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.Builder<_B> copyOf(final JavadocAnnotations _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.Builder<_B> _newBuilder = new JavadocAnnotations.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.Builder copyExcept(final JavadocAnnotations _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.Builder copyOnly(final JavadocAnnotations _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public JavadocAnnotations.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.Modifier(); } return ((JavadocAnnotations.Modifier) this.__cachedModifier__); } public JavadocAnnotations visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.simpleElement, this)); if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.simpleElementWithAttributes, this))&&(this.simpleElementWithAttributes!= null)) { this.simpleElementWithAttributes.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.useOfComplexType, this))&&(this.useOfComplexType!= null)) { this.useOfComplexType.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.useOfComplexTypeWithSuperType, this))&&(this.useOfComplexTypeWithSuperType!= null)) { this.useOfComplexTypeWithSuperType.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.choiceOfElementsOne, this))&&(this.choiceOfElementsOne!= null)) { this.choiceOfElementsOne.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.choiceOfElementsTwo, this))&&(this.choiceOfElementsTwo!= null)) { this.choiceOfElementsTwo.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.choiceOfElementsThree, this))&&(this.choiceOfElementsThree!= null)) { this.choiceOfElementsThree.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.choiceOfElementsFour, this))&&(this.choiceOfElementsFour!= null)) { this.choiceOfElementsFour.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.PropInfo.choiceOfElementsFive, this))&&(this.choiceOfElementsFive!= null)) { this.choiceOfElementsFive.visit(_visitor_); } return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations _storedValue; private String simpleElement; private JavadocAnnotations.SimpleElementWithAttributes.Builder> simpleElementWithAttributes; private JavadocAnnotationsComplexType.Builder> useOfComplexType; private Car.Builder> useOfComplexTypeWithSuperType; private JavadocAnnotations.ChoiceOfElementsOne.Builder> choiceOfElementsOne; private JavadocAnnotations.ChoiceOfElementsTwo.Builder> choiceOfElementsTwo; private JavadocAnnotations.ChoiceOfElementsThree.Builder> choiceOfElementsThree; private JavadocAnnotations.ChoiceOfElementsFour.Builder> choiceOfElementsFour; private JavadocAnnotations.ChoiceOfElementsFive.Builder> choiceOfElementsFive; public Builder(final _B _parentBuilder, final JavadocAnnotations _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.simpleElement = _other.simpleElement; this.simpleElementWithAttributes = ((_other.simpleElementWithAttributes == null)?null:_other.simpleElementWithAttributes.newCopyBuilder(this)); this.useOfComplexType = ((_other.useOfComplexType == null)?null:_other.useOfComplexType.newCopyBuilder(this)); this.useOfComplexTypeWithSuperType = ((_other.useOfComplexTypeWithSuperType == null)?null:_other.useOfComplexTypeWithSuperType.newCopyBuilder(this)); this.choiceOfElementsOne = ((_other.choiceOfElementsOne == null)?null:_other.choiceOfElementsOne.newCopyBuilder(this)); this.choiceOfElementsTwo = ((_other.choiceOfElementsTwo == null)?null:_other.choiceOfElementsTwo.newCopyBuilder(this)); this.choiceOfElementsThree = ((_other.choiceOfElementsThree == null)?null:_other.choiceOfElementsThree.newCopyBuilder(this)); this.choiceOfElementsFour = ((_other.choiceOfElementsFour == null)?null:_other.choiceOfElementsFour.newCopyBuilder(this)); this.choiceOfElementsFive = ((_other.choiceOfElementsFive == null)?null:_other.choiceOfElementsFive.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree simpleElementPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("simpleElement")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(simpleElementPropertyTree!= null):((simpleElementPropertyTree == null)||(!simpleElementPropertyTree.isLeaf())))) { this.simpleElement = _other.simpleElement; } final PropertyTree simpleElementWithAttributesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("simpleElementWithAttributes")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(simpleElementWithAttributesPropertyTree!= null):((simpleElementWithAttributesPropertyTree == null)||(!simpleElementWithAttributesPropertyTree.isLeaf())))) { this.simpleElementWithAttributes = ((_other.simpleElementWithAttributes == null)?null:_other.simpleElementWithAttributes.newCopyBuilder(this, simpleElementWithAttributesPropertyTree, _propertyTreeUse)); } final PropertyTree useOfComplexTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("useOfComplexType")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(useOfComplexTypePropertyTree!= null):((useOfComplexTypePropertyTree == null)||(!useOfComplexTypePropertyTree.isLeaf())))) { this.useOfComplexType = ((_other.useOfComplexType == null)?null:_other.useOfComplexType.newCopyBuilder(this, useOfComplexTypePropertyTree, _propertyTreeUse)); } final PropertyTree useOfComplexTypeWithSuperTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("useOfComplexTypeWithSuperType")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(useOfComplexTypeWithSuperTypePropertyTree!= null):((useOfComplexTypeWithSuperTypePropertyTree == null)||(!useOfComplexTypeWithSuperTypePropertyTree.isLeaf())))) { this.useOfComplexTypeWithSuperType = ((_other.useOfComplexTypeWithSuperType == null)?null:_other.useOfComplexTypeWithSuperType.newCopyBuilder(this, useOfComplexTypeWithSuperTypePropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsOnePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsOne")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsOnePropertyTree!= null):((choiceOfElementsOnePropertyTree == null)||(!choiceOfElementsOnePropertyTree.isLeaf())))) { this.choiceOfElementsOne = ((_other.choiceOfElementsOne == null)?null:_other.choiceOfElementsOne.newCopyBuilder(this, choiceOfElementsOnePropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsTwoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsTwo")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsTwoPropertyTree!= null):((choiceOfElementsTwoPropertyTree == null)||(!choiceOfElementsTwoPropertyTree.isLeaf())))) { this.choiceOfElementsTwo = ((_other.choiceOfElementsTwo == null)?null:_other.choiceOfElementsTwo.newCopyBuilder(this, choiceOfElementsTwoPropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsThreePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsThree")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsThreePropertyTree!= null):((choiceOfElementsThreePropertyTree == null)||(!choiceOfElementsThreePropertyTree.isLeaf())))) { this.choiceOfElementsThree = ((_other.choiceOfElementsThree == null)?null:_other.choiceOfElementsThree.newCopyBuilder(this, choiceOfElementsThreePropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsFourPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsFour")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsFourPropertyTree!= null):((choiceOfElementsFourPropertyTree == null)||(!choiceOfElementsFourPropertyTree.isLeaf())))) { this.choiceOfElementsFour = ((_other.choiceOfElementsFour == null)?null:_other.choiceOfElementsFour.newCopyBuilder(this, choiceOfElementsFourPropertyTree, _propertyTreeUse)); } final PropertyTree choiceOfElementsFivePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOfElementsFive")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOfElementsFivePropertyTree!= null):((choiceOfElementsFivePropertyTree == null)||(!choiceOfElementsFivePropertyTree.isLeaf())))) { this.choiceOfElementsFive = ((_other.choiceOfElementsFive == null)?null:_other.choiceOfElementsFive.newCopyBuilder(this, choiceOfElementsFivePropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations >_P init(final _P _product) { _product.simpleElement = this.simpleElement; _product.simpleElementWithAttributes = ((this.simpleElementWithAttributes == null)?null:this.simpleElementWithAttributes.build()); _product.useOfComplexType = ((this.useOfComplexType == null)?null:this.useOfComplexType.build()); _product.useOfComplexTypeWithSuperType = ((this.useOfComplexTypeWithSuperType == null)?null:this.useOfComplexTypeWithSuperType.build()); _product.choiceOfElementsOne = ((this.choiceOfElementsOne == null)?null:this.choiceOfElementsOne.build()); _product.choiceOfElementsTwo = ((this.choiceOfElementsTwo == null)?null:this.choiceOfElementsTwo.build()); _product.choiceOfElementsThree = ((this.choiceOfElementsThree == null)?null:this.choiceOfElementsThree.build()); _product.choiceOfElementsFour = ((this.choiceOfElementsFour == null)?null:this.choiceOfElementsFour.build()); _product.choiceOfElementsFive = ((this.choiceOfElementsFive == null)?null:this.choiceOfElementsFive.build()); return _product; } /** * Setzt den neuen Wert der Eigenschaft "simpleElement" (Vorher zugewiesener Wert * wird ersetzt) * * @param simpleElement * Neuer Wert der Eigenschaft "simpleElement". */ public JavadocAnnotations.Builder<_B> withSimpleElement(final String simpleElement) { this.simpleElement = simpleElement; return this; } /** * Setzt den neuen Wert der Eigenschaft "simpleElementWithAttributes" (Vorher * zugewiesener Wert wird ersetzt) * * @param simpleElementWithAttributes * Neuer Wert der Eigenschaft "simpleElementWithAttributes". */ public JavadocAnnotations.Builder<_B> withSimpleElementWithAttributes(final JavadocAnnotations.SimpleElementWithAttributes simpleElementWithAttributes) { this.simpleElementWithAttributes = ((simpleElementWithAttributes == null)?null:new JavadocAnnotations.SimpleElementWithAttributes.Builder<>(this, simpleElementWithAttributes, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "simpleElementWithAttributes". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.SimpleElementWithAttributes.Builder#end()} * geht es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "simpleElementWithAttributes". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.SimpleElementWithAttributes.Builder#end()} * geht es zurück zum aktuellen Builder. */ public JavadocAnnotations.SimpleElementWithAttributes.Builder> withSimpleElementWithAttributes() { if (this.simpleElementWithAttributes!= null) { return this.simpleElementWithAttributes; } return this.simpleElementWithAttributes = new JavadocAnnotations.SimpleElementWithAttributes.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "useOfComplexType" (Vorher zugewiesener * Wert wird ersetzt) * * @param useOfComplexType * Neuer Wert der Eigenschaft "useOfComplexType". */ public JavadocAnnotations.Builder<_B> withUseOfComplexType(final JavadocAnnotationsComplexType useOfComplexType) { this.useOfComplexType = ((useOfComplexType == null)?null:new JavadocAnnotationsComplexType.Builder<>(this, useOfComplexType, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "useOfComplexType". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotationsComplexType.Builder#end()} geht * es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "useOfComplexType". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotationsComplexType.Builder#end()} geht * es zurück zum aktuellen Builder. */ public JavadocAnnotationsComplexType.Builder> withUseOfComplexType() { if (this.useOfComplexType!= null) { return this.useOfComplexType; } return this.useOfComplexType = new JavadocAnnotationsComplexType.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "useOfComplexTypeWithSuperType" (Vorher * zugewiesener Wert wird ersetzt) * * @param useOfComplexTypeWithSuperType * Neuer Wert der Eigenschaft "useOfComplexTypeWithSuperType". */ public JavadocAnnotations.Builder<_B> withUseOfComplexTypeWithSuperType(final Car useOfComplexTypeWithSuperType) { this.useOfComplexTypeWithSuperType = ((useOfComplexTypeWithSuperType == null)?null:new Car.Builder<>(this, useOfComplexTypeWithSuperType, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "useOfComplexTypeWithSuperType". * Mit {@link com.kscs.jaxb2.contract.test.Car.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "useOfComplexTypeWithSuperType". * Mit {@link com.kscs.jaxb2.contract.test.Car.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Car.Builder> withUseOfComplexTypeWithSuperType() { if (this.useOfComplexTypeWithSuperType!= null) { return this.useOfComplexTypeWithSuperType; } return this.useOfComplexTypeWithSuperType = new Car.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "choiceOfElementsOne" (Vorher zugewiesener * Wert wird ersetzt) * * @param choiceOfElementsOne * Neuer Wert der Eigenschaft "choiceOfElementsOne". */ public JavadocAnnotations.Builder<_B> withChoiceOfElementsOne(final JavadocAnnotations.ChoiceOfElementsOne choiceOfElementsOne) { this.choiceOfElementsOne = ((choiceOfElementsOne == null)?null:new JavadocAnnotations.ChoiceOfElementsOne.Builder<>(this, choiceOfElementsOne, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "choiceOfElementsOne". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsOne.Builder#end()} * geht es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "choiceOfElementsOne". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsOne.Builder#end()} * geht es zurück zum aktuellen Builder. */ public JavadocAnnotations.ChoiceOfElementsOne.Builder> withChoiceOfElementsOne() { if (this.choiceOfElementsOne!= null) { return this.choiceOfElementsOne; } return this.choiceOfElementsOne = new JavadocAnnotations.ChoiceOfElementsOne.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "choiceOfElementsTwo" (Vorher zugewiesener * Wert wird ersetzt) * * @param choiceOfElementsTwo * Neuer Wert der Eigenschaft "choiceOfElementsTwo". */ public JavadocAnnotations.Builder<_B> withChoiceOfElementsTwo(final JavadocAnnotations.ChoiceOfElementsTwo choiceOfElementsTwo) { this.choiceOfElementsTwo = ((choiceOfElementsTwo == null)?null:new JavadocAnnotations.ChoiceOfElementsTwo.Builder<>(this, choiceOfElementsTwo, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "choiceOfElementsTwo". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsTwo.Builder#end()} * geht es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "choiceOfElementsTwo". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsTwo.Builder#end()} * geht es zurück zum aktuellen Builder. */ public JavadocAnnotations.ChoiceOfElementsTwo.Builder> withChoiceOfElementsTwo() { if (this.choiceOfElementsTwo!= null) { return this.choiceOfElementsTwo; } return this.choiceOfElementsTwo = new JavadocAnnotations.ChoiceOfElementsTwo.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "choiceOfElementsThree" (Vorher * zugewiesener Wert wird ersetzt) * * @param choiceOfElementsThree * Neuer Wert der Eigenschaft "choiceOfElementsThree". */ public JavadocAnnotations.Builder<_B> withChoiceOfElementsThree(final JavadocAnnotations.ChoiceOfElementsThree choiceOfElementsThree) { this.choiceOfElementsThree = ((choiceOfElementsThree == null)?null:new JavadocAnnotations.ChoiceOfElementsThree.Builder<>(this, choiceOfElementsThree, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "choiceOfElementsThree". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsThree.Builder#end()} * geht es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "choiceOfElementsThree". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsThree.Builder#end()} * geht es zurück zum aktuellen Builder. */ public JavadocAnnotations.ChoiceOfElementsThree.Builder> withChoiceOfElementsThree() { if (this.choiceOfElementsThree!= null) { return this.choiceOfElementsThree; } return this.choiceOfElementsThree = new JavadocAnnotations.ChoiceOfElementsThree.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "choiceOfElementsFour" (Vorher zugewiesener * Wert wird ersetzt) * * @param choiceOfElementsFour * Neuer Wert der Eigenschaft "choiceOfElementsFour". */ public JavadocAnnotations.Builder<_B> withChoiceOfElementsFour(final JavadocAnnotations.ChoiceOfElementsFour choiceOfElementsFour) { this.choiceOfElementsFour = ((choiceOfElementsFour == null)?null:new JavadocAnnotations.ChoiceOfElementsFour.Builder<>(this, choiceOfElementsFour, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "choiceOfElementsFour". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsFour.Builder#end()} * geht es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "choiceOfElementsFour". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsFour.Builder#end()} * geht es zurück zum aktuellen Builder. */ public JavadocAnnotations.ChoiceOfElementsFour.Builder> withChoiceOfElementsFour() { if (this.choiceOfElementsFour!= null) { return this.choiceOfElementsFour; } return this.choiceOfElementsFour = new JavadocAnnotations.ChoiceOfElementsFour.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "choiceOfElementsFive" (Vorher zugewiesener * Wert wird ersetzt) * * @param choiceOfElementsFive * Neuer Wert der Eigenschaft "choiceOfElementsFive". */ public JavadocAnnotations.Builder<_B> withChoiceOfElementsFive(final JavadocAnnotations.ChoiceOfElementsFive choiceOfElementsFive) { this.choiceOfElementsFive = ((choiceOfElementsFive == null)?null:new JavadocAnnotations.ChoiceOfElementsFive.Builder<>(this, choiceOfElementsFive, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "choiceOfElementsFive". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsFive.Builder#end()} * geht es zurück zum aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft * "choiceOfElementsFive". * Mit {@link * com.kscs.jaxb2.contract.test.JavadocAnnotations.ChoiceOfElementsFive.Builder#end()} * geht es zurück zum aktuellen Builder. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder> withChoiceOfElementsFive() { if (this.choiceOfElementsFive!= null) { return this.choiceOfElementsFive; } return this.choiceOfElementsFive = new JavadocAnnotations.ChoiceOfElementsFive.Builder<>(this, null, false); } @Override public JavadocAnnotations build() { if (_storedValue == null) { return this.init(new JavadocAnnotations()); } else { return ((JavadocAnnotations) _storedValue); } } public JavadocAnnotations.Builder<_B> copyOf(final JavadocAnnotations _other) { _other.copyTo(this); return this; } public JavadocAnnotations.Builder<_B> copyOf(final JavadocAnnotations.Builder _other) { return copyOf(_other.build()); } } /** * choice-of-elements-five anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly. * *

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 = { "cityOrWorker" }) public static class ChoiceOfElementsFive implements Cloneable { @XmlElements({ @XmlElement(name = "city", type = City.class), @XmlElement(name = "worker", type = Worker.class) }) protected List cityOrWorker; protected transient List cityOrWorker_RO = null; protected transient JavadocAnnotations.ChoiceOfElementsFive.Modifier __cachedModifier__; @Override public JavadocAnnotations.ChoiceOfElementsFive clone() { final JavadocAnnotations.ChoiceOfElementsFive _newObject; try { _newObject = ((JavadocAnnotations.ChoiceOfElementsFive) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.cityOrWorker = ((this.cityOrWorker == null)?null:new ArrayList<>(this.cityOrWorker)); _newObject.cityOrWorker_RO = ((cityOrWorker == null)?null:Collections.unmodifiableList(_newObject.cityOrWorker)); 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 JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> _other) { if (this.cityOrWorker == null) { _other.cityOrWorker = null; } else { _other.cityOrWorker = new ArrayList<>(); for (Object _item: this.cityOrWorker) { _other.cityOrWorker.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } public<_B >JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.ChoiceOfElementsFive.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.ChoiceOfElementsFive.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.ChoiceOfElementsFive.Builder builder() { return new JavadocAnnotations.ChoiceOfElementsFive.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFive _other) { final JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsFive.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 JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree cityOrWorkerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("cityOrWorker")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(cityOrWorkerPropertyTree!= null):((cityOrWorkerPropertyTree == null)||(!cityOrWorkerPropertyTree.isLeaf())))) { if (this.cityOrWorker == null) { _other.cityOrWorker = null; } else { _other.cityOrWorker = new ArrayList<>(); for (Object _item: this.cityOrWorker) { _other.cityOrWorker.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } public<_B >JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.ChoiceOfElementsFive.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.ChoiceOfElementsFive.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFive _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsFive.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.ChoiceOfElementsFive.Builder copyExcept(final JavadocAnnotations.ChoiceOfElementsFive _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.ChoiceOfElementsFive.Builder copyOnly(final JavadocAnnotations.ChoiceOfElementsFive _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public List getCityOrWorker() { if (this.cityOrWorker == null) { this.cityOrWorker = new ArrayList<>(); } if (this.cityOrWorker_RO == null) { this.cityOrWorker_RO = ((cityOrWorker == null)?null:Collections.unmodifiableList(this.cityOrWorker)); } return this.cityOrWorker_RO; } public JavadocAnnotations.ChoiceOfElementsFive.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.ChoiceOfElementsFive.Modifier(); } return ((JavadocAnnotations.ChoiceOfElementsFive.Modifier) this.__cachedModifier__); } public JavadocAnnotations.ChoiceOfElementsFive visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new CollectionProperty<>(JavadocAnnotations.ChoiceOfElementsFive.PropInfo.cityOrWorker, this)); return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations.ChoiceOfElementsFive _storedValue; private List cityOrWorker; public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsFive _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.cityOrWorker == null) { this.cityOrWorker = null; } else { this.cityOrWorker = new ArrayList<>(); for (Object _item: _other.cityOrWorker) { this.cityOrWorker.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsFive _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree cityOrWorkerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("cityOrWorker")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(cityOrWorkerPropertyTree!= null):((cityOrWorkerPropertyTree == null)||(!cityOrWorkerPropertyTree.isLeaf())))) { if (_other.cityOrWorker == null) { this.cityOrWorker = null; } else { this.cityOrWorker = new ArrayList<>(); for (Object _item: _other.cityOrWorker) { this.cityOrWorker.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations.ChoiceOfElementsFive >_P init(final _P _product) { if (this.cityOrWorker!= null) { final List cityOrWorker = new ArrayList<>(this.cityOrWorker.size()); for (Buildable _item: this.cityOrWorker) { cityOrWorker.add(((Object) _item.build())); } _product.cityOrWorker = cityOrWorker; } _product.cityOrWorker_RO = ((cityOrWorker == null)?null:Collections.unmodifiableList(_product.cityOrWorker)); return _product; } /** * Fügt Werte zur Eigenschaft "cityOrWorker" hinzu. * * @param cityOrWorker * Werte, die zur Eigenschaft "cityOrWorker" hinzugefügt werden. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> addCityOrWorker(final Iterable cityOrWorker) { if (cityOrWorker!= null) { if (this.cityOrWorker == null) { this.cityOrWorker = new ArrayList<>(); } for (Object _item: cityOrWorker) { this.cityOrWorker.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Setzt den neuen Wert der Eigenschaft "cityOrWorker" (Vorher zugewiesener Wert * wird ersetzt) * * @param cityOrWorker * Neuer Wert der Eigenschaft "cityOrWorker". */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> withCityOrWorker(final Iterable cityOrWorker) { if (this.cityOrWorker!= null) { this.cityOrWorker.clear(); } return addCityOrWorker(cityOrWorker); } /** * Fügt Werte zur Eigenschaft "cityOrWorker" hinzu. * * @param cityOrWorker * Werte, die zur Eigenschaft "cityOrWorker" hinzugefügt werden. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> addCityOrWorker(Object... cityOrWorker) { addCityOrWorker(Arrays.asList(cityOrWorker)); return this; } /** * Setzt den neuen Wert der Eigenschaft "cityOrWorker" (Vorher zugewiesener Wert * wird ersetzt) * * @param cityOrWorker * Neuer Wert der Eigenschaft "cityOrWorker". */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> withCityOrWorker(Object... cityOrWorker) { withCityOrWorker(Arrays.asList(cityOrWorker)); return this; } /** * Fügt Werte zur Eigenschaft "city_" hinzu. * * @param city_ * Werte, die zur Eigenschaft "city_" hinzugefügt werden. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> addCity(final Iterable city_) { if (city_!= null) { if (this.cityOrWorker == null) { this.cityOrWorker = new ArrayList<>(); } for (City _item: city_) { this.cityOrWorker.add(new City.Builder<>(this, _item, false)); } } return this; } /** * Fügt Werte zur Eigenschaft "city_" hinzu. * * @param city_ * Werte, die zur Eigenschaft "city_" hinzugefügt werden. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> addCity(City... city_) { return addCity(Arrays.asList(city_)); } /** * Erzeugt einen neuen "Builder" zum Zusammenbauen eines zusätzlichen Wertes für * die Eigenschaft "city". * Mit {@link com.kscs.jaxb2.contract.test.City.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen eines zusätzlichen Wertes für die * Eigenschaft "city". * Mit {@link com.kscs.jaxb2.contract.test.City.Builder#end()} geht es zurück zum * aktuellen Builder. */ public City.Builder> addCity() { if (this.cityOrWorker == null) { this.cityOrWorker = new ArrayList<>(); } final City.Builder> city_Builder = new City.Builder<>(this, null, false); this.cityOrWorker.add(city_Builder); return city_Builder; } /** * Fügt Werte zur Eigenschaft "worker_" hinzu. * * @param worker_ * Werte, die zur Eigenschaft "worker_" hinzugefügt werden. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> addWorker(final Iterable worker_) { if (worker_!= null) { if (this.cityOrWorker == null) { this.cityOrWorker = new ArrayList<>(); } for (Worker _item: worker_) { this.cityOrWorker.add(new Worker.Builder<>(this, _item, false)); } } return this; } /** * Fügt Werte zur Eigenschaft "worker_" hinzu. * * @param worker_ * Werte, die zur Eigenschaft "worker_" hinzugefügt werden. */ public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> addWorker(Worker... worker_) { return addWorker(Arrays.asList(worker_)); } /** * Erzeugt einen neuen "Builder" zum Zusammenbauen eines zusätzlichen Wertes für * die Eigenschaft "worker". * Mit {@link com.kscs.jaxb2.contract.test.Worker.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen eines zusätzlichen Wertes für die * Eigenschaft "worker". * Mit {@link com.kscs.jaxb2.contract.test.Worker.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Worker.Builder> addWorker() { if (this.cityOrWorker == null) { this.cityOrWorker = new ArrayList<>(); } final Worker.Builder> worker_Builder = new Worker.Builder<>(this, null, false); this.cityOrWorker.add(worker_Builder); return worker_Builder; } @Override public JavadocAnnotations.ChoiceOfElementsFive build() { if (_storedValue == null) { return this.init(new JavadocAnnotations.ChoiceOfElementsFive()); } else { return ((JavadocAnnotations.ChoiceOfElementsFive) _storedValue); } } public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFive _other) { _other.copyTo(this); return this; } public JavadocAnnotations.ChoiceOfElementsFive.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFive.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public List getCityOrWorker() { if (JavadocAnnotations.ChoiceOfElementsFive.this.cityOrWorker == null) { JavadocAnnotations.ChoiceOfElementsFive.this.cityOrWorker = new ArrayList<>(); } return JavadocAnnotations.ChoiceOfElementsFive.this.cityOrWorker; } } public static class PropInfo { public static final transient CollectionPropertyInfo cityOrWorker = new CollectionPropertyInfo("cityOrWorker", JavadocAnnotations.ChoiceOfElementsFive.class, Object.class, true, null, new QName("", ""), new QName("", ""), false) { @Override public List get(final JavadocAnnotations.ChoiceOfElementsFive _instance_) { return ((_instance_ == null)?null:_instance_.cityOrWorker); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsFive _instance_, final List _value_) { if (_instance_!= null) { _instance_.cityOrWorker = _value_; } } } ; } public static class Select extends JavadocAnnotations.ChoiceOfElementsFive.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.ChoiceOfElementsFive.Select _root() { return new JavadocAnnotations.ChoiceOfElementsFive.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> cityOrWorker = 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.cityOrWorker!= null) { products.put("cityOrWorker", this.cityOrWorker.init()); } return products; } public com.kscs.util.jaxb.Selector> cityOrWorker() { return ((this.cityOrWorker == null)?this.cityOrWorker = new com.kscs.util.jaxb.Selector<>(this._root, this, "cityOrWorker"):this.cityOrWorker); } } } /** * choice-of-elements-four anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly. * *

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 = { "city", "worker" }) public static class ChoiceOfElementsFour implements Cloneable { protected City city; protected Worker worker; protected transient JavadocAnnotations.ChoiceOfElementsFour.Modifier __cachedModifier__; /** * Ruft den Wert der city-Eigenschaft ab. * * @return * possible object is * {@link City } * */ public City getCity() { return city; } /** * Legt den Wert der city-Eigenschaft fest. * * @param value * allowed object is * {@link City } * */ protected void setCity(City value) { this.city = value; } /** * Ruft den Wert der worker-Eigenschaft ab. * * @return * possible object is * {@link Worker } * */ public Worker getWorker() { return worker; } /** * Legt den Wert der worker-Eigenschaft fest. * * @param value * allowed object is * {@link Worker } * */ protected void setWorker(Worker value) { this.worker = value; } @Override public JavadocAnnotations.ChoiceOfElementsFour clone() { final JavadocAnnotations.ChoiceOfElementsFour _newObject; try { _newObject = ((JavadocAnnotations.ChoiceOfElementsFour) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.city = ((this.city == null)?null:this.city.clone()); _newObject.worker = ((this.worker == null)?null:this.worker.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 JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> _other) { _other.city = ((this.city == null)?null:this.city.newCopyBuilder(_other)); _other.worker = ((this.worker == null)?null:this.worker.newCopyBuilder(_other)); } public<_B >JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.ChoiceOfElementsFour.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.ChoiceOfElementsFour.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.ChoiceOfElementsFour.Builder builder() { return new JavadocAnnotations.ChoiceOfElementsFour.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFour _other) { final JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsFour.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 JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree cityPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("city")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(cityPropertyTree!= null):((cityPropertyTree == null)||(!cityPropertyTree.isLeaf())))) { _other.city = ((this.city == null)?null:this.city.newCopyBuilder(_other, cityPropertyTree, _propertyTreeUse)); } final PropertyTree workerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("worker")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(workerPropertyTree!= null):((workerPropertyTree == null)||(!workerPropertyTree.isLeaf())))) { _other.worker = ((this.worker == null)?null:this.worker.newCopyBuilder(_other, workerPropertyTree, _propertyTreeUse)); } } public<_B >JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.ChoiceOfElementsFour.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.ChoiceOfElementsFour.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFour _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsFour.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.ChoiceOfElementsFour.Builder copyExcept(final JavadocAnnotations.ChoiceOfElementsFour _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.ChoiceOfElementsFour.Builder copyOnly(final JavadocAnnotations.ChoiceOfElementsFour _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public JavadocAnnotations.ChoiceOfElementsFour.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.ChoiceOfElementsFour.Modifier(); } return ((JavadocAnnotations.ChoiceOfElementsFour.Modifier) this.__cachedModifier__); } public JavadocAnnotations.ChoiceOfElementsFour visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsFour.PropInfo.city, this))&&(this.city!= null)) { this.city.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsFour.PropInfo.worker, this))&&(this.worker!= null)) { this.worker.visit(_visitor_); } return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations.ChoiceOfElementsFour _storedValue; private City.Builder> city; private Worker.Builder> worker; public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsFour _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.city = ((_other.city == null)?null:_other.city.newCopyBuilder(this)); this.worker = ((_other.worker == null)?null:_other.worker.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsFour _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree cityPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("city")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(cityPropertyTree!= null):((cityPropertyTree == null)||(!cityPropertyTree.isLeaf())))) { this.city = ((_other.city == null)?null:_other.city.newCopyBuilder(this, cityPropertyTree, _propertyTreeUse)); } final PropertyTree workerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("worker")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(workerPropertyTree!= null):((workerPropertyTree == null)||(!workerPropertyTree.isLeaf())))) { this.worker = ((_other.worker == null)?null:_other.worker.newCopyBuilder(this, workerPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations.ChoiceOfElementsFour >_P init(final _P _product) { _product.city = ((this.city == null)?null:this.city.build()); _product.worker = ((this.worker == null)?null:this.worker.build()); return _product; } /** * Setzt den neuen Wert der Eigenschaft "city" (Vorher zugewiesener Wert wird * ersetzt) * * @param city * Neuer Wert der Eigenschaft "city". */ public JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> withCity(final City city) { this.city = ((city == null)?null:new City.Builder<>(this, city, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "city". * Mit {@link com.kscs.jaxb2.contract.test.City.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "city". * Mit {@link com.kscs.jaxb2.contract.test.City.Builder#end()} geht es zurück zum * aktuellen Builder. */ public City.Builder> withCity() { if (this.city!= null) { return this.city; } return this.city = new City.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "worker" (Vorher zugewiesener Wert wird * ersetzt) * * @param worker * Neuer Wert der Eigenschaft "worker". */ public JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> withWorker(final Worker worker) { this.worker = ((worker == null)?null:new Worker.Builder<>(this, worker, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "worker". * Mit {@link com.kscs.jaxb2.contract.test.Worker.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "worker". * Mit {@link com.kscs.jaxb2.contract.test.Worker.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Worker.Builder> withWorker() { if (this.worker!= null) { return this.worker; } return this.worker = new Worker.Builder<>(this, null, false); } @Override public JavadocAnnotations.ChoiceOfElementsFour build() { if (_storedValue == null) { return this.init(new JavadocAnnotations.ChoiceOfElementsFour()); } else { return ((JavadocAnnotations.ChoiceOfElementsFour) _storedValue); } } public JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFour _other) { _other.copyTo(this); return this; } public JavadocAnnotations.ChoiceOfElementsFour.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsFour.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setCity(final City city) { JavadocAnnotations.ChoiceOfElementsFour.this.setCity(city); } public void setWorker(final Worker worker) { JavadocAnnotations.ChoiceOfElementsFour.this.setWorker(worker); } } public static class PropInfo { public static final transient SinglePropertyInfo city = new SinglePropertyInfo("city", JavadocAnnotations.ChoiceOfElementsFour.class, City.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "city"), new QName("http://www.kscs.com/jaxb2/contract/test", "city"), false) { @Override public City get(final JavadocAnnotations.ChoiceOfElementsFour _instance_) { return ((_instance_ == null)?null:_instance_.city); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsFour _instance_, final City _value_) { if (_instance_!= null) { _instance_.city = _value_; } } } ; public static final transient SinglePropertyInfo worker = new SinglePropertyInfo("worker", JavadocAnnotations.ChoiceOfElementsFour.class, Worker.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "worker"), new QName("http://www.kscs.com/jaxb2/contract/test", "worker"), false) { @Override public Worker get(final JavadocAnnotations.ChoiceOfElementsFour _instance_) { return ((_instance_ == null)?null:_instance_.worker); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsFour _instance_, final Worker _value_) { if (_instance_!= null) { _instance_.worker = _value_; } } } ; } public static class Select extends JavadocAnnotations.ChoiceOfElementsFour.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.ChoiceOfElementsFour.Select _root() { return new JavadocAnnotations.ChoiceOfElementsFour.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private City.Selector> city = null; private Worker.Selector> worker = 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.city!= null) { products.put("city", this.city.init()); } if (this.worker!= null) { products.put("worker", this.worker.init()); } return products; } public City.Selector> city() { return ((this.city == null)?this.city = new City.Selector<>(this._root, this, "city"):this.city); } public Worker.Selector> worker() { return ((this.worker == null)?this.worker = new Worker.Selector<>(this._root, this, "worker"):this.worker); } } } /** * choice-of-elements-one anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly. * *

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 = { "choiceOneItemOne", "choiceOneItemTwo" }) public static class ChoiceOfElementsOne implements Cloneable { @XmlElement(name = "choice-one-item-one") protected String choiceOneItemOne; @XmlElement(name = "choice-one-item-two") protected Integer choiceOneItemTwo; protected transient JavadocAnnotations.ChoiceOfElementsOne.Modifier __cachedModifier__; /** * Ruft den Wert der choiceOneItemOne-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getChoiceOneItemOne() { return choiceOneItemOne; } /** * Legt den Wert der choiceOneItemOne-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ protected void setChoiceOneItemOne(String value) { this.choiceOneItemOne = value; } /** * Ruft den Wert der choiceOneItemTwo-Eigenschaft ab. * * @return * possible object is * {@link Integer } * */ public Integer getChoiceOneItemTwo() { return choiceOneItemTwo; } /** * Legt den Wert der choiceOneItemTwo-Eigenschaft fest. * * @param value * allowed object is * {@link Integer } * */ protected void setChoiceOneItemTwo(Integer value) { this.choiceOneItemTwo = value; } @Override public JavadocAnnotations.ChoiceOfElementsOne clone() { final JavadocAnnotations.ChoiceOfElementsOne _newObject; try { _newObject = ((JavadocAnnotations.ChoiceOfElementsOne) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } 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 JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> _other) { _other.choiceOneItemOne = this.choiceOneItemOne; _other.choiceOneItemTwo = this.choiceOneItemTwo; } public<_B >JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.ChoiceOfElementsOne.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.ChoiceOfElementsOne.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.ChoiceOfElementsOne.Builder builder() { return new JavadocAnnotations.ChoiceOfElementsOne.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsOne _other) { final JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsOne.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 JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree choiceOneItemOnePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOneItemOne")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOneItemOnePropertyTree!= null):((choiceOneItemOnePropertyTree == null)||(!choiceOneItemOnePropertyTree.isLeaf())))) { _other.choiceOneItemOne = this.choiceOneItemOne; } final PropertyTree choiceOneItemTwoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOneItemTwo")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOneItemTwoPropertyTree!= null):((choiceOneItemTwoPropertyTree == null)||(!choiceOneItemTwoPropertyTree.isLeaf())))) { _other.choiceOneItemTwo = this.choiceOneItemTwo; } } public<_B >JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.ChoiceOfElementsOne.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.ChoiceOfElementsOne.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsOne _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsOne.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.ChoiceOfElementsOne.Builder copyExcept(final JavadocAnnotations.ChoiceOfElementsOne _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.ChoiceOfElementsOne.Builder copyOnly(final JavadocAnnotations.ChoiceOfElementsOne _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public JavadocAnnotations.ChoiceOfElementsOne.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.ChoiceOfElementsOne.Modifier(); } return ((JavadocAnnotations.ChoiceOfElementsOne.Modifier) this.__cachedModifier__); } public JavadocAnnotations.ChoiceOfElementsOne visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsOne.PropInfo.choiceOneItemOne, this)); _visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsOne.PropInfo.choiceOneItemTwo, this)); return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations.ChoiceOfElementsOne _storedValue; private String choiceOneItemOne; private Integer choiceOneItemTwo; public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsOne _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.choiceOneItemOne = _other.choiceOneItemOne; this.choiceOneItemTwo = _other.choiceOneItemTwo; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsOne _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree choiceOneItemOnePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOneItemOne")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOneItemOnePropertyTree!= null):((choiceOneItemOnePropertyTree == null)||(!choiceOneItemOnePropertyTree.isLeaf())))) { this.choiceOneItemOne = _other.choiceOneItemOne; } final PropertyTree choiceOneItemTwoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("choiceOneItemTwo")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(choiceOneItemTwoPropertyTree!= null):((choiceOneItemTwoPropertyTree == null)||(!choiceOneItemTwoPropertyTree.isLeaf())))) { this.choiceOneItemTwo = _other.choiceOneItemTwo; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations.ChoiceOfElementsOne >_P init(final _P _product) { _product.choiceOneItemOne = this.choiceOneItemOne; _product.choiceOneItemTwo = this.choiceOneItemTwo; return _product; } /** * Setzt den neuen Wert der Eigenschaft "choiceOneItemOne" (Vorher zugewiesener * Wert wird ersetzt) * * @param choiceOneItemOne * Neuer Wert der Eigenschaft "choiceOneItemOne". */ public JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> withChoiceOneItemOne(final String choiceOneItemOne) { this.choiceOneItemOne = choiceOneItemOne; return this; } /** * Setzt den neuen Wert der Eigenschaft "choiceOneItemTwo" (Vorher zugewiesener * Wert wird ersetzt) * * @param choiceOneItemTwo * Neuer Wert der Eigenschaft "choiceOneItemTwo". */ public JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> withChoiceOneItemTwo(final Integer choiceOneItemTwo) { this.choiceOneItemTwo = choiceOneItemTwo; return this; } @Override public JavadocAnnotations.ChoiceOfElementsOne build() { if (_storedValue == null) { return this.init(new JavadocAnnotations.ChoiceOfElementsOne()); } else { return ((JavadocAnnotations.ChoiceOfElementsOne) _storedValue); } } public JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsOne _other) { _other.copyTo(this); return this; } public JavadocAnnotations.ChoiceOfElementsOne.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsOne.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setChoiceOneItemOne(final String choiceOneItemOne) { JavadocAnnotations.ChoiceOfElementsOne.this.setChoiceOneItemOne(choiceOneItemOne); } public void setChoiceOneItemTwo(final Integer choiceOneItemTwo) { JavadocAnnotations.ChoiceOfElementsOne.this.setChoiceOneItemTwo(choiceOneItemTwo); } } public static class PropInfo { public static final transient SinglePropertyInfo choiceOneItemOne = new SinglePropertyInfo("choiceOneItemOne", JavadocAnnotations.ChoiceOfElementsOne.class, String.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-one-item-one"), new QName("http://www.w3.org/2001/XMLSchema", "string"), false) { @Override public String get(final JavadocAnnotations.ChoiceOfElementsOne _instance_) { return ((_instance_ == null)?null:_instance_.choiceOneItemOne); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsOne _instance_, final String _value_) { if (_instance_!= null) { _instance_.choiceOneItemOne = _value_; } } } ; public static final transient SinglePropertyInfo choiceOneItemTwo = new SinglePropertyInfo("choiceOneItemTwo", JavadocAnnotations.ChoiceOfElementsOne.class, Integer.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-one-item-two"), new QName("http://www.w3.org/2001/XMLSchema", "int"), false) { @Override public Integer get(final JavadocAnnotations.ChoiceOfElementsOne _instance_) { return ((_instance_ == null)?null:_instance_.choiceOneItemTwo); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsOne _instance_, final Integer _value_) { if (_instance_!= null) { _instance_.choiceOneItemTwo = _value_; } } } ; } public static class Select extends JavadocAnnotations.ChoiceOfElementsOne.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.ChoiceOfElementsOne.Select _root() { return new JavadocAnnotations.ChoiceOfElementsOne.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> choiceOneItemOne = null; private com.kscs.util.jaxb.Selector> choiceOneItemTwo = 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.choiceOneItemOne!= null) { products.put("choiceOneItemOne", this.choiceOneItemOne.init()); } if (this.choiceOneItemTwo!= null) { products.put("choiceOneItemTwo", this.choiceOneItemTwo.init()); } return products; } public com.kscs.util.jaxb.Selector> choiceOneItemOne() { return ((this.choiceOneItemOne == null)?this.choiceOneItemOne = new com.kscs.util.jaxb.Selector<>(this._root, this, "choiceOneItemOne"):this.choiceOneItemOne); } public com.kscs.util.jaxb.Selector> choiceOneItemTwo() { return ((this.choiceOneItemTwo == null)?this.choiceOneItemTwo = new com.kscs.util.jaxb.Selector<>(this._root, this, "choiceOneItemTwo"):this.choiceOneItemTwo); } } } /** * choice-of-elements-three anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly. * *

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 = { "city", "worker" }) public static class ChoiceOfElementsThree implements Cloneable { protected City city; protected Worker worker; protected transient JavadocAnnotations.ChoiceOfElementsThree.Modifier __cachedModifier__; /** * Ruft den Wert der city-Eigenschaft ab. * * @return * possible object is * {@link City } * */ public City getCity() { return city; } /** * Legt den Wert der city-Eigenschaft fest. * * @param value * allowed object is * {@link City } * */ protected void setCity(City value) { this.city = value; } /** * Ruft den Wert der worker-Eigenschaft ab. * * @return * possible object is * {@link Worker } * */ public Worker getWorker() { return worker; } /** * Legt den Wert der worker-Eigenschaft fest. * * @param value * allowed object is * {@link Worker } * */ protected void setWorker(Worker value) { this.worker = value; } @Override public JavadocAnnotations.ChoiceOfElementsThree clone() { final JavadocAnnotations.ChoiceOfElementsThree _newObject; try { _newObject = ((JavadocAnnotations.ChoiceOfElementsThree) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.city = ((this.city == null)?null:this.city.clone()); _newObject.worker = ((this.worker == null)?null:this.worker.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 JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> _other) { _other.city = ((this.city == null)?null:this.city.newCopyBuilder(_other)); _other.worker = ((this.worker == null)?null:this.worker.newCopyBuilder(_other)); } public<_B >JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.ChoiceOfElementsThree.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.ChoiceOfElementsThree.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.ChoiceOfElementsThree.Builder builder() { return new JavadocAnnotations.ChoiceOfElementsThree.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsThree _other) { final JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsThree.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 JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree cityPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("city")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(cityPropertyTree!= null):((cityPropertyTree == null)||(!cityPropertyTree.isLeaf())))) { _other.city = ((this.city == null)?null:this.city.newCopyBuilder(_other, cityPropertyTree, _propertyTreeUse)); } final PropertyTree workerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("worker")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(workerPropertyTree!= null):((workerPropertyTree == null)||(!workerPropertyTree.isLeaf())))) { _other.worker = ((this.worker == null)?null:this.worker.newCopyBuilder(_other, workerPropertyTree, _propertyTreeUse)); } } public<_B >JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.ChoiceOfElementsThree.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.ChoiceOfElementsThree.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsThree _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsThree.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.ChoiceOfElementsThree.Builder copyExcept(final JavadocAnnotations.ChoiceOfElementsThree _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.ChoiceOfElementsThree.Builder copyOnly(final JavadocAnnotations.ChoiceOfElementsThree _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public JavadocAnnotations.ChoiceOfElementsThree.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.ChoiceOfElementsThree.Modifier(); } return ((JavadocAnnotations.ChoiceOfElementsThree.Modifier) this.__cachedModifier__); } public JavadocAnnotations.ChoiceOfElementsThree visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsThree.PropInfo.city, this))&&(this.city!= null)) { this.city.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsThree.PropInfo.worker, this))&&(this.worker!= null)) { this.worker.visit(_visitor_); } return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations.ChoiceOfElementsThree _storedValue; private City.Builder> city; private Worker.Builder> worker; public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsThree _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.city = ((_other.city == null)?null:_other.city.newCopyBuilder(this)); this.worker = ((_other.worker == null)?null:_other.worker.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsThree _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree cityPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("city")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(cityPropertyTree!= null):((cityPropertyTree == null)||(!cityPropertyTree.isLeaf())))) { this.city = ((_other.city == null)?null:_other.city.newCopyBuilder(this, cityPropertyTree, _propertyTreeUse)); } final PropertyTree workerPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("worker")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(workerPropertyTree!= null):((workerPropertyTree == null)||(!workerPropertyTree.isLeaf())))) { this.worker = ((_other.worker == null)?null:_other.worker.newCopyBuilder(this, workerPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations.ChoiceOfElementsThree >_P init(final _P _product) { _product.city = ((this.city == null)?null:this.city.build()); _product.worker = ((this.worker == null)?null:this.worker.build()); return _product; } /** * Setzt den neuen Wert der Eigenschaft "city" (Vorher zugewiesener Wert wird * ersetzt) * * @param city * Neuer Wert der Eigenschaft "city". */ public JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> withCity(final City city) { this.city = ((city == null)?null:new City.Builder<>(this, city, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "city". * Mit {@link com.kscs.jaxb2.contract.test.City.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "city". * Mit {@link com.kscs.jaxb2.contract.test.City.Builder#end()} geht es zurück zum * aktuellen Builder. */ public City.Builder> withCity() { if (this.city!= null) { return this.city; } return this.city = new City.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "worker" (Vorher zugewiesener Wert wird * ersetzt) * * @param worker * Neuer Wert der Eigenschaft "worker". */ public JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> withWorker(final Worker worker) { this.worker = ((worker == null)?null:new Worker.Builder<>(this, worker, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "worker". * Mit {@link com.kscs.jaxb2.contract.test.Worker.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "worker". * Mit {@link com.kscs.jaxb2.contract.test.Worker.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Worker.Builder> withWorker() { if (this.worker!= null) { return this.worker; } return this.worker = new Worker.Builder<>(this, null, false); } @Override public JavadocAnnotations.ChoiceOfElementsThree build() { if (_storedValue == null) { return this.init(new JavadocAnnotations.ChoiceOfElementsThree()); } else { return ((JavadocAnnotations.ChoiceOfElementsThree) _storedValue); } } public JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsThree _other) { _other.copyTo(this); return this; } public JavadocAnnotations.ChoiceOfElementsThree.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsThree.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setCity(final City city) { JavadocAnnotations.ChoiceOfElementsThree.this.setCity(city); } public void setWorker(final Worker worker) { JavadocAnnotations.ChoiceOfElementsThree.this.setWorker(worker); } } public static class PropInfo { public static final transient SinglePropertyInfo city = new SinglePropertyInfo("city", JavadocAnnotations.ChoiceOfElementsThree.class, City.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "city"), new QName("http://www.kscs.com/jaxb2/contract/test", "city"), false) { @Override public City get(final JavadocAnnotations.ChoiceOfElementsThree _instance_) { return ((_instance_ == null)?null:_instance_.city); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsThree _instance_, final City _value_) { if (_instance_!= null) { _instance_.city = _value_; } } } ; public static final transient SinglePropertyInfo worker = new SinglePropertyInfo("worker", JavadocAnnotations.ChoiceOfElementsThree.class, Worker.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "worker"), new QName("http://www.kscs.com/jaxb2/contract/test", "worker"), false) { @Override public Worker get(final JavadocAnnotations.ChoiceOfElementsThree _instance_) { return ((_instance_ == null)?null:_instance_.worker); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsThree _instance_, final Worker _value_) { if (_instance_!= null) { _instance_.worker = _value_; } } } ; } public static class Select extends JavadocAnnotations.ChoiceOfElementsThree.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.ChoiceOfElementsThree.Select _root() { return new JavadocAnnotations.ChoiceOfElementsThree.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private City.Selector> city = null; private Worker.Selector> worker = 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.city!= null) { products.put("city", this.city.init()); } if (this.worker!= null) { products.put("worker", this.worker.init()); } return products; } public City.Selector> city() { return ((this.city == null)?this.city = new City.Selector<>(this._root, this, "city"):this.city); } public Worker.Selector> worker() { return ((this.worker == null)?this.worker = new Worker.Selector<>(this._root, this, "worker"):this.worker); } } } /** * choice-of-elements-two anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly. * *

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 = { "bike", "car" }) public static class ChoiceOfElementsTwo implements Cloneable { protected Bike bike; protected Car car; protected transient JavadocAnnotations.ChoiceOfElementsTwo.Modifier __cachedModifier__; /** * Ruft den Wert der bike-Eigenschaft ab. * * @return * possible object is * {@link Bike } * */ public Bike getBike() { return bike; } /** * Legt den Wert der bike-Eigenschaft fest. * * @param value * allowed object is * {@link Bike } * */ protected void setBike(Bike value) { this.bike = value; } /** * Ruft den Wert der car-Eigenschaft ab. * * @return * possible object is * {@link Car } * */ public Car getCar() { return car; } /** * Legt den Wert der car-Eigenschaft fest. * * @param value * allowed object is * {@link Car } * */ protected void setCar(Car value) { this.car = value; } @Override public JavadocAnnotations.ChoiceOfElementsTwo clone() { final JavadocAnnotations.ChoiceOfElementsTwo _newObject; try { _newObject = ((JavadocAnnotations.ChoiceOfElementsTwo) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.bike = ((this.bike == null)?null:this.bike.clone()); _newObject.car = ((this.car == null)?null:this.car.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 JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> _other) { _other.bike = ((this.bike == null)?null:this.bike.newCopyBuilder(_other)); _other.car = ((this.car == null)?null:this.car.newCopyBuilder(_other)); } public<_B >JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.ChoiceOfElementsTwo.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.ChoiceOfElementsTwo.Builder builder() { return new JavadocAnnotations.ChoiceOfElementsTwo.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsTwo _other) { final JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsTwo.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 JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree bikePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("bike")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(bikePropertyTree!= null):((bikePropertyTree == null)||(!bikePropertyTree.isLeaf())))) { _other.bike = ((this.bike == null)?null:this.bike.newCopyBuilder(_other, bikePropertyTree, _propertyTreeUse)); } final PropertyTree carPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("car")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(carPropertyTree!= null):((carPropertyTree == null)||(!carPropertyTree.isLeaf())))) { _other.car = ((this.car == null)?null:this.car.newCopyBuilder(_other, carPropertyTree, _propertyTreeUse)); } } public<_B >JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.ChoiceOfElementsTwo.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsTwo _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> _newBuilder = new JavadocAnnotations.ChoiceOfElementsTwo.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.ChoiceOfElementsTwo.Builder copyExcept(final JavadocAnnotations.ChoiceOfElementsTwo _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.ChoiceOfElementsTwo.Builder copyOnly(final JavadocAnnotations.ChoiceOfElementsTwo _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public JavadocAnnotations.ChoiceOfElementsTwo.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.ChoiceOfElementsTwo.Modifier(); } return ((JavadocAnnotations.ChoiceOfElementsTwo.Modifier) this.__cachedModifier__); } public JavadocAnnotations.ChoiceOfElementsTwo visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsTwo.PropInfo.bike, this))&&(this.bike!= null)) { this.bike.visit(_visitor_); } if (_visitor_.visit(new SingleProperty<>(JavadocAnnotations.ChoiceOfElementsTwo.PropInfo.car, this))&&(this.car!= null)) { this.car.visit(_visitor_); } return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations.ChoiceOfElementsTwo _storedValue; private Bike.Builder> bike; private Car.Builder> car; public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsTwo _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.bike = ((_other.bike == null)?null:_other.bike.newCopyBuilder(this)); this.car = ((_other.car == null)?null:_other.car.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations.ChoiceOfElementsTwo _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree bikePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("bike")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(bikePropertyTree!= null):((bikePropertyTree == null)||(!bikePropertyTree.isLeaf())))) { this.bike = ((_other.bike == null)?null:_other.bike.newCopyBuilder(this, bikePropertyTree, _propertyTreeUse)); } final PropertyTree carPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("car")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(carPropertyTree!= null):((carPropertyTree == null)||(!carPropertyTree.isLeaf())))) { this.car = ((_other.car == null)?null:_other.car.newCopyBuilder(this, carPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations.ChoiceOfElementsTwo >_P init(final _P _product) { _product.bike = ((this.bike == null)?null:this.bike.build()); _product.car = ((this.car == null)?null:this.car.build()); return _product; } /** * Setzt den neuen Wert der Eigenschaft "bike" (Vorher zugewiesener Wert wird * ersetzt) * * @param bike * Neuer Wert der Eigenschaft "bike". */ public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> withBike(final Bike bike) { this.bike = ((bike == null)?null:new Bike.Builder<>(this, bike, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "bike". * Mit {@link com.kscs.jaxb2.contract.test.Bike.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "bike". * Mit {@link com.kscs.jaxb2.contract.test.Bike.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Bike.Builder> withBike() { if (this.bike!= null) { return this.bike; } return this.bike = new Bike.Builder<>(this, null, false); } /** * Setzt den neuen Wert der Eigenschaft "car" (Vorher zugewiesener Wert wird * ersetzt) * * @param car * Neuer Wert der Eigenschaft "car". */ public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> withCar(final Car car) { this.car = ((car == null)?null:new Car.Builder<>(this, car, false)); return this; } /** * Erzeugt den vorhandenen Builder oder einen neuen "Builder" zum Zusammenbauen des * Wertes der Eigenschaft "car". * Mit {@link com.kscs.jaxb2.contract.test.Car.Builder#end()} geht es zurück zum * aktuellen Builder. * * @return * Ein neuer "Builder" zum Zusammenbauen des Wertes der Eigenschaft "car". * Mit {@link com.kscs.jaxb2.contract.test.Car.Builder#end()} geht es zurück zum * aktuellen Builder. */ public Car.Builder> withCar() { if (this.car!= null) { return this.car; } return this.car = new Car.Builder<>(this, null, false); } @Override public JavadocAnnotations.ChoiceOfElementsTwo build() { if (_storedValue == null) { return this.init(new JavadocAnnotations.ChoiceOfElementsTwo()); } else { return ((JavadocAnnotations.ChoiceOfElementsTwo) _storedValue); } } public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsTwo _other) { _other.copyTo(this); return this; } public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> copyOf(final JavadocAnnotations.ChoiceOfElementsTwo.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setBike(final Bike bike) { JavadocAnnotations.ChoiceOfElementsTwo.this.setBike(bike); } public void setCar(final Car car) { JavadocAnnotations.ChoiceOfElementsTwo.this.setCar(car); } } public static class PropInfo { public static final transient SinglePropertyInfo bike = new SinglePropertyInfo("bike", JavadocAnnotations.ChoiceOfElementsTwo.class, Bike.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "bike"), new QName("http://www.kscs.com/jaxb2/contract/test", "bike"), false) { @Override public Bike get(final JavadocAnnotations.ChoiceOfElementsTwo _instance_) { return ((_instance_ == null)?null:_instance_.bike); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsTwo _instance_, final Bike _value_) { if (_instance_!= null) { _instance_.bike = _value_; } } } ; public static final transient SinglePropertyInfo car = new SinglePropertyInfo("car", JavadocAnnotations.ChoiceOfElementsTwo.class, Car.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "car"), new QName("http://www.kscs.com/jaxb2/contract/test", "car"), false) { @Override public Car get(final JavadocAnnotations.ChoiceOfElementsTwo _instance_) { return ((_instance_ == null)?null:_instance_.car); } @Override public void set(final JavadocAnnotations.ChoiceOfElementsTwo _instance_, final Car _value_) { if (_instance_!= null) { _instance_.car = _value_; } } } ; } public static class Select extends JavadocAnnotations.ChoiceOfElementsTwo.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.ChoiceOfElementsTwo.Select _root() { return new JavadocAnnotations.ChoiceOfElementsTwo.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private Bike.Selector> bike = null; private Car.Selector> car = 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.bike!= null) { products.put("bike", this.bike.init()); } if (this.car!= null) { products.put("car", this.car.init()); } return products; } public Bike.Selector> bike() { return ((this.bike == null)?this.bike = new Bike.Selector<>(this._root, this, "bike"):this.bike); } public Car.Selector> car() { return ((this.car == null)?this.car = new Car.Selector<>(this._root, this, "car"):this.car); } } } public class Modifier { public void setSimpleElement(final String simpleElement) { JavadocAnnotations.this.setSimpleElement(simpleElement); } public void setSimpleElementWithAttributes(final JavadocAnnotations.SimpleElementWithAttributes simpleElementWithAttributes) { JavadocAnnotations.this.setSimpleElementWithAttributes(simpleElementWithAttributes); } public void setUseOfComplexType(final JavadocAnnotationsComplexType useOfComplexType) { JavadocAnnotations.this.setUseOfComplexType(useOfComplexType); } public void setUseOfComplexTypeWithSuperType(final Car useOfComplexTypeWithSuperType) { JavadocAnnotations.this.setUseOfComplexTypeWithSuperType(useOfComplexTypeWithSuperType); } public void setChoiceOfElementsOne(final JavadocAnnotations.ChoiceOfElementsOne choiceOfElementsOne) { JavadocAnnotations.this.setChoiceOfElementsOne(choiceOfElementsOne); } public void setChoiceOfElementsTwo(final JavadocAnnotations.ChoiceOfElementsTwo choiceOfElementsTwo) { JavadocAnnotations.this.setChoiceOfElementsTwo(choiceOfElementsTwo); } public void setChoiceOfElementsThree(final JavadocAnnotations.ChoiceOfElementsThree choiceOfElementsThree) { JavadocAnnotations.this.setChoiceOfElementsThree(choiceOfElementsThree); } public void setChoiceOfElementsFour(final JavadocAnnotations.ChoiceOfElementsFour choiceOfElementsFour) { JavadocAnnotations.this.setChoiceOfElementsFour(choiceOfElementsFour); } public void setChoiceOfElementsFive(final JavadocAnnotations.ChoiceOfElementsFive choiceOfElementsFive) { JavadocAnnotations.this.setChoiceOfElementsFive(choiceOfElementsFive); } } public static class PropInfo { public static final transient SinglePropertyInfo simpleElement = new SinglePropertyInfo("simpleElement", JavadocAnnotations.class, String.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "simple-element"), new QName("http://www.w3.org/2001/XMLSchema", "string"), false) { @Override public String get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.simpleElement); } @Override public void set(final JavadocAnnotations _instance_, final String _value_) { if (_instance_!= null) { _instance_.simpleElement = _value_; } } } ; public static final transient SinglePropertyInfo simpleElementWithAttributes = new SinglePropertyInfo("simpleElementWithAttributes", JavadocAnnotations.class, JavadocAnnotations.SimpleElementWithAttributes.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "simple-element-with-attributes"), new QName("http://www.kscs.com/jaxb2/contract/test", "anononymousElementType"), false) { @Override public JavadocAnnotations.SimpleElementWithAttributes get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.simpleElementWithAttributes); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotations.SimpleElementWithAttributes _value_) { if (_instance_!= null) { _instance_.simpleElementWithAttributes = _value_; } } } ; public static final transient SinglePropertyInfo useOfComplexType = new SinglePropertyInfo("useOfComplexType", JavadocAnnotations.class, JavadocAnnotationsComplexType.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "use-of-complexType"), new QName("http://www.kscs.com/jaxb2/contract/test", "javadoc-annotations-complex-type"), false) { @Override public JavadocAnnotationsComplexType get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.useOfComplexType); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotationsComplexType _value_) { if (_instance_!= null) { _instance_.useOfComplexType = _value_; } } } ; public static final transient SinglePropertyInfo useOfComplexTypeWithSuperType = new SinglePropertyInfo("useOfComplexTypeWithSuperType", JavadocAnnotations.class, Car.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "use-of-complexType-with-super-type"), new QName("http://www.kscs.com/jaxb2/contract/test", "car"), false) { @Override public Car get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.useOfComplexTypeWithSuperType); } @Override public void set(final JavadocAnnotations _instance_, final Car _value_) { if (_instance_!= null) { _instance_.useOfComplexTypeWithSuperType = _value_; } } } ; public static final transient SinglePropertyInfo choiceOfElementsOne = new SinglePropertyInfo("choiceOfElementsOne", JavadocAnnotations.class, JavadocAnnotations.ChoiceOfElementsOne.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-of-elements-one"), new QName("http://www.kscs.com/jaxb2/contract/test", "anononymousElementType"), false) { @Override public JavadocAnnotations.ChoiceOfElementsOne get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.choiceOfElementsOne); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotations.ChoiceOfElementsOne _value_) { if (_instance_!= null) { _instance_.choiceOfElementsOne = _value_; } } } ; public static final transient SinglePropertyInfo choiceOfElementsTwo = new SinglePropertyInfo("choiceOfElementsTwo", JavadocAnnotations.class, JavadocAnnotations.ChoiceOfElementsTwo.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-of-elements-two"), new QName("http://www.kscs.com/jaxb2/contract/test", "anononymousElementType"), false) { @Override public JavadocAnnotations.ChoiceOfElementsTwo get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.choiceOfElementsTwo); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotations.ChoiceOfElementsTwo _value_) { if (_instance_!= null) { _instance_.choiceOfElementsTwo = _value_; } } } ; public static final transient SinglePropertyInfo choiceOfElementsThree = new SinglePropertyInfo("choiceOfElementsThree", JavadocAnnotations.class, JavadocAnnotations.ChoiceOfElementsThree.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-of-elements-three"), new QName("http://www.kscs.com/jaxb2/contract/test", "anononymousElementType"), false) { @Override public JavadocAnnotations.ChoiceOfElementsThree get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.choiceOfElementsThree); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotations.ChoiceOfElementsThree _value_) { if (_instance_!= null) { _instance_.choiceOfElementsThree = _value_; } } } ; public static final transient SinglePropertyInfo choiceOfElementsFour = new SinglePropertyInfo("choiceOfElementsFour", JavadocAnnotations.class, JavadocAnnotations.ChoiceOfElementsFour.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-of-elements-four"), new QName("http://www.kscs.com/jaxb2/contract/test", "anononymousElementType"), false) { @Override public JavadocAnnotations.ChoiceOfElementsFour get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.choiceOfElementsFour); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotations.ChoiceOfElementsFour _value_) { if (_instance_!= null) { _instance_.choiceOfElementsFour = _value_; } } } ; public static final transient SinglePropertyInfo choiceOfElementsFive = new SinglePropertyInfo("choiceOfElementsFive", JavadocAnnotations.class, JavadocAnnotations.ChoiceOfElementsFive.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "choice-of-elements-five"), new QName("http://www.kscs.com/jaxb2/contract/test", "anononymousElementType"), false) { @Override public JavadocAnnotations.ChoiceOfElementsFive get(final JavadocAnnotations _instance_) { return ((_instance_ == null)?null:_instance_.choiceOfElementsFive); } @Override public void set(final JavadocAnnotations _instance_, final JavadocAnnotations.ChoiceOfElementsFive _value_) { if (_instance_!= null) { _instance_.choiceOfElementsFive = _value_; } } } ; } public static class Select extends JavadocAnnotations.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.Select _root() { return new JavadocAnnotations.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> simpleElement = null; private JavadocAnnotations.SimpleElementWithAttributes.Selector> simpleElementWithAttributes = null; private JavadocAnnotationsComplexType.Selector> useOfComplexType = null; private Car.Selector> useOfComplexTypeWithSuperType = null; private JavadocAnnotations.ChoiceOfElementsOne.Selector> choiceOfElementsOne = null; private JavadocAnnotations.ChoiceOfElementsTwo.Selector> choiceOfElementsTwo = null; private JavadocAnnotations.ChoiceOfElementsThree.Selector> choiceOfElementsThree = null; private JavadocAnnotations.ChoiceOfElementsFour.Selector> choiceOfElementsFour = null; private JavadocAnnotations.ChoiceOfElementsFive.Selector> choiceOfElementsFive = 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.simpleElement!= null) { products.put("simpleElement", this.simpleElement.init()); } if (this.simpleElementWithAttributes!= null) { products.put("simpleElementWithAttributes", this.simpleElementWithAttributes.init()); } if (this.useOfComplexType!= null) { products.put("useOfComplexType", this.useOfComplexType.init()); } if (this.useOfComplexTypeWithSuperType!= null) { products.put("useOfComplexTypeWithSuperType", this.useOfComplexTypeWithSuperType.init()); } if (this.choiceOfElementsOne!= null) { products.put("choiceOfElementsOne", this.choiceOfElementsOne.init()); } if (this.choiceOfElementsTwo!= null) { products.put("choiceOfElementsTwo", this.choiceOfElementsTwo.init()); } if (this.choiceOfElementsThree!= null) { products.put("choiceOfElementsThree", this.choiceOfElementsThree.init()); } if (this.choiceOfElementsFour!= null) { products.put("choiceOfElementsFour", this.choiceOfElementsFour.init()); } if (this.choiceOfElementsFive!= null) { products.put("choiceOfElementsFive", this.choiceOfElementsFive.init()); } return products; } public com.kscs.util.jaxb.Selector> simpleElement() { return ((this.simpleElement == null)?this.simpleElement = new com.kscs.util.jaxb.Selector<>(this._root, this, "simpleElement"):this.simpleElement); } public JavadocAnnotations.SimpleElementWithAttributes.Selector> simpleElementWithAttributes() { return ((this.simpleElementWithAttributes == null)?this.simpleElementWithAttributes = new JavadocAnnotations.SimpleElementWithAttributes.Selector<>(this._root, this, "simpleElementWithAttributes"):this.simpleElementWithAttributes); } public JavadocAnnotationsComplexType.Selector> useOfComplexType() { return ((this.useOfComplexType == null)?this.useOfComplexType = new JavadocAnnotationsComplexType.Selector<>(this._root, this, "useOfComplexType"):this.useOfComplexType); } public Car.Selector> useOfComplexTypeWithSuperType() { return ((this.useOfComplexTypeWithSuperType == null)?this.useOfComplexTypeWithSuperType = new Car.Selector<>(this._root, this, "useOfComplexTypeWithSuperType"):this.useOfComplexTypeWithSuperType); } public JavadocAnnotations.ChoiceOfElementsOne.Selector> choiceOfElementsOne() { return ((this.choiceOfElementsOne == null)?this.choiceOfElementsOne = new JavadocAnnotations.ChoiceOfElementsOne.Selector<>(this._root, this, "choiceOfElementsOne"):this.choiceOfElementsOne); } public JavadocAnnotations.ChoiceOfElementsTwo.Selector> choiceOfElementsTwo() { return ((this.choiceOfElementsTwo == null)?this.choiceOfElementsTwo = new JavadocAnnotations.ChoiceOfElementsTwo.Selector<>(this._root, this, "choiceOfElementsTwo"):this.choiceOfElementsTwo); } public JavadocAnnotations.ChoiceOfElementsThree.Selector> choiceOfElementsThree() { return ((this.choiceOfElementsThree == null)?this.choiceOfElementsThree = new JavadocAnnotations.ChoiceOfElementsThree.Selector<>(this._root, this, "choiceOfElementsThree"):this.choiceOfElementsThree); } public JavadocAnnotations.ChoiceOfElementsFour.Selector> choiceOfElementsFour() { return ((this.choiceOfElementsFour == null)?this.choiceOfElementsFour = new JavadocAnnotations.ChoiceOfElementsFour.Selector<>(this._root, this, "choiceOfElementsFour"):this.choiceOfElementsFour); } public JavadocAnnotations.ChoiceOfElementsFive.Selector> choiceOfElementsFive() { return ((this.choiceOfElementsFive == null)?this.choiceOfElementsFive = new JavadocAnnotations.ChoiceOfElementsFive.Selector<>(this._root, this, "choiceOfElementsFive"):this.choiceOfElementsFive); } } /** * simple-element-with-attributes anonymous complex type annotation. And this is some extra text to test that line breaking is working correctly. * *

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 = "") public static class SimpleElementWithAttributes implements Cloneable { @XmlAttribute(name = "attribute-one") protected String attributeOne; @XmlAttribute(name = "attribute-two") protected String attributeTwo; protected transient JavadocAnnotations.SimpleElementWithAttributes.Modifier __cachedModifier__; /** * Ruft den Wert der attributeOne-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getAttributeOne() { return attributeOne; } /** * Legt den Wert der attributeOne-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ protected void setAttributeOne(String value) { this.attributeOne = value; } /** * Ruft den Wert der attributeTwo-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getAttributeTwo() { return attributeTwo; } /** * Legt den Wert der attributeTwo-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ protected void setAttributeTwo(String value) { this.attributeTwo = value; } @Override public JavadocAnnotations.SimpleElementWithAttributes clone() { final JavadocAnnotations.SimpleElementWithAttributes _newObject; try { _newObject = ((JavadocAnnotations.SimpleElementWithAttributes) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } 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 JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> _other) { _other.attributeOne = this.attributeOne; _other.attributeTwo = this.attributeTwo; } public<_B >JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new JavadocAnnotations.SimpleElementWithAttributes.Builder<_B>(_parentBuilder, this, true); } public JavadocAnnotations.SimpleElementWithAttributes.Builder newCopyBuilder() { return newCopyBuilder(null); } public static JavadocAnnotations.SimpleElementWithAttributes.Builder builder() { return new JavadocAnnotations.SimpleElementWithAttributes.Builder<>(null, null, false); } public static<_B >JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> copyOf(final JavadocAnnotations.SimpleElementWithAttributes _other) { final JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> _newBuilder = new JavadocAnnotations.SimpleElementWithAttributes.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 JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree attributeOnePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("attributeOne")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(attributeOnePropertyTree!= null):((attributeOnePropertyTree == null)||(!attributeOnePropertyTree.isLeaf())))) { _other.attributeOne = this.attributeOne; } final PropertyTree attributeTwoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("attributeTwo")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(attributeTwoPropertyTree!= null):((attributeTwoPropertyTree == null)||(!attributeTwoPropertyTree.isLeaf())))) { _other.attributeTwo = this.attributeTwo; } } public<_B >JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new JavadocAnnotations.SimpleElementWithAttributes.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public JavadocAnnotations.SimpleElementWithAttributes.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> copyOf(final JavadocAnnotations.SimpleElementWithAttributes _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> _newBuilder = new JavadocAnnotations.SimpleElementWithAttributes.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static JavadocAnnotations.SimpleElementWithAttributes.Builder copyExcept(final JavadocAnnotations.SimpleElementWithAttributes _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static JavadocAnnotations.SimpleElementWithAttributes.Builder copyOnly(final JavadocAnnotations.SimpleElementWithAttributes _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public JavadocAnnotations.SimpleElementWithAttributes.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new JavadocAnnotations.SimpleElementWithAttributes.Modifier(); } return ((JavadocAnnotations.SimpleElementWithAttributes.Modifier) this.__cachedModifier__); } public JavadocAnnotations.SimpleElementWithAttributes visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new SingleProperty<>(JavadocAnnotations.SimpleElementWithAttributes.PropInfo.attributeOne, this)); _visitor_.visit(new SingleProperty<>(JavadocAnnotations.SimpleElementWithAttributes.PropInfo.attributeTwo, this)); return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final JavadocAnnotations.SimpleElementWithAttributes _storedValue; private String attributeOne; private String attributeTwo; public Builder(final _B _parentBuilder, final JavadocAnnotations.SimpleElementWithAttributes _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.attributeOne = _other.attributeOne; this.attributeTwo = _other.attributeTwo; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final JavadocAnnotations.SimpleElementWithAttributes _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree attributeOnePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("attributeOne")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(attributeOnePropertyTree!= null):((attributeOnePropertyTree == null)||(!attributeOnePropertyTree.isLeaf())))) { this.attributeOne = _other.attributeOne; } final PropertyTree attributeTwoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("attributeTwo")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(attributeTwoPropertyTree!= null):((attributeTwoPropertyTree == null)||(!attributeTwoPropertyTree.isLeaf())))) { this.attributeTwo = _other.attributeTwo; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends JavadocAnnotations.SimpleElementWithAttributes >_P init(final _P _product) { _product.attributeOne = this.attributeOne; _product.attributeTwo = this.attributeTwo; return _product; } /** * Setzt den neuen Wert der Eigenschaft "attributeOne" (Vorher zugewiesener Wert * wird ersetzt) * * @param attributeOne * Neuer Wert der Eigenschaft "attributeOne". */ public JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> withAttributeOne(final String attributeOne) { this.attributeOne = attributeOne; return this; } /** * Setzt den neuen Wert der Eigenschaft "attributeTwo" (Vorher zugewiesener Wert * wird ersetzt) * * @param attributeTwo * Neuer Wert der Eigenschaft "attributeTwo". */ public JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> withAttributeTwo(final String attributeTwo) { this.attributeTwo = attributeTwo; return this; } @Override public JavadocAnnotations.SimpleElementWithAttributes build() { if (_storedValue == null) { return this.init(new JavadocAnnotations.SimpleElementWithAttributes()); } else { return ((JavadocAnnotations.SimpleElementWithAttributes) _storedValue); } } public JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> copyOf(final JavadocAnnotations.SimpleElementWithAttributes _other) { _other.copyTo(this); return this; } public JavadocAnnotations.SimpleElementWithAttributes.Builder<_B> copyOf(final JavadocAnnotations.SimpleElementWithAttributes.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setAttributeOne(final String attributeOne) { JavadocAnnotations.SimpleElementWithAttributes.this.setAttributeOne(attributeOne); } public void setAttributeTwo(final String attributeTwo) { JavadocAnnotations.SimpleElementWithAttributes.this.setAttributeTwo(attributeTwo); } } public static class PropInfo { public static final transient SinglePropertyInfo attributeOne = new SinglePropertyInfo("attributeOne", JavadocAnnotations.SimpleElementWithAttributes.class, String.class, false, null, new QName("", "attribute-one"), new QName("http://www.w3.org/2001/XMLSchema", "string"), true) { @Override public String get(final JavadocAnnotations.SimpleElementWithAttributes _instance_) { return ((_instance_ == null)?null:_instance_.attributeOne); } @Override public void set(final JavadocAnnotations.SimpleElementWithAttributes _instance_, final String _value_) { if (_instance_!= null) { _instance_.attributeOne = _value_; } } } ; public static final transient SinglePropertyInfo attributeTwo = new SinglePropertyInfo("attributeTwo", JavadocAnnotations.SimpleElementWithAttributes.class, String.class, false, null, new QName("", "attribute-two"), new QName("http://www.w3.org/2001/XMLSchema", "string"), true) { @Override public String get(final JavadocAnnotations.SimpleElementWithAttributes _instance_) { return ((_instance_ == null)?null:_instance_.attributeTwo); } @Override public void set(final JavadocAnnotations.SimpleElementWithAttributes _instance_, final String _value_) { if (_instance_!= null) { _instance_.attributeTwo = _value_; } } } ; } public static class Select extends JavadocAnnotations.SimpleElementWithAttributes.Selector { Select() { super(null, null, null); } public static JavadocAnnotations.SimpleElementWithAttributes.Select _root() { return new JavadocAnnotations.SimpleElementWithAttributes.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> attributeOne = null; private com.kscs.util.jaxb.Selector> attributeTwo = 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.attributeOne!= null) { products.put("attributeOne", this.attributeOne.init()); } if (this.attributeTwo!= null) { products.put("attributeTwo", this.attributeTwo.init()); } return products; } public com.kscs.util.jaxb.Selector> attributeOne() { return ((this.attributeOne == null)?this.attributeOne = new com.kscs.util.jaxb.Selector<>(this._root, this, "attributeOne"):this.attributeOne); } public com.kscs.util.jaxb.Selector> attributeTwo() { return ((this.attributeTwo == null)?this.attributeTwo = new com.kscs.util.jaxb.Selector<>(this._root, this, "attributeTwo"):this.attributeTwo); } } } }