Union.java

//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
//


package org.apache.cxf.binding.corba.wsdl;

import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;


/**
 * <p>Java class for union complex type</p>.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>{@code
 * <complexType name="union">
 *   <complexContent>
 *     <extension base="{http://cxf.apache.org/bindings/corba}namedType">
 *       <sequence>
 *         <element name="unionbranch" type="{http://cxf.apache.org/bindings/corba}unionbranch" maxOccurs="unbounded"/>
 *       </sequence>
 *       <attribute name="discriminator" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" />
 *       <attribute name="nillable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * }</pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "union", namespace = "http://cxf.apache.org/bindings/corba", propOrder = {
    "unionbranch"
})
public class Union
    extends NamedType
{

    @XmlElement(namespace = "http://cxf.apache.org/bindings/corba", required = true)
    protected List<Unionbranch> unionbranch;
    @XmlAttribute(name = "discriminator", required = true)
    protected QName discriminator;
    @XmlAttribute(name = "nillable")
    protected Boolean nillable;

    /**
     * Gets the value of the unionbranch property.
     * 
     * <p>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 <CODE>set</CODE> method for the unionbranch property.</p>
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * </p>
     * <pre>
     * getUnionbranch().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Unionbranch }
     * </p>
     * 
     * 
     * @return
     *     The value of the unionbranch property.
     */
    public List<Unionbranch> getUnionbranch() {
        if (unionbranch == null) {
            unionbranch = new ArrayList<>();
        }
        return this.unionbranch;
    }

    public boolean isSetUnionbranch() {
        return ((this.unionbranch!= null)&&(!this.unionbranch.isEmpty()));
    }

    public void unsetUnionbranch() {
        this.unionbranch = null;
    }

    /**
     * Gets the value of the discriminator property.
     * 
     * @return
     *     possible object is
     *     {@link QName }
     *     
     */
    public QName getDiscriminator() {
        return discriminator;
    }

    /**
     * Sets the value of the discriminator property.
     * 
     * @param value
     *     allowed object is
     *     {@link QName }
     *     
     */
    public void setDiscriminator(QName value) {
        this.discriminator = value;
    }

    public boolean isSetDiscriminator() {
        return (this.discriminator!= null);
    }

    /**
     * Gets the value of the nillable property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isNillable() {
        return nillable;
    }

    /**
     * Sets the value of the nillable property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setNillable(boolean value) {
        this.nillable = value;
    }

    public boolean isSetNillable() {
        return (this.nillable!= null);
    }

    public void unsetNillable() {
        this.nillable = null;
    }

}