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

org.w3.soap.Body 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.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
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;
import org.w3c.dom.Element;


/**
 * 

Java class for Body complex type. * *

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

 * <complexType name="Body">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <anyAttribute processContents='lax' namespace='##other'/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Body", propOrder = { "any" }) public class Body { @XmlAnyElement(lax = true) protected List any; @XmlAnyAttribute private Map otherAttributes = new HashMap(); /** * Gets the value of the any 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 any property. * *

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

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Element } * {@link Object } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * *

* the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map getOtherAttributes() { return otherAttributes; } /** * 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 Body.Builder<_B> _other) { } public<_B >Body.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Body.Builder<_B>(_parentBuilder, this, true); } public Body.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Body.Builder builder() { return new Body.Builder(null, null, false); } public static<_B >Body.Builder<_B> copyOf(final Body _other) { final Body.Builder<_B> _newBuilder = new Body.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 Body.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { } public<_B >Body.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Body.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Body.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Body.Builder<_B> copyOf(final Body _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Body.Builder<_B> _newBuilder = new Body.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Body.Builder copyExcept(final Body _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Body.Builder copyOnly(final Body _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Body _storedValue; private List any; public Builder(final _B _parentBuilder, final Body _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Body _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Body >_P init(final _P _product) { if (this.any!= null) { final List any = new ArrayList(this.any.size()); for (Buildable _item: this.any) { any.add(((Object) _item.build())); } _product.any = any; } return _product; } /** * Adds the given items to the value of "any" * * @param any * Items to add to the value of the "any" property */ public Body.Builder<_B> addAny(final Iterable any) { if (any!= null) { if (this.any == null) { this.any = new ArrayList(); } for (Object _item: any) { this.any.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Sets the new value of "any" (any previous value will be replaced) * * @param any * New value of the "any" property. */ public Body.Builder<_B> withAny(final Iterable any) { if (this.any!= null) { this.any.clear(); } return addAny(any); } /** * Adds the given items to the value of "any" * * @param any * Items to add to the value of the "any" property */ public Body.Builder<_B> addAny(Object... any) { addAny(Arrays.asList(any)); return this; } /** * Sets the new value of "any" (any previous value will be replaced) * * @param any * New value of the "any" property. */ public Body.Builder<_B> withAny(Object... any) { withAny(Arrays.asList(any)); return this; } @Override public Body build() { if (_storedValue == null) { return this.init(new Body()); } else { return ((Body) _storedValue); } } public Body.Builder<_B> copyOf(final Body _other) { _other.copyTo(this); return this; } public Body.Builder<_B> copyOf(final Body.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Body.Selector { Select() { super(null, null, null); } public static Body.Select _root() { return new Body.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> any = 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.any!= null) { products.put("any", this.any.init()); } return products; } public com.kscs.util.jaxb.Selector> any() { return ((this.any == null)?this.any = new com.kscs.util.jaxb.Selector>(this._root, this, "any"):this.any); } } }