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

com.kscs.jaxb2.contract.test.Bike 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;


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

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

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

{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "bike", propOrder = { "frameSize" }) public class Bike extends Transport implements Cloneable { @XmlElement(name = "frame-size") protected int frameSize; /** * Ruft den Wert der frameSize-Eigenschaft ab. * */ public int getFrameSize() { return frameSize; } /** * Legt den Wert der frameSize-Eigenschaft fest. * */ protected void setFrameSize(int value) { this.frameSize = value; } @Override public Bike clone() { final Bike _newObject; _newObject = ((Bike) super.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 Bike.Builder<_B> _other) { super.copyTo(_other); _other.frameSize = this.frameSize; } @Override public<_B >Bike.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Bike.Builder<_B>(_parentBuilder, this, true); } @Override public Bike.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Bike.Builder builder() { return new Bike.Builder<>(null, null, false); } public static<_B >Bike.Builder<_B> copyOf(final Transport _other) { final Bike.Builder<_B> _newBuilder = new Bike.Builder<>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; } public static<_B >Bike.Builder<_B> copyOf(final Bike _other) { final Bike.Builder<_B> _newBuilder = new Bike.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 Bike.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { super.copyTo(_other, _propertyTree, _propertyTreeUse); final PropertyTree frameSizePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("frameSize")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(frameSizePropertyTree!= null):((frameSizePropertyTree == null)||(!frameSizePropertyTree.isLeaf())))) { _other.frameSize = this.frameSize; } } @Override public<_B >Bike.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Bike.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } @Override public Bike.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Bike.Builder<_B> copyOf(final Transport _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Bike.Builder<_B> _newBuilder = new Bike.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static<_B >Bike.Builder<_B> copyOf(final Bike _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Bike.Builder<_B> _newBuilder = new Bike.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Bike.Builder copyExcept(final Transport _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Bike.Builder copyExcept(final Bike _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Bike.Builder copyOnly(final Transport _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static Bike.Builder copyOnly(final Bike _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public Bike.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new Bike.Modifier(); } return ((Bike.Modifier) this.__cachedModifier__); } public Bike visit(final PropertyVisitor _visitor_) { super.visit(_visitor_); _visitor_.visit(new SingleProperty<>(Bike.PropInfo.frameSize, this)); return this; } public static class Builder<_B > extends Transport.Builder<_B> implements Buildable { private int frameSize; public Builder(final _B _parentBuilder, final Bike _other, final boolean _copy) { super(_parentBuilder, _other, _copy); if (_other!= null) { this.frameSize = _other.frameSize; } } public Builder(final _B _parentBuilder, final Bike _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { super(_parentBuilder, _other, _copy, _propertyTree, _propertyTreeUse); if (_other!= null) { final PropertyTree frameSizePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("frameSize")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(frameSizePropertyTree!= null):((frameSizePropertyTree == null)||(!frameSizePropertyTree.isLeaf())))) { this.frameSize = _other.frameSize; } } } protected<_P extends Bike >_P init(final _P _product) { _product.frameSize = this.frameSize; return super.init(_product); } /** * Setzt den neuen Wert der Eigenschaft "frameSize" (Vorher zugewiesener Wert wird * ersetzt) * * @param frameSize * Neuer Wert der Eigenschaft "frameSize". */ public Bike.Builder<_B> withFrameSize(final int frameSize) { this.frameSize = frameSize; return this; } /** * Setzt den neuen Wert der Eigenschaft "name" (Vorher zugewiesener Wert wird * ersetzt) * * @param name * Neuer Wert der Eigenschaft "name". */ @Override public Bike.Builder<_B> withName(final String name) { super.withName(name); return this; } @Override public Bike build() { if (_storedValue == null) { return this.init(new Bike()); } else { return ((Bike) _storedValue); } } public Bike.Builder<_B> copyOf(final Bike _other) { _other.copyTo(this); return this; } public Bike.Builder<_B> copyOf(final Bike.Builder _other) { return copyOf(_other.build()); } } public class Modifier extends Transport.Modifier { public void setFrameSize(final int frameSize) { Bike.this.setFrameSize(frameSize); } } public static class PropInfo { public static final transient SinglePropertyInfo frameSize = new SinglePropertyInfo("frameSize", Bike.class, Integer.class, false, null, new QName("http://www.kscs.com/jaxb2/contract/test", "frame-size"), new QName("http://www.w3.org/2001/XMLSchema", "int"), false) { @Override public Integer get(final Bike _instance_) { return ((_instance_ == null)?null:_instance_.frameSize); } @Override public void set(final Bike _instance_, final Integer _value_) { if (_instance_!= null) { _instance_.frameSize = _value_; } } } ; } public static class Select extends Bike.Selector { Select() { super(null, null, null); } public static Bike.Select _root() { return new Bike.Select(); } } public static class Selector , TParent > extends Transport.Selector { 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()); return products; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy