org.ota.dynamicpkg
Class AirComponent

java.lang.Object
  extended by org.ota.dynamicpkg.AirComponent

public class AirComponent
extends java.lang.Object

An air trip that is part of the dynamic package. 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="AirComponentType">
   <xs:sequence>
     <xs:element type="ns:AirItineraryType" name="AirItinerary" minOccurs="0"/>
     <xs:element name="AirItineraryPricingInfo" minOccurs="0">
       <!-- Reference to inner class AirItineraryPricingInfo -->
     </xs:element>
     <xs:element type="ns:FreeTextType" name="Notes" minOccurs="0" maxOccurs="5"/>
     <xs:element name="TicketingInfo" minOccurs="0">
       <!-- Reference to inner class TicketingInfo -->
     </xs:element>
     <xs:element name="BookingReferenceID" minOccurs="0">
       <!-- Reference to inner class BookingReferenceID -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:DynamicPkgComponentGroup"/>
   <xs:attribute type="xs:dateTime" use="optional" name="CreateDateTime"/>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class AirComponent.AirItineraryPricingInfo
          Pricing Information for an Air Itinerary.
static class AirComponent.BookingReferenceID
          This is used for PNR record locator.
static class AirComponent.TicketingInfo
          Container for TicketingInfoRS_Type.
 
Constructor Summary
AirComponent()
           
 
Method Summary
 void addNote(FreeText item)
          Add a 'Notes' element item.
 void clearNotes()
          Remove all 'Notes' element items.
 AirItinerary getAirItinerary()
          Get the 'AirItinerary' element value.
 AirComponent.AirItineraryPricingInfo getAirItineraryPricingInfo()
          Get the 'AirItineraryPricingInfo' element value.
 AirComponent.BookingReferenceID getBookingReferenceID()
          Get the 'BookingReferenceID' element value.
 java.util.Date getCreateDateTime()
          Get the 'CreateDateTime' attribute value.
 DynamicPkgComponentGroup getDynamicPkgComponentGroup()
          Get the 'DynamicPkgComponentGroup' attributeGroup value.
 FreeText getNote(int index)
          Get 'Notes' element item by position.
 java.util.List<FreeText> getNotes()
          Get the list of 'Notes' element items.
 AirComponent.TicketingInfo getTicketingInfo()
          Get the 'TicketingInfo' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 void setAirItinerary(AirItinerary airItinerary)
          Set the 'AirItinerary' element value.
 void setAirItineraryPricingInfo(AirComponent.AirItineraryPricingInfo airItineraryPricingInfo)
          Set the 'AirItineraryPricingInfo' element value.
 void setBookingReferenceID(AirComponent.BookingReferenceID bookingReferenceID)
          Set the 'BookingReferenceID' element value.
 void setCreateDateTime(java.util.Date createDateTime)
          Set the 'CreateDateTime' attribute value.
 void setDynamicPkgComponentGroup(DynamicPkgComponentGroup dynamicPkgComponentGroup)
          Set the 'DynamicPkgComponentGroup' attributeGroup value.
 void setNotes(java.util.List<FreeText> list)
          Set the list of 'Notes' element items.
 void setTicketingInfo(AirComponent.TicketingInfo ticketingInfo)
          Set the 'TicketingInfo' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 int sizeNotes()
          Get the number of 'Notes' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirComponent

public AirComponent()
Method Detail

getAirItinerary

public AirItinerary getAirItinerary()
Get the 'AirItinerary' element value. Specifies the origin and destination of the traveler. Attributes: DirectionInd - A directional indicator that identifies a type of air booking, either one-way, round-trip, or open-jaw with the enumeration of (OneWay | RT | OpenJaw) respectively. ActionCode - Indicates the status of the booking, such as OK or Wait-List. NumberInParty - Indicates the traveler count.

Returns:
value

setAirItinerary

public void setAirItinerary(AirItinerary airItinerary)
Set the 'AirItinerary' element value. Specifies the origin and destination of the traveler. Attributes: DirectionInd - A directional indicator that identifies a type of air booking, either one-way, round-trip, or open-jaw with the enumeration of (OneWay | RT | OpenJaw) respectively. ActionCode - Indicates the status of the booking, such as OK or Wait-List. NumberInParty - Indicates the traveler count.

Parameters:
airItinerary -

getAirItineraryPricingInfo

public AirComponent.AirItineraryPricingInfo getAirItineraryPricingInfo()
Get the 'AirItineraryPricingInfo' element value.

Returns:
value

setAirItineraryPricingInfo

public void setAirItineraryPricingInfo(AirComponent.AirItineraryPricingInfo airItineraryPricingInfo)
Set the 'AirItineraryPricingInfo' element value.

Parameters:
airItineraryPricingInfo -

getNotes

public java.util.List<FreeText> getNotes()
Get the list of 'Notes' element items. Provides for free form descriptive information for the priced itinerary.

Returns:
list

setNotes

public void setNotes(java.util.List<FreeText> list)
Set the list of 'Notes' element items. Provides for free form descriptive information for the priced itinerary.

Parameters:
list -

sizeNotes

public int sizeNotes()
Get the number of 'Notes' element items.

Returns:
count

addNote

public void addNote(FreeText item)
Add a 'Notes' element item.

Parameters:
item -

getNote

public FreeText getNote(int index)
Get 'Notes' element item by position.

Parameters:
index -
Returns:
item

clearNotes

public void clearNotes()
Remove all 'Notes' element items.


getTicketingInfo

public AirComponent.TicketingInfo getTicketingInfo()
Get the 'TicketingInfo' element value.

Returns:
value

setTicketingInfo

public void setTicketingInfo(AirComponent.TicketingInfo ticketingInfo)
Set the 'TicketingInfo' element value.

Parameters:
ticketingInfo -

getBookingReferenceID

public AirComponent.BookingReferenceID getBookingReferenceID()
Get the 'BookingReferenceID' element value.

Returns:
value

setBookingReferenceID

public void setBookingReferenceID(AirComponent.BookingReferenceID bookingReferenceID)
Set the 'BookingReferenceID' element value.

Parameters:
bookingReferenceID -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

getDynamicPkgComponentGroup

public DynamicPkgComponentGroup getDynamicPkgComponentGroup()
Get the 'DynamicPkgComponentGroup' attributeGroup value. Specifies the action being requested and/or the status of the air component as well as a reference number for a query and the length of time starting at the create time for which the component will be held.

Returns:
value

setDynamicPkgComponentGroup

public void setDynamicPkgComponentGroup(DynamicPkgComponentGroup dynamicPkgComponentGroup)
Set the 'DynamicPkgComponentGroup' attributeGroup value. Specifies the action being requested and/or the status of the air component as well as a reference number for a query and the length of time starting at the create time for which the component will be held.

Parameters:
dynamicPkgComponentGroup -

getCreateDateTime

public java.util.Date getCreateDateTime()
Get the 'CreateDateTime' attribute value. The date and time the air component was created.

Returns:
value

setCreateDateTime

public void setCreateDateTime(java.util.Date createDateTime)
Set the 'CreateDateTime' attribute value. The date and time the air component was created.

Parameters:
createDateTime -