Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.soitoolkit.refapps.dealernetwork.startorderprocess.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="companyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="customerEmail" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="adress">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="street" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="postalCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="country" type="{http://www.w3.org/2001/XMLSchema}string"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="orderDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
         <element name="orderId" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <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",
     "companyName",
     "customerEmail",
     "adress",
     "orderDate",
     "orderId",
     "orderLines",
     "any"
 })
 @XmlRootElement(name = "startOrderProcess")
 public class StartOrderProcess {
 
     protected int customerId;
     @XmlElement(required = true)
     protected String uniqueCustomerReferenceId;
     @XmlElement(required = true)
     protected String companyName;
     @XmlElement(required = true)
     protected String customerEmail;
     @XmlElement(required = true)
     protected StartOrderProcess.Adress adress;
     @XmlElement(required = true)
     @XmlSchemaType(name = "dateTime")
     protected XMLGregorianCalendar orderDate;
     protected int orderId;
     @XmlElement(required = true)
    @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
        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 companyName property.

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

    
Sets the value of the companyName property.

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

    
Gets the value of the customerEmail property.

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

    
Sets the value of the customerEmail property.

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

    
Gets the value of the adress property.

Returns:
possible object is
    public StartOrderProcess.Adress getAdress() {
        return ;
    }

    
Sets the value of the adress property.

Parameters:
value allowed object is
    public void setAdress(StartOrderProcess.Adress 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 orderId property.
    public int getOrderId() {
        return ;
    }

    
Sets the value of the orderId property.
    public void setOrderId(int 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<StartOrderProcess.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="street" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="postalCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="country" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "street",
        "city",
        "postalCode",
        "country"
    })
    public static class Adress {
        @XmlElement(required = true)
        protected String street;
        @XmlElement(required = true)
        protected String city;
        @XmlElement(required = true)
        protected String postalCode;
        @XmlElement(required = true)
        protected String country;

        
Gets the value of the street property.

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

        
Sets the value of the street property.

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

        
Gets the value of the city property.

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

        
Sets the value of the city property.

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

        
Gets the value of the postalCode property.

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

        
Sets the value of the postalCode property.

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

        
Gets the value of the country property.

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

        
Sets the value of the country property.

Parameters:
value allowed object is
        public void setCountry(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">
       <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