Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.10-b140310.1920 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2014.10.07 at 03:51:15 PM EDT 
  //
  
  
  package org.apache.cxf.binding.corba.wsdl;
 
 import java.util.List;

Java class for union complex type.

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

 <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>
 
 
 @XmlType(name = "union", propOrder = {
     "unionbranch"
 })
 public class Union
     extends NamedType
 {
 
     @XmlElement(required = true)
     protected List<Unionbranchunionbranch;
     @XmlAttribute(name = "discriminator", required = true)
     protected QName discriminator;
     @XmlAttribute(name = "nillable")
     protected Boolean nillable;

    
Gets the value of the unionbranch 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 unionbranch property.

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

    getUnionbranch().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
     public List<UnionbranchgetUnionbranch() {
         if ( == null) {
              = new ArrayList<Unionbranch>();
         }
         return this.;
     }
 
     public boolean isSetUnionbranch() {
         return ((this.!= null)&&(!this..isEmpty()));
     }
 
     public void unsetUnionbranch() {
         this. = null;
     }

    
Gets the value of the discriminator property.

Returns:
possible object is
    public QName getDiscriminator() {
        return ;
    }

    
Sets the value of the discriminator property.

Parameters:
value allowed object is
    public void setDiscriminator(QName value) {
        this. = value;
    }
    public boolean isSetDiscriminator() {
        return (this.!= null);
    }

    
Gets the value of the nillable property.

Returns:
possible object is
    public boolean isNillable() {
        return ;
    }

    
Sets the value of the nillable property.

Parameters:
value allowed object is
    public void setNillable(boolean value) {
        this. = value;
    }
    public boolean isSetNillable() {
        return (this.!= null);
    }
    public void unsetNillable() {
        this. = null;
    }
New to GrepCode? Check out our FAQ X