org.w3.soap.Subcode Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.10.14 at 09:04:34 PM UTC
//
package org.w3.soap;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
* Java class for subcode complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="subcode">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Value" type="{http://www.w3.org/2001/XMLSchema}QName"/>
* <element name="Subcode" type="{http://www.w3.org/2003/05/soap-envelope}subcode" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "subcode", propOrder = {
"value",
"subcode"
})
public class Subcode {
@XmlElement(name = "Value", required = true)
protected QName value;
@XmlElement(name = "Subcode")
protected Subcode subcode;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setValue(QName value) {
this.value = value;
}
/**
* Gets the value of the subcode property.
*
* @return
* possible object is
* {@link Subcode }
*
*/
public Subcode getSubcode() {
return subcode;
}
/**
* Sets the value of the subcode property.
*
* @param value
* allowed object is
* {@link Subcode }
*
*/
public void setSubcode(Subcode value) {
this.subcode = value;
}
/**
* Copies all state of this object to a builder. This method is used by the {@link
* #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 Subcode.Builder<_B> _other) {
_other.value = this.value;
_other.subcode = ((this.subcode == null)?null:this.subcode.newCopyBuilder(_other));
}
public<_B >Subcode.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Subcode.Builder<_B>(_parentBuilder, this, true);
}
public Subcode.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Subcode.Builder builder() {
return new Subcode.Builder(null, null, false);
}
public static<_B >Subcode.Builder<_B> copyOf(final Subcode _other) {
final Subcode.Builder<_B> _newBuilder = new Subcode.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
/**
* Copies all state of this object to a builder. This method is used by the {@link
* #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 Subcode.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree valuePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("value"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(valuePropertyTree!= null):((valuePropertyTree == null)||(!valuePropertyTree.isLeaf())))) {
_other.value = this.value;
}
final PropertyTree subcodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("subcode"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(subcodePropertyTree!= null):((subcodePropertyTree == null)||(!subcodePropertyTree.isLeaf())))) {
_other.subcode = ((this.subcode == null)?null:this.subcode.newCopyBuilder(_other, subcodePropertyTree, _propertyTreeUse));
}
}
public<_B >Subcode.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Subcode.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Subcode.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Subcode.Builder<_B> copyOf(final Subcode _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Subcode.Builder<_B> _newBuilder = new Subcode.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Subcode.Builder copyExcept(final Subcode _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Subcode.Builder copyOnly(final Subcode _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Subcode _storedValue;
private QName value;
private Subcode.Builder> subcode;
public Builder(final _B _parentBuilder, final Subcode _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.value = _other.value;
this.subcode = ((_other.subcode == null)?null:_other.subcode.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Subcode _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree valuePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("value"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(valuePropertyTree!= null):((valuePropertyTree == null)||(!valuePropertyTree.isLeaf())))) {
this.value = _other.value;
}
final PropertyTree subcodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("subcode"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(subcodePropertyTree!= null):((subcodePropertyTree == null)||(!subcodePropertyTree.isLeaf())))) {
this.subcode = ((_other.subcode == null)?null:_other.subcode.newCopyBuilder(this, subcodePropertyTree, _propertyTreeUse));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Subcode >_P init(final _P _product) {
_product.value = this.value;
_product.subcode = ((this.subcode == null)?null:this.subcode.build());
return _product;
}
/**
* Sets the new value of "value" (any previous value will be replaced)
*
* @param value
* New value of the "value" property.
*/
public Subcode.Builder<_B> withValue(final QName value) {
this.value = value;
return this;
}
/**
* Sets the new value of "subcode" (any previous value will be replaced)
*
* @param subcode
* New value of the "subcode" property.
*/
public Subcode.Builder<_B> withSubcode(final Subcode subcode) {
this.subcode = ((subcode == null)?null:new Subcode.Builder>(this, subcode, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "subcode" property.
* Use {@link org.w3.soap.Subcode.Builder#end()} to return to the current builder.
*
* @return
* A new builder to build the value of the "subcode" property.
* Use {@link org.w3.soap.Subcode.Builder#end()} to return to the current builder.
*/
public Subcode.Builder extends Subcode.Builder<_B>> withSubcode() {
if (this.subcode!= null) {
return this.subcode;
}
return this.subcode = new Subcode.Builder>(this, null, false);
}
@Override
public Subcode build() {
if (_storedValue == null) {
return this.init(new Subcode());
} else {
return ((Subcode) _storedValue);
}
}
public Subcode.Builder<_B> copyOf(final Subcode _other) {
_other.copyTo(this);
return this;
}
public Subcode.Builder<_B> copyOf(final Subcode.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Subcode.Selector
{
Select() {
super(null, null, null);
}
public static Subcode.Select _root() {
return new Subcode.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> value = null;
private Subcode.Selector> subcode = 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.value!= null) {
products.put("value", this.value.init());
}
if (this.subcode!= null) {
products.put("subcode", this.subcode.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> value() {
return ((this.value == null)?this.value = new com.kscs.util.jaxb.Selector>(this._root, this, "value"):this.value);
}
public Subcode.Selector> subcode() {
return ((this.subcode == null)?this.subcode = new Subcode.Selector>(this._root, this, "subcode"):this.subcode);
}
}
}