Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.soitoolkit.refapps.dealernetwork.createorder.schema.v1;
  
  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">
       <sequence>
         <element name="customerId" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="uniqueCustomerReferenceId" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="orderDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
         <element name="orderLines" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="productId" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="quantity" type="{http://www.w3.org/2001/XMLSchema}int"/>
                   <element name="price" type="{urn:org.soitoolkit.refapps.dealernetwork.commontypes.schema:v1}MoneyType"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <any/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "customerId",
     "uniqueCustomerReferenceId",
     "orderDate",
     "orderLines",
     "any"
 })
 @XmlRootElement(name = "createOrder")
 public class CreateOrder {
 
     protected int customerId;
     @XmlElement(required = true)
     protected String uniqueCustomerReferenceId;
     @XmlElement(required = true)
     @XmlSchemaType(name = "dateTime")
     protected XMLGregorianCalendar orderDate;
     @XmlElement(required = true)
     protected List<CreateOrder.OrderLinesorderLines;
     @XmlAnyElement(lax = true)
     protected List<Objectany;

    
Gets the value of the customerId property.
 
     public int getCustomerId() {
         return ;
     }

    
Sets the value of the customerId property.
 
     public void setCustomerId(int value) {
         this. = value;
     }

    
Gets the value of the uniqueCustomerReferenceId property.

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

    
Sets the value of the uniqueCustomerReferenceId property.

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

    
Gets the value of the orderDate property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the orderDate property.

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

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

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

    getOrderLines().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<CreateOrder.OrderLines>();
        }
        return this.;
    }

    
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

    public List<ObjectgetAny() {
        if ( == null) {
             = new ArrayList<Object>();
        }
        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="productId" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="quantity" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="price" type="{urn:org.soitoolkit.refapps.dealernetwork.commontypes.schema:v1}MoneyType"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "productId",
        "quantity",
        "price"
    })
    public static class OrderLines {
        @XmlElement(required = true)
        protected String productId;
        protected int quantity;
        @XmlElement(required = true)
        protected MoneyType price;

        
Gets the value of the productId property.

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

        
Sets the value of the productId property.

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

        
Gets the value of the quantity property.
        public int getQuantity() {
            return ;
        }

        
Sets the value of the quantity property.
        public void setQuantity(int value) {
            this. = value;
        }

        
Gets the value of the price property.

Returns:
possible object is
        public MoneyType getPrice() {
            return ;
        }

        
Sets the value of the price property.

Parameters:
value allowed object is
        public void setPrice(MoneyType value) {
            this. = value;
        }
    }
New to GrepCode? Check out our FAQ X