org.ota.shared
Class Orders

java.lang.Object
  extended by org.ota.shared.Orders

public class Orders
extends java.lang.Object

Provides the details of one or more orders. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OrdersType">
   <xs:sequence>
     <xs:element name="Order" minOccurs="0" maxOccurs="99">
       <!-- Reference to inner class Order -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="OrderType"/>
   <xs:attribute type="xs:string" use="optional" name="DiscountCode"/>
   <xs:attribute type="xs:string" use="optional" name="VendorPurchaseOrderID"/>
   <xs:attribute type="xs:string" use="optional" name="OrderID"/>
 </xs:complexType>
 


Nested Class Summary
static class Orders.Order
          Information pertaining to a specific order.
 
Constructor Summary
Orders()
           
 
Method Summary
 void addOrder(Orders.Order item)
          Add a 'Order' element item.
 void clearOrders()
          Remove all 'Order' element items.
 java.lang.String getDiscountCode()
          Get the 'DiscountCode' attribute value.
 java.lang.String getOrder()
          Get the 'OrderType' attribute value.
 Orders.Order getOrder(int index)
          Get 'Order' element item by position.
 java.lang.String getOrderID()
          Get the 'OrderID' attribute value.
 java.util.List<Orders.Order> getOrders()
          Get the list of 'Order' element items.
 java.lang.String getVendorPurchaseOrderID()
          Get the 'VendorPurchaseOrderID' attribute value.
 void setDiscountCode(java.lang.String discountCode)
          Set the 'DiscountCode' attribute value.
 void setOrder(java.lang.String order)
          Set the 'OrderType' attribute value.
 void setOrderID(java.lang.String orderID)
          Set the 'OrderID' attribute value.
 void setOrders(java.util.List<Orders.Order> list)
          Set the list of 'Order' element items.
 void setVendorPurchaseOrderID(java.lang.String vendorPurchaseOrderID)
          Set the 'VendorPurchaseOrderID' attribute value.
 int sizeOrders()
          Get the number of 'Order' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orders

public Orders()
Method Detail

getOrders

public java.util.List<Orders.Order> getOrders()
Get the list of 'Order' element items.

Returns:
list

setOrders

public void setOrders(java.util.List<Orders.Order> list)
Set the list of 'Order' element items.

Parameters:
list -

sizeOrders

public int sizeOrders()
Get the number of 'Order' element items.

Returns:
count

addOrder

public void addOrder(Orders.Order item)
Add a 'Order' element item.

Parameters:
item -

getOrder

public Orders.Order getOrder(int index)
Get 'Order' element item by position.

Parameters:
index -
Returns:
item

clearOrders

public void clearOrders()
Remove all 'Order' element items.


getOrder

public java.lang.String getOrder()
Get the 'OrderType' attribute value. Identifies the type of orders.

Returns:
value

setOrder

public void setOrder(java.lang.String order)
Set the 'OrderType' attribute value. Identifies the type of orders.

Parameters:
order -

getDiscountCode

public java.lang.String getDiscountCode()
Get the 'DiscountCode' attribute value. A discount code that applies to the orders.

Returns:
value

setDiscountCode

public void setDiscountCode(java.lang.String discountCode)
Set the 'DiscountCode' attribute value. A discount code that applies to the orders.

Parameters:
discountCode -

getVendorPurchaseOrderID

public java.lang.String getVendorPurchaseOrderID()
Get the 'VendorPurchaseOrderID' attribute value. The purchase order number of a sales intermediary.

Returns:
value

setVendorPurchaseOrderID

public void setVendorPurchaseOrderID(java.lang.String vendorPurchaseOrderID)
Set the 'VendorPurchaseOrderID' attribute value. The purchase order number of a sales intermediary.

Parameters:
vendorPurchaseOrderID -

getOrderID

public java.lang.String getOrderID()
Get the 'OrderID' attribute value. The identification number associated to the orders.

Returns:
value

setOrderID

public void setOrderID(java.lang.String orderID)
Set the 'OrderID' attribute value. The identification number associated to the orders.

Parameters:
orderID -