org.w3.soap.Faultcode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oxalis-as4 Show documentation
Show all versions of oxalis-as4 Show documentation
Extension adding AS4 support to Oxalis
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.08.02 at 04:34:46 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 faultcode complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="faultcode">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Value" type="{http://www.w3.org/2003/05/soap-envelope}faultcodeEnum"/>
* <element name="Subcode" type="{http://www.w3.org/2003/05/soap-envelope}subcode" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "faultcode", propOrder = {
"value",
"subcode"
})
public class Faultcode {
@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 Faultcode.Builder<_B> _other) {
_other.value = this.value;
_other.subcode = ((this.subcode == null)?null:this.subcode.newCopyBuilder(_other));
}
public<_B >Faultcode.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Faultcode.Builder<_B>(_parentBuilder, this, true);
}
public Faultcode.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Faultcode.Builder builder() {
return new Faultcode.Builder(null, null, false);
}
public static<_B >Faultcode.Builder<_B> copyOf(final Faultcode _other) {
final Faultcode.Builder<_B> _newBuilder = new Faultcode.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 Faultcode.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 >Faultcode.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Faultcode.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Faultcode.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Faultcode.Builder<_B> copyOf(final Faultcode _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Faultcode.Builder<_B> _newBuilder = new Faultcode.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Faultcode.Builder copyExcept(final Faultcode _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Faultcode.Builder copyOnly(final Faultcode _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Faultcode _storedValue;
private QName value;
private Subcode.Builder> subcode;
public Builder(final _B _parentBuilder, final Faultcode _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 Faultcode _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 Faultcode >_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 Faultcode.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 Faultcode.Builder<_B> withSubcode(final Subcode subcode) {
this.subcode = ((subcode == null)?null:new Subcode.Builder>(this, subcode, false));
return this;
}
/**
* Returns a new builder to build the value of the "subcode" property (replacing previous value).
* 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 Faultcode.Builder<_B>> withSubcode() {
return this.subcode = new Subcode.Builder>(this, null, false);
}
@Override
public Faultcode build() {
if (_storedValue == null) {
return this.init(new Faultcode());
} else {
return ((Faultcode) _storedValue);
}
}
}
public static class Select
extends Faultcode.Selector
{
Select() {
super(null, null, null);
}
public static Faultcode.Select _root() {
return new Faultcode.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);
}
}
}