org.ota.shared
Class OperationSchedulePlusCharge

java.lang.Object
  extended by org.ota.shared.OperationSchedule
      extended by org.ota.shared.OperationSchedulePlusCharge
Direct Known Subclasses:
OperationSchedulesPlusCharge.OperationSchedule, TourInformation.Departures.DepartureSchedule

public class OperationSchedulePlusCharge
extends OperationSchedule

This allows a charge to be associated with operating times (e.g. a golf tee time may be more expensive during peak hours v. off peak hours). 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="OperationSchedulePlusChargeType">
   <xs:complexContent>
     <xs:extension base="ns:OperationScheduleType">
       <xs:sequence>
         <xs:element type="ns:FeeType" name="Charge" minOccurs="0" maxOccurs="5"/>
       </xs:sequence>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ota.shared.OperationSchedule
OperationSchedule.OperationTimes
 
Constructor Summary
OperationSchedulePlusCharge()
           
 
Method Summary
 void addCharge(Fee item)
          Add a 'Charge' element item.
 void clearCharges()
          Remove all 'Charge' element items.
 Fee getCharge(int index)
          Get 'Charge' element item by position.
 java.util.List<Fee> getCharges()
          Get the list of 'Charge' element items.
 void setCharges(java.util.List<Fee> list)
          Set the list of 'Charge' element items.
 int sizeCharges()
          Get the number of 'Charge' element items.
 
Methods inherited from class org.ota.shared.OperationSchedule
getDateTimeSpanGroup, getOperationTimes, setDateTimeSpanGroup, setOperationTimes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSchedulePlusCharge

public OperationSchedulePlusCharge()
Method Detail

getCharges

public java.util.List<Fee> getCharges()
Get the list of 'Charge' element items. Cost associated with an amenity.

Returns:
list

setCharges

public void setCharges(java.util.List<Fee> list)
Set the list of 'Charge' element items. Cost associated with an amenity.

Parameters:
list -

sizeCharges

public int sizeCharges()
Get the number of 'Charge' element items.

Returns:
count

addCharge

public void addCharge(Fee item)
Add a 'Charge' element item.

Parameters:
item -

getCharge

public Fee getCharge(int index)
Get 'Charge' element item by position.

Parameters:
index -
Returns:
item

clearCharges

public void clearCharges()
Remove all 'Charge' element items.