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

org.xmlsoap.schemas.soap.envelope.Fault 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.xmlsoap.schemas.soap.envelope;

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.XmlSchemaType;
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;


/**
 * 
 * 	    Fault reporting structure
 * 	  
 * 
 * 

Java class for Fault complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Fault">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="faultcode" type="{http://www.w3.org/2001/XMLSchema}QName"/>
 *         <element name="faultstring" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="faultactor" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="detail" type="{http://schemas.xmlsoap.org/soap/envelope/}detail" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Fault", propOrder = { "faultcode", "faultstring", "faultactor", "detail" }) public class Fault { @XmlElement(required = true) protected QName faultcode; @XmlElement(required = true) protected String faultstring; @XmlSchemaType(name = "anyURI") protected String faultactor; protected Detail detail; /** * Gets the value of the faultcode property. * * @return * possible object is * {@link QName } * */ public QName getFaultcode() { return faultcode; } /** * Sets the value of the faultcode property. * * @param value * allowed object is * {@link QName } * */ public void setFaultcode(QName value) { this.faultcode = value; } /** * Gets the value of the faultstring property. * * @return * possible object is * {@link String } * */ public String getFaultstring() { return faultstring; } /** * Sets the value of the faultstring property. * * @param value * allowed object is * {@link String } * */ public void setFaultstring(String value) { this.faultstring = value; } /** * Gets the value of the faultactor property. * * @return * possible object is * {@link String } * */ public String getFaultactor() { return faultactor; } /** * Sets the value of the faultactor property. * * @param value * allowed object is * {@link String } * */ public void setFaultactor(String value) { this.faultactor = value; } /** * Gets the value of the detail property. * * @return * possible object is * {@link Detail } * */ public Detail getDetail() { return detail; } /** * Sets the value of the detail property. * * @param value * allowed object is * {@link Detail } * */ public void setDetail(Detail value) { this.detail = 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 Fault.Builder<_B> _other) { _other.faultcode = this.faultcode; _other.faultstring = this.faultstring; _other.faultactor = this.faultactor; _other.detail = ((this.detail == null)?null:this.detail.newCopyBuilder(_other)); } public<_B >Fault.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Fault.Builder<_B>(_parentBuilder, this, true); } public Fault.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Fault.Builder builder() { return new Fault.Builder(null, null, false); } public static<_B >Fault.Builder<_B> copyOf(final Fault _other) { final Fault.Builder<_B> _newBuilder = new Fault.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 Fault.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree faultcodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("faultcode")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(faultcodePropertyTree!= null):((faultcodePropertyTree == null)||(!faultcodePropertyTree.isLeaf())))) { _other.faultcode = this.faultcode; } final PropertyTree faultstringPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("faultstring")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(faultstringPropertyTree!= null):((faultstringPropertyTree == null)||(!faultstringPropertyTree.isLeaf())))) { _other.faultstring = this.faultstring; } final PropertyTree faultactorPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("faultactor")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(faultactorPropertyTree!= null):((faultactorPropertyTree == null)||(!faultactorPropertyTree.isLeaf())))) { _other.faultactor = this.faultactor; } final PropertyTree detailPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("detail")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(detailPropertyTree!= null):((detailPropertyTree == null)||(!detailPropertyTree.isLeaf())))) { _other.detail = ((this.detail == null)?null:this.detail.newCopyBuilder(_other, detailPropertyTree, _propertyTreeUse)); } } public<_B >Fault.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Fault.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Fault.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Fault.Builder<_B> copyOf(final Fault _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Fault.Builder<_B> _newBuilder = new Fault.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Fault.Builder copyExcept(final Fault _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Fault.Builder copyOnly(final Fault _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Fault _storedValue; private QName faultcode; private String faultstring; private String faultactor; private Detail.Builder> detail; public Builder(final _B _parentBuilder, final Fault _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.faultcode = _other.faultcode; this.faultstring = _other.faultstring; this.faultactor = _other.faultactor; this.detail = ((_other.detail == null)?null:_other.detail.newCopyBuilder(this)); } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Fault _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree faultcodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("faultcode")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(faultcodePropertyTree!= null):((faultcodePropertyTree == null)||(!faultcodePropertyTree.isLeaf())))) { this.faultcode = _other.faultcode; } final PropertyTree faultstringPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("faultstring")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(faultstringPropertyTree!= null):((faultstringPropertyTree == null)||(!faultstringPropertyTree.isLeaf())))) { this.faultstring = _other.faultstring; } final PropertyTree faultactorPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("faultactor")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(faultactorPropertyTree!= null):((faultactorPropertyTree == null)||(!faultactorPropertyTree.isLeaf())))) { this.faultactor = _other.faultactor; } final PropertyTree detailPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("detail")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(detailPropertyTree!= null):((detailPropertyTree == null)||(!detailPropertyTree.isLeaf())))) { this.detail = ((_other.detail == null)?null:_other.detail.newCopyBuilder(this, detailPropertyTree, _propertyTreeUse)); } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Fault >_P init(final _P _product) { _product.faultcode = this.faultcode; _product.faultstring = this.faultstring; _product.faultactor = this.faultactor; _product.detail = ((this.detail == null)?null:this.detail.build()); return _product; } /** * Sets the new value of "faultcode" (any previous value will be replaced) * * @param faultcode * New value of the "faultcode" property. */ public Fault.Builder<_B> withFaultcode(final QName faultcode) { this.faultcode = faultcode; return this; } /** * Sets the new value of "faultstring" (any previous value will be replaced) * * @param faultstring * New value of the "faultstring" property. */ public Fault.Builder<_B> withFaultstring(final String faultstring) { this.faultstring = faultstring; return this; } /** * Sets the new value of "faultactor" (any previous value will be replaced) * * @param faultactor * New value of the "faultactor" property. */ public Fault.Builder<_B> withFaultactor(final String faultactor) { this.faultactor = faultactor; return this; } /** * Sets the new value of "detail" (any previous value will be replaced) * * @param detail * New value of the "detail" property. */ public Fault.Builder<_B> withDetail(final Detail detail) { this.detail = ((detail == null)?null:new Detail.Builder>(this, detail, false)); return this; } /** * Returns the existing builder or a new builder to build the value of the "detail" * property. * Use {@link org.xmlsoap.schemas.soap.envelope.Detail.Builder#end()} to return to * the current builder. * * @return * A new builder to build the value of the "detail" property. * Use {@link org.xmlsoap.schemas.soap.envelope.Detail.Builder#end()} to return to * the current builder. */ public Detail.Builder> withDetail() { if (this.detail!= null) { return this.detail; } return this.detail = new Detail.Builder>(this, null, false); } @Override public Fault build() { if (_storedValue == null) { return this.init(new Fault()); } else { return ((Fault) _storedValue); } } public Fault.Builder<_B> copyOf(final Fault _other) { _other.copyTo(this); return this; } public Fault.Builder<_B> copyOf(final Fault.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Fault.Selector { Select() { super(null, null, null); } public static Fault.Select _root() { return new Fault.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> faultcode = null; private com.kscs.util.jaxb.Selector> faultstring = null; private com.kscs.util.jaxb.Selector> faultactor = null; private Detail.Selector> detail = 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.faultcode!= null) { products.put("faultcode", this.faultcode.init()); } if (this.faultstring!= null) { products.put("faultstring", this.faultstring.init()); } if (this.faultactor!= null) { products.put("faultactor", this.faultactor.init()); } if (this.detail!= null) { products.put("detail", this.detail.init()); } return products; } public com.kscs.util.jaxb.Selector> faultcode() { return ((this.faultcode == null)?this.faultcode = new com.kscs.util.jaxb.Selector>(this._root, this, "faultcode"):this.faultcode); } public com.kscs.util.jaxb.Selector> faultstring() { return ((this.faultstring == null)?this.faultstring = new com.kscs.util.jaxb.Selector>(this._root, this, "faultstring"):this.faultstring); } public com.kscs.util.jaxb.Selector> faultactor() { return ((this.faultactor == null)?this.faultactor = new com.kscs.util.jaxb.Selector>(this._root, this, "faultactor"):this.faultactor); } public Detail.Selector> detail() { return ((this.detail == null)?this.detail = new Detail.Selector>(this._root, this, "detail"):this.detail); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy