org.ota.pkg
Class ExtrasCore

java.lang.Object
  extended by org.ota.pkg.ExtrasCore
Direct Known Subclasses:
Extras, ExtrasInfo

public class ExtrasCore
extends java.lang.Object

Describes an optional service which is not included in the standard package but may be booked in addition. 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="ExtrasCoreType">
   <xs:sequence>
     <xs:element name="SubCategory" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:OptionalCodeOptionalNameGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
   <xs:attribute type="xs:string" use="optional" name="Code"/>
   <xs:attribute type="xs:string" use="optional" name="Type"/>
   <xs:attribute type="xs:int" use="optional" name="Quantity"/>
   <xs:attribute type="xs:string" use="optional" name="GroupCode"/>
   <xs:attribute type="xs:string" use="optional" name="Name"/>
   <xs:attribute type="xs:string" use="optional" name="ListOfInventoryItemRPH"/>
   <xs:attribute type="xs:string" use="optional" name="ListofRoomRPH"/>
 </xs:complexType>
 


Constructor Summary
ExtrasCore()
           
 
Method Summary
 void addSubCategory(OptionalCodeOptionalNameGroup item)
          Add a 'SubCategory' element item.
 void clearSubCategories()
          Remove all 'SubCategory' element items.
 java.lang.String getCode()
          Get the 'Code' attribute value.
 java.lang.String getGroupCode()
          Get the 'GroupCode' attribute value.
 java.lang.String getListOfInventoryItemRPH()
          Get the 'ListOfInventoryItemRPH' attribute value.
 java.lang.String getListofRoomRPH()
          Get the 'ListofRoomRPH' attribute value.
 java.lang.String getName()
          Get the 'Name' attribute value.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 java.util.List<OptionalCodeOptionalNameGroup> getSubCategories()
          Get the list of 'SubCategory' element items.
 OptionalCodeOptionalNameGroup getSubCategory(int index)
          Get 'SubCategory' element item by position.
 java.lang.String getType()
          Get the 'Type' attribute value.
 void setCode(java.lang.String code)
          Set the 'Code' attribute value.
 void setGroupCode(java.lang.String groupCode)
          Set the 'GroupCode' attribute value.
 void setListOfInventoryItemRPH(java.lang.String listOfInventoryItemRPH)
          Set the 'ListOfInventoryItemRPH' attribute value.
 void setListofRoomRPH(java.lang.String listofRoomRPH)
          Set the 'ListofRoomRPH' attribute value.
 void setName(java.lang.String name)
          Set the 'Name' attribute value.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setSubCategories(java.util.List<OptionalCodeOptionalNameGroup> list)
          Set the list of 'SubCategory' element items.
 void setType(java.lang.String type)
          Set the 'Type' attribute value.
 int sizeSubCategories()
          Get the number of 'SubCategory' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtrasCore

public ExtrasCore()
Method Detail

getSubCategories

public java.util.List<OptionalCodeOptionalNameGroup> getSubCategories()
Get the list of 'SubCategory' element items. Identifies a sub-category of Extra, for example Large, Medium or Small Frame for a Mountain Bike Extra or Vehicle Type for a Car Rental extra.

Returns:
list

setSubCategories

public void setSubCategories(java.util.List<OptionalCodeOptionalNameGroup> list)
Set the list of 'SubCategory' element items. Identifies a sub-category of Extra, for example Large, Medium or Small Frame for a Mountain Bike Extra or Vehicle Type for a Car Rental extra.

Parameters:
list -

sizeSubCategories

public int sizeSubCategories()
Get the number of 'SubCategory' element items.

Returns:
count

addSubCategory

public void addSubCategory(OptionalCodeOptionalNameGroup item)
Add a 'SubCategory' element item.

Parameters:
item -

getSubCategory

public OptionalCodeOptionalNameGroup getSubCategory(int index)
Get 'SubCategory' element item by position.

Parameters:
index -
Returns:
item

clearSubCategories

public void clearSubCategories()
Remove all 'SubCategory' element items.


getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Parameters:
RPH -

getCode

public java.lang.String getCode()
Get the 'Code' attribute value. Code to uniquely identify an extra.

Returns:
value

setCode

public void setCode(java.lang.String code)
Set the 'Code' attribute value. Code to uniquely identify an extra.

Parameters:
code -

getType

public java.lang.String getType()
Get the 'Type' attribute value. A one to three character code denoting the type of an Extra, for example 'C' for car hire, 'SKI' for Ski extras. Allocated by the provider.

Returns:
value

setType

public void setType(java.lang.String type)
Set the 'Type' attribute value. A one to three character code denoting the type of an Extra, for example 'C' for car hire, 'SKI' for Ski extras. Allocated by the provider.

Parameters:
type -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. The quantity of an extra being booked. A value of zero may be used to remove an automatic or previously selected extra.

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. The quantity of an extra being booked. A value of zero may be used to remove an automatic or previously selected extra.

Parameters:
quantity -

getGroupCode

public java.lang.String getGroupCode()
Get the 'GroupCode' attribute value. A code which links two or more Extras together, enabling a rule to be applied to all group members e.g. only one of the group may be booked, or any combination.

Returns:
value

setGroupCode

public void setGroupCode(java.lang.String groupCode)
Set the 'GroupCode' attribute value. A code which links two or more Extras together, enabling a rule to be applied to all group members e.g. only one of the group may be booked, or any combination.

Parameters:
groupCode -

getName

public java.lang.String getName()
Get the 'Name' attribute value. The name of an extra being.

Returns:
value

setName

public void setName(java.lang.String name)
Set the 'Name' attribute value. The name of an extra being.

Parameters:
name -

getListOfInventoryItemRPH

public java.lang.String getListOfInventoryItemRPH()
Get the 'ListOfInventoryItemRPH' attribute value. One or more pointers to the Inventory Item(s) with which an extra may be booked.

Returns:
value

setListOfInventoryItemRPH

public void setListOfInventoryItemRPH(java.lang.String listOfInventoryItemRPH)
Set the 'ListOfInventoryItemRPH' attribute value. One or more pointers to the Inventory Item(s) with which an extra may be booked.

Parameters:
listOfInventoryItemRPH -

getListofRoomRPH

public java.lang.String getListofRoomRPH()
Get the 'ListofRoomRPH' attribute value. One or more pointers to the room(s) with which an extra may be booked.

Returns:
value

setListofRoomRPH

public void setListofRoomRPH(java.lang.String listofRoomRPH)
Set the 'ListofRoomRPH' attribute value. One or more pointers to the room(s) with which an extra may be booked.

Parameters:
listofRoomRPH -