|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.ota.rail.BookRQ.OriginDestinationOption
public static class BookRQ.OriginDestinationOption
Details aboout one specific jouney between this origin and destination location. This element will be repeated for each journey. For example, for a round-trip reservation, this element will occur two times. 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="99">
<xs:complexType>
<xs:sequence>
<xs:element name="TrainSegments">
<xs:complexType>
<xs:sequence>
<xs:element name="TrainSegment" maxOccurs="9">
<!-- Reference to inner class TrainSegment -->
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
| Nested Class Summary | |
|---|---|
static class |
BookRQ.OriginDestinationOption.TrainSegment
Full details on one specific train segment, including the origin and destination locations for this segment, the requested class of service, and the operating company, if appropriate. |
| Constructor Summary | |
|---|---|
BookRQ.OriginDestinationOption()
|
|
| Method Summary | |
|---|---|
void |
addTrainSegment(BookRQ.OriginDestinationOption.TrainSegment item)
Add a 'TrainSegment' element item. |
void |
clearTrainSegments()
Remove all 'TrainSegment' element items. |
BookRQ.OriginDestinationOption.TrainSegment |
getTrainSegment(int index)
Get 'TrainSegment' element item by position. |
java.util.List<BookRQ.OriginDestinationOption.TrainSegment> |
getTrainSegments()
Get the list of 'TrainSegment' element items. |
void |
setTrainSegments(java.util.List<BookRQ.OriginDestinationOption.TrainSegment> list)
Set the list of 'TrainSegment' element items. |
int |
sizeTrainSegments()
Get the number of 'TrainSegment' element items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BookRQ.OriginDestinationOption()
| Method Detail |
|---|
public java.util.List<BookRQ.OriginDestinationOption.TrainSegment> getTrainSegments()
public void setTrainSegments(java.util.List<BookRQ.OriginDestinationOption.TrainSegment> list)
list - public int sizeTrainSegments()
public void addTrainSegment(BookRQ.OriginDestinationOption.TrainSegment item)
item - public BookRQ.OriginDestinationOption.TrainSegment getTrainSegment(int index)
index -
public void clearTrainSegments()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||