|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ota.rail.AvailRS.OriginDestinationOptions.OriginDestinationOption
public static class AvailRS.OriginDestinationOptions.OriginDestinationOption
Holds the collection of train options for this origin-destination pair. 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="OriginDestinationOption" maxOccurs="999"> <xs:complexType> <xs:sequence> <xs:element type="ns:LocationType" name="OriginLocation"/> <xs:element type="ns:LocationType" name="DestinationLocation"/> <xs:element name="Journeys"> <xs:complexType> <xs:sequence> <xs:element name="Journey" maxOccurs="99"> <!-- Reference to inner class Journey --> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
Nested Class Summary | |
---|---|
static class |
AvailRS.OriginDestinationOptions.OriginDestinationOption.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. |
Constructor Summary | |
---|---|
AvailRS.OriginDestinationOptions.OriginDestinationOption()
|
Method Summary | |
---|---|
void |
addJourney(AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey item)
Add a 'Journey' element item. |
void |
clearJourneies()
Remove all 'Journey' element items. |
Location |
getDestinationLocation()
Get the 'DestinationLocation' element value. |
java.util.List<AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey> |
getJourneies()
Get the list of 'Journey' element items. |
AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey |
getJourney(int index)
Get 'Journey' element item by position. |
Location |
getOriginLocation()
Get the 'OriginLocation' element value. |
void |
setDestinationLocation(Location destinationLocation)
Set the 'DestinationLocation' element value. |
void |
setJourneies(java.util.List<AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey> list)
Set the list of 'Journey' element items. |
void |
setOriginLocation(Location originLocation)
Set the 'OriginLocation' element value. |
int |
sizeJourneies()
Get the number of 'Journey' element items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvailRS.OriginDestinationOptions.OriginDestinationOption()
Method Detail |
---|
public Location getOriginLocation()
public void setOriginLocation(Location originLocation)
originLocation
- public Location getDestinationLocation()
public void setDestinationLocation(Location destinationLocation)
destinationLocation
- public java.util.List<AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey> getJourneies()
public void setJourneies(java.util.List<AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey> list)
list
- public int sizeJourneies()
public void addJourney(AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey item)
item
- public AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey getJourney(int index)
index
-
public void clearJourneies()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |