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

org.w3.soap.Faultreason 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.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
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 com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;


/**
 * 

Java class for faultreason complex type. * *

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

 * <complexType name="faultreason">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Text" type="{http://www.w3.org/2003/05/soap-envelope}reasontext" maxOccurs="unbounded"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "faultreason", propOrder = { "text" }) public class Faultreason { @XmlElement(name = "Text", required = true) protected List text; /** * Gets the value of the text property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the text property. * *

* For example, to add a new item, do as follows: *

     *    getText().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reasontext } * * */ public List getText() { if (text == null) { text = new ArrayList(); } return this.text; } /** * 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 Faultreason.Builder<_B> _other) { if (this.text == null) { _other.text = null; } else { _other.text = new ArrayList>>(); for (Reasontext _item: this.text) { _other.text.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } public<_B >Faultreason.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Faultreason.Builder<_B>(_parentBuilder, this, true); } public Faultreason.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Faultreason.Builder builder() { return new Faultreason.Builder(null, null, false); } public static<_B >Faultreason.Builder<_B> copyOf(final Faultreason _other) { final Faultreason.Builder<_B> _newBuilder = new Faultreason.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 Faultreason.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree textPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("text")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(textPropertyTree!= null):((textPropertyTree == null)||(!textPropertyTree.isLeaf())))) { if (this.text == null) { _other.text = null; } else { _other.text = new ArrayList>>(); for (Reasontext _item: this.text) { _other.text.add(((_item == null)?null:_item.newCopyBuilder(_other, textPropertyTree, _propertyTreeUse))); } } } } public<_B >Faultreason.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Faultreason.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Faultreason.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Faultreason.Builder<_B> copyOf(final Faultreason _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Faultreason.Builder<_B> _newBuilder = new Faultreason.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Faultreason.Builder copyExcept(final Faultreason _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Faultreason.Builder copyOnly(final Faultreason _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Faultreason _storedValue; private List>> text; public Builder(final _B _parentBuilder, final Faultreason _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.text == null) { this.text = null; } else { this.text = new ArrayList>>(); for (Reasontext _item: _other.text) { this.text.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Faultreason _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree textPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("text")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(textPropertyTree!= null):((textPropertyTree == null)||(!textPropertyTree.isLeaf())))) { if (_other.text == null) { this.text = null; } else { this.text = new ArrayList>>(); for (Reasontext _item: _other.text) { this.text.add(((_item == null)?null:_item.newCopyBuilder(this, textPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Faultreason >_P init(final _P _product) { if (this.text!= null) { final List text = new ArrayList(this.text.size()); for (Reasontext.Builder> _item: this.text) { text.add(_item.build()); } _product.text = text; } return _product; } /** * Adds the given items to the value of "text" * * @param text * Items to add to the value of the "text" property */ public Faultreason.Builder<_B> addText(final Iterable text) { if (text!= null) { if (this.text == null) { this.text = new ArrayList>>(); } for (Reasontext _item: text) { this.text.add(new Reasontext.Builder>(this, _item, false)); } } return this; } /** * Sets the new value of "text" (any previous value will be replaced) * * @param text * New value of the "text" property. */ public Faultreason.Builder<_B> withText(final Iterable text) { if (this.text!= null) { this.text.clear(); } return addText(text); } /** * Adds the given items to the value of "text" * * @param text * Items to add to the value of the "text" property */ public Faultreason.Builder<_B> addText(Reasontext... text) { addText(Arrays.asList(text)); return this; } /** * Sets the new value of "text" (any previous value will be replaced) * * @param text * New value of the "text" property. */ public Faultreason.Builder<_B> withText(Reasontext... text) { withText(Arrays.asList(text)); return this; } /** * Returns a new builder to build an additional value of the "Text" property. * Use {@link org.w3.soap.Reasontext.Builder#end()} to return to the current * builder. * * @return * a new builder to build an additional value of the "Text" property. * Use {@link org.w3.soap.Reasontext.Builder#end()} to return to the current * builder. */ public Reasontext.Builder> addText() { if (this.text == null) { this.text = new ArrayList>>(); } final Reasontext.Builder> text_Builder = new Reasontext.Builder>(this, null, false); this.text.add(text_Builder); return text_Builder; } @Override public Faultreason build() { if (_storedValue == null) { return this.init(new Faultreason()); } else { return ((Faultreason) _storedValue); } } public Faultreason.Builder<_B> copyOf(final Faultreason _other) { _other.copyTo(this); return this; } public Faultreason.Builder<_B> copyOf(final Faultreason.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Faultreason.Selector { Select() { super(null, null, null); } public static Faultreason.Select _root() { return new Faultreason.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private Reasontext.Selector> text = 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.text!= null) { products.put("text", this.text.init()); } return products; } public Reasontext.Selector> text() { return ((this.text == null)?this.text = new Reasontext.Selector>(this._root, this, "text"):this.text); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy