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

com.kscs.jaxb2.contract.test.Transport 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.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;


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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy