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

org.w3.soap.Fault Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
//
// 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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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="Code" type="{http://www.w3.org/2003/05/soap-envelope}faultcode"/>
 *         <element name="Reason" type="{http://www.w3.org/2003/05/soap-envelope}faultreason"/>
 *         <element name="Node" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="Role" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="Detail" type="{http://www.w3.org/2003/05/soap-envelope}detail" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Fault", propOrder = { "code", "reason", "node", "role", "detail" }) public class Fault { @XmlElement(name = "Code", required = true) protected Faultcode code; @XmlElement(name = "Reason", required = true) protected Faultreason reason; @XmlElement(name = "Node") @XmlSchemaType(name = "anyURI") protected String node; @XmlElement(name = "Role") @XmlSchemaType(name = "anyURI") protected String role; @XmlElement(name = "Detail") protected Detail detail; /** * Gets the value of the code property. * * @return * possible object is * {@link Faultcode } * */ public Faultcode getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link Faultcode } * */ public void setCode(Faultcode value) { this.code = value; } /** * Gets the value of the reason property. * * @return * possible object is * {@link Faultreason } * */ public Faultreason getReason() { return reason; } /** * Sets the value of the reason property. * * @param value * allowed object is * {@link Faultreason } * */ public void setReason(Faultreason value) { this.reason = value; } /** * Gets the value of the node property. * * @return * possible object is * {@link String } * */ public String getNode() { return node; } /** * Sets the value of the node property. * * @param value * allowed object is * {@link String } * */ public void setNode(String value) { this.node = value; } /** * Gets the value of the role property. * * @return * possible object is * {@link String } * */ public String getRole() { return role; } /** * Sets the value of the role property. * * @param value * allowed object is * {@link String } * */ public void setRole(String value) { this.role = 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.code = ((this.code == null)?null:this.code.newCopyBuilder(_other)); _other.reason = ((this.reason == null)?null:this.reason.newCopyBuilder(_other)); _other.node = this.node; _other.role = this.role; _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 codePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("code")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(codePropertyTree!= null):((codePropertyTree == null)||(!codePropertyTree.isLeaf())))) { _other.code = ((this.code == null)?null:this.code.newCopyBuilder(_other, codePropertyTree, _propertyTreeUse)); } final PropertyTree reasonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("reason")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(reasonPropertyTree!= null):((reasonPropertyTree == null)||(!reasonPropertyTree.isLeaf())))) { _other.reason = ((this.reason == null)?null:this.reason.newCopyBuilder(_other, reasonPropertyTree, _propertyTreeUse)); } final PropertyTree nodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("node")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nodePropertyTree!= null):((nodePropertyTree == null)||(!nodePropertyTree.isLeaf())))) { _other.node = this.node; } final PropertyTree rolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("role")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(rolePropertyTree!= null):((rolePropertyTree == null)||(!rolePropertyTree.isLeaf())))) { _other.role = this.role; } 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 Faultcode.Builder> code; private Faultreason.Builder> reason; private String node; private String role; 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.code = ((_other.code == null)?null:_other.code.newCopyBuilder(this)); this.reason = ((_other.reason == null)?null:_other.reason.newCopyBuilder(this)); this.node = _other.node; this.role = _other.role; 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 codePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("code")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(codePropertyTree!= null):((codePropertyTree == null)||(!codePropertyTree.isLeaf())))) { this.code = ((_other.code == null)?null:_other.code.newCopyBuilder(this, codePropertyTree, _propertyTreeUse)); } final PropertyTree reasonPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("reason")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(reasonPropertyTree!= null):((reasonPropertyTree == null)||(!reasonPropertyTree.isLeaf())))) { this.reason = ((_other.reason == null)?null:_other.reason.newCopyBuilder(this, reasonPropertyTree, _propertyTreeUse)); } final PropertyTree nodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("node")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nodePropertyTree!= null):((nodePropertyTree == null)||(!nodePropertyTree.isLeaf())))) { this.node = _other.node; } final PropertyTree rolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("role")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(rolePropertyTree!= null):((rolePropertyTree == null)||(!rolePropertyTree.isLeaf())))) { this.role = _other.role; } 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.code = ((this.code == null)?null:this.code.build()); _product.reason = ((this.reason == null)?null:this.reason.build()); _product.node = this.node; _product.role = this.role; _product.detail = ((this.detail == null)?null:this.detail.build()); return _product; } /** * Sets the new value of "code" (any previous value will be replaced) * * @param code * New value of the "code" property. */ public Fault.Builder<_B> withCode(final Faultcode code) { this.code = ((code == null)?null:new Faultcode.Builder>(this, code, false)); return this; } /** * Returns a new builder to build the value of the "code" property (replacing previous value). * Use {@link org.w3.soap.Faultcode.Builder#end()} to return to the current builder. * * @return * A new builder to build the value of the "code" property. * Use {@link org.w3.soap.Faultcode.Builder#end()} to return to the current builder. */ public Faultcode.Builder> withCode() { return this.code = new Faultcode.Builder>(this, null, false); } /** * Sets the new value of "reason" (any previous value will be replaced) * * @param reason * New value of the "reason" property. */ public Fault.Builder<_B> withReason(final Faultreason reason) { this.reason = ((reason == null)?null:new Faultreason.Builder>(this, reason, false)); return this; } /** * Returns a new builder to build the value of the "reason" property (replacing previous value). * Use {@link org.w3.soap.Faultreason.Builder#end()} to return to the current builder. * * @return * A new builder to build the value of the "reason" property. * Use {@link org.w3.soap.Faultreason.Builder#end()} to return to the current builder. */ public Faultreason.Builder> withReason() { return this.reason = new Faultreason.Builder>(this, null, false); } /** * Sets the new value of "node" (any previous value will be replaced) * * @param node * New value of the "node" property. */ public Fault.Builder<_B> withNode(final String node) { this.node = node; return this; } /** * Sets the new value of "role" (any previous value will be replaced) * * @param role * New value of the "role" property. */ public Fault.Builder<_B> withRole(final String role) { this.role = role; 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 a new builder to build the value of the "detail" property (replacing previous value). * Use {@link org.w3.soap.Detail.Builder#end()} to return to the current builder. * * @return * A new builder to build the value of the "detail" property. * Use {@link org.w3.soap.Detail.Builder#end()} to return to the current builder. */ public Detail.Builder> withDetail() { 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 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 Faultcode.Selector> code = null; private Faultreason.Selector> reason = null; private com.kscs.util.jaxb.Selector> node = null; private com.kscs.util.jaxb.Selector> role = 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.code!= null) { products.put("code", this.code.init()); } if (this.reason!= null) { products.put("reason", this.reason.init()); } if (this.node!= null) { products.put("node", this.node.init()); } if (this.role!= null) { products.put("role", this.role.init()); } if (this.detail!= null) { products.put("detail", this.detail.init()); } return products; } public Faultcode.Selector> code() { return ((this.code == null)?this.code = new Faultcode.Selector>(this._root, this, "code"):this.code); } public Faultreason.Selector> reason() { return ((this.reason == null)?this.reason = new Faultreason.Selector>(this._root, this, "reason"):this.reason); } public com.kscs.util.jaxb.Selector> node() { return ((this.node == null)?this.node = new com.kscs.util.jaxb.Selector>(this._root, this, "node"):this.node); } public com.kscs.util.jaxb.Selector> role() { return ((this.role == null)?this.role = new com.kscs.util.jaxb.Selector>(this._root, this, "role"):this.role); } 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