Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.talend.esb.sam._2011._03.common;
  
  import java.util.List;

Java class for customInfoType complex type.

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

 <complexType name="customInfoType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="item" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="key" 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>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "customInfoType", propOrder = {
     "item"
 })
 public class CustomInfoType {
 
     protected List<CustomInfoType.Itemitem;

    
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<CustomInfoType.ItemgetItem() {
         if ( == null) {
              = new ArrayList<CustomInfoType.Item>();
         }
         return this.;
     }


    

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="key" 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 = {
        "key",
        "value"
    })
    public static class Item {
        @XmlElement(required = true)
        protected String key;
        @XmlElement(required = true)
        protected String value;

        
Gets the value of the key property.

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

        
Sets the value of the key property.

Parameters:
value allowed object is
        public void setKey(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;
        }
    }
New to GrepCode? Check out our FAQ X