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

com.kscs.jaxb2.contract.test.Class Maven / Gradle / Ivy

//
// Diese Datei wurde mit der Eclipse Implementation of JAXB, v4.0.2 generiert 
// Siehe https://eclipse-ee4j.github.io/jaxb-ri 
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
//


package com.kscs.jaxb2.contract.test;

import java.util.HashMap;
import java.util.Map;
import javax.xml.namespace.QName;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import com.kscs.util.jaxb.PropertyVisitor;
import com.kscs.util.jaxb.SingleProperty;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;


/**
 * class complex type. And this is some extra text to test that line breaking is working correctly.
 * 
 * 

Java-Klasse für class complex type. * *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "class", propOrder = { "clazz" }) public class Class implements Cloneable { @XmlElement(name = "class", required = true) protected String clazz; protected transient Class.Modifier __cachedModifier__; /** * Ruft den Wert der clazz-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getClazz() { return clazz; } /** * Legt den Wert der clazz-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ protected void setClazz(String value) { this.clazz = value; } @Override public Class clone() { final Class _newObject; try { _newObject = ((Class) 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 Class.Builder<_B> _other) { _other.clazz = this.clazz; } public<_B >Class.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Class.Builder<_B>(_parentBuilder, this, true); } public Class.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Class.Builder builder() { return new Class.Builder<>(null, null, false); } public static<_B >Class.Builder<_B> copyOf(final Class _other) { final Class.Builder<_B> _newBuilder = new Class.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 Class.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree clazzPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("clazz")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(clazzPropertyTree!= null):((clazzPropertyTree == null)||(!clazzPropertyTree.isLeaf())))) { _other.clazz = this.clazz; } } public<_B >Class.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Class.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Class.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Class.Builder<_B> copyOf(final Class _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Class.Builder<_B> _newBuilder = new Class.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Class.Builder copyExcept(final Class _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Class.Builder copyOnly(final Class _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public Class.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new Class.Modifier(); } return ((Class.Modifier) this.__cachedModifier__); } public Class visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new SingleProperty<>(Class.PropInfo.clazz, this)); return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Class _storedValue; private String clazz; public Builder(final _B _parentBuilder, final Class _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.clazz = _other.clazz; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Class _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree clazzPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("clazz")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(clazzPropertyTree!= null):((clazzPropertyTree == null)||(!clazzPropertyTree.isLeaf())))) { this.clazz = _other.clazz; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Class >_P init(final _P _product) { _product.clazz = this.clazz; return _product; } /** * Setzt den neuen Wert der Eigenschaft "clazz" (Vorher zugewiesener Wert wird * ersetzt) * * @param clazz * Neuer Wert der Eigenschaft "clazz". */ public Class.Builder<_B> withClazz(final String clazz) { this.clazz = clazz; return this; } @Override public Class build() { if (_storedValue == null) { return this.init(new Class()); } else { return ((Class) _storedValue); } } public Class.Builder<_B> copyOf(final Class _other) { _other.copyTo(this); return this; } public Class.Builder<_B> copyOf(final Class.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setClazz(final String clazz) { Class.this.setClazz(clazz); } } public static class PropInfo { public static final transient SinglePropertyInfo clazz = new SinglePropertyInfo("clazz", Class.class, String.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "class"), new QName("http://www.w3.org/2001/XMLSchema", "string"), false) { @Override public String get(final Class _instance_) { return ((_instance_ == null)?null:_instance_.clazz); } @Override public void set(final Class _instance_, final String _value_) { if (_instance_!= null) { _instance_.clazz = _value_; } } } ; } public static class Select extends Class.Selector { Select() { super(null, null, null); } public static Class.Select _root() { return new Class.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> clazz = null; public Selector(final TRoot root, final TParent parent, final String propertyName) { super(root, parent, propertyName); } @Override public Map buildChildren() { final Map products = new HashMap<>(); products.putAll(super.buildChildren()); if (this.clazz!= null) { products.put("clazz", this.clazz.init()); } return products; } public com.kscs.util.jaxb.Selector> clazz() { return ((this.clazz == null)?this.clazz = new com.kscs.util.jaxb.Selector<>(this._root, this, "clazz"):this.clazz); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy