org.ota.rail
Class AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey

java.lang.Object
  extended by org.ota.rail.Journey
      extended by org.ota.rail.AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey
Enclosing class:
AvailRS.OriginDestinationOptions.OriginDestinationOption

public static class AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey
extends Journey

Describes one specific route, detailing the origin and destination locations and a collection of journey segments that together create the full journey between these two locations. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Journey" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:JourneyType">
         <xs:sequence>
           <xs:element name="FareRPHs" minOccurs="0">
             <!-- Reference to inner class FareRPHs -->
           </xs:element>
           <xs:element name="JourneySegments">
             <xs:complexType>
               <xs:sequence>
                 <xs:element type="ns:JourneySegmentType" name="JourneySegment" maxOccurs="9"/>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey.FareRPHs
          Reference Place Holders to associate specific fares to this specific route.
 
Constructor Summary
AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey()
           
 
Method Summary
 void addJourneySegment(JourneySegment item)
          Add a 'JourneySegment' element item.
 void clearJourneySegments()
          Remove all 'JourneySegment' element items.
 AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey.FareRPHs getFareRPHs()
          Get the 'FareRPHs' element value.
 JourneySegment getJourneySegment(int index)
          Get 'JourneySegment' element item by position.
 java.util.List<JourneySegment> getJourneySegments()
          Get the list of 'JourneySegment' element items.
 void setFareRPHs(AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey.FareRPHs fareRPHs)
          Set the 'FareRPHs' element value.
 void setJourneySegments(java.util.List<JourneySegment> list)
          Set the list of 'JourneySegment' element items.
 int sizeJourneySegments()
          Get the number of 'JourneySegment' element items.
 
Methods inherited from class org.ota.rail.Journey
getDestinationLocation, getOriginLocation, getRouteCode, getRouteDescription, setDestinationLocation, setOriginLocation, setRouteCode, setRouteDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey

public AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey()
Method Detail

getFareRPHs

public AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey.FareRPHs getFareRPHs()
Get the 'FareRPHs' element value.

Returns:
value

setFareRPHs

public void setFareRPHs(AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey.FareRPHs fareRPHs)
Set the 'FareRPHs' element value.

Parameters:
fareRPHs -

getJourneySegments

public java.util.List<JourneySegment> getJourneySegments()
Get the list of 'JourneySegment' element items. A collection of segments that together provide the journey from origin to destination.

Returns:
list

setJourneySegments

public void setJourneySegments(java.util.List<JourneySegment> list)
Set the list of 'JourneySegment' element items. A collection of segments that together provide the journey from origin to destination.

Parameters:
list -

sizeJourneySegments

public int sizeJourneySegments()
Get the number of 'JourneySegment' element items.

Returns:
count

addJourneySegment

public void addJourneySegment(JourneySegment item)
Add a 'JourneySegment' element item.

Parameters:
item -

getJourneySegment

public JourneySegment getJourneySegment(int index)
Get 'JourneySegment' element item by position.

Parameters:
index -
Returns:
item

clearJourneySegments

public void clearJourneySegments()
Remove all 'JourneySegment' element items.