Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.opendope.questions;
  
  import java.util.List;

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element name="free" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="fixed" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="item" maxOccurs="unbounded">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
                             <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
                           </sequence>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
                 <attribute name="canSelectMany" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "free",
     "fixed"
 })
 @XmlRootElement(name = "response")
 public class Response {
 
     protected Response.Free free;
     protected Response.Fixed fixed;

    
Gets the value of the free property.

Returns:
possible object is
 
     public Response.Free getFree() {
         return ;
     }

    
Sets the value of the free property.

Parameters:
value allowed object is
 
     public void setFree(Response.Free value) {
         this. = value;
     }

    
Gets the value of the fixed property.

Returns:
possible object is
    public Response.Fixed getFixed() {
        return ;
    }

    
Sets the value of the fixed property.

Parameters:
value allowed object is
    public void setFixed(Response.Fixed value) {
        this. = value;
    }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="item" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute name="canSelectMany" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "item"
    })
    public static class Fixed {
        @XmlElement(required = true)
        protected List<Response.Fixed.Itemitem;
        @XmlAttribute
        protected Boolean canSelectMany;

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

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

    getItem().add(newItem);
 

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

        public List<Response.Fixed.ItemgetItem() {
            if ( == null) {
                 = new ArrayList<Response.Fixed.Item>();
            }
            return this.;
        }

        
Gets the value of the canSelectMany property.

Returns:
possible object is
        public Boolean isCanSelectMany() {
            return ;
        }

        
Sets the value of the canSelectMany property.

Parameters:
value allowed object is
        public void setCanSelectMany(Boolean value) {
            this. = value;
        }


        

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
        @XmlType(name = "", propOrder = {
            "label",
            "value"
        })
        public static class Item {
            @XmlElement(required = true)
            protected String label;
            @XmlElement(required = true)
            protected String value;

            
Gets the value of the label property.

Returns:
possible object is
            public String getLabel() {
                return ;
            }

            
Sets the value of the label property.

Parameters:
value allowed object is
            public void setLabel(String value) {
                this. = value;
            }

            
Gets the value of the value property.

Returns:
possible object is
            public String getValue() {
                return ;
            }

            
Sets the value of the value property.

Parameters:
value allowed object is
            public void setValue(String value) {
                this. = value;
            }
        }
    }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "")
    public static class Free {
    }
New to GrepCode? Check out our FAQ X