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

org.w3.soap.Detail 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.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 detail complex type. * *

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

 * <complexType name="detail">
 *   <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 = "detail", propOrder = { "any" }) public class Detail { @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 Object } * {@link Element } * * */ 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 Detail.Builder<_B> _other) { } public<_B >Detail.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Detail.Builder<_B>(_parentBuilder, this, true); } public Detail.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Detail.Builder builder() { return new Detail.Builder(null, null, false); } public static<_B >Detail.Builder<_B> copyOf(final Detail _other) { final Detail.Builder<_B> _newBuilder = new Detail.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 Detail.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { } public<_B >Detail.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Detail.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Detail.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Detail.Builder<_B> copyOf(final Detail _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Detail.Builder<_B> _newBuilder = new Detail.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Detail.Builder copyExcept(final Detail _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Detail.Builder copyOnly(final Detail _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Detail _storedValue; private List any; public Builder(final _B _parentBuilder, final Detail _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 Detail _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 Detail >_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 Detail.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 Detail.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 Detail.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 Detail.Builder<_B> withAny(Object... any) { withAny(Arrays.asList(any)); return this; } @Override public Detail build() { if (_storedValue == null) { return this.init(new Detail()); } else { return ((Detail) _storedValue); } } } public static class Select extends Detail.Selector { Select() { super(null, null, null); } public static Detail.Select _root() { return new Detail.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); } } }