|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ota.rail.RailReservation.OriginandDestination.TrainSegment
public static class RailReservation.OriginandDestination.TrainSegment
Full details on one specific train segment, including the origin and destination locations for this segment, equipment used, services offered, etc. 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" type="ns:BookedTrainSegmentType" name="TrainSegment" maxOccurs="9"/> <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="BookedTrainSegmentType"> <xs:complexContent> <xs:extension base="ns:TrainSegmentType"> <xs:sequence> <xs:element name="ClassCode"> <xs:complexType> <xs:attributeGroup ref="ns:ClassCodeGroup"/> </xs:complexType> </xs:element> <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0" maxOccurs="10"/> <xs:element name="Compartments" minOccurs="0"> <!-- Reference to inner class Compartments --> </xs:element> <xs:element name="SeatAssignments" minOccurs="0"> <!-- Reference to inner class SeatAssignments --> </xs:element> </xs:sequence> <xs:attribute type="xs:string" use="required" name="BookStatus"/> <xs:attribute type="xs:string" use="optional" name="TicketStatus"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ClassCodeGroup"> <xs:attribute type="xs:string" use="required" name="ClassCode"/> <xs:attribute type="xs:int" use="optional" name="Quantity"/> </xs:attributeGroup>
Nested Class Summary | |
---|---|
static class |
RailReservation.OriginandDestination.TrainSegment.Compartments
Schema fragment(s) for this class: |
static class |
RailReservation.OriginandDestination.TrainSegment.SeatAssignments
Schema fragment(s) for this class: |
Constructor Summary | |
---|---|
RailReservation.OriginandDestination.TrainSegment()
|
Method Summary | |
---|---|
void |
addComment(FreeText item)
Add a 'Comment' element item. |
void |
clearComments()
Remove all 'Comment' element items. |
java.lang.String |
getBookStatus()
Get the 'BookStatus' attribute value. |
java.lang.String |
getClassCodeClassCode()
Get the 'ClassCode' attribute value. |
java.lang.Integer |
getClassCodeQuantity()
Get the 'Quantity' attribute value. |
FreeText |
getComment(int index)
Get 'Comment' element item by position. |
java.util.List<FreeText> |
getComments()
Get the list of 'Comment' element items. |
RailReservation.OriginandDestination.TrainSegment.Compartments |
getCompartments()
Get the 'Compartments' element value. |
RailReservation.OriginandDestination.TrainSegment.SeatAssignments |
getSeatAssignments()
Get the 'SeatAssignments' element value. |
java.lang.String |
getTicketStatus()
Get the 'TicketStatus' attribute value. |
TrainSegment |
getTrainSegment()
Get the extension value. |
void |
setBookStatus(java.lang.String bookStatus)
Set the 'BookStatus' attribute value. |
void |
setClassCodeClassCode(java.lang.String classCodeClassCode)
Set the 'ClassCode' attribute value. |
void |
setClassCodeQuantity(java.lang.Integer classCodeQuantity)
Set the 'Quantity' attribute value. |
void |
setComments(java.util.List<FreeText> list)
Set the list of 'Comment' element items. |
void |
setCompartments(RailReservation.OriginandDestination.TrainSegment.Compartments compartments)
Set the 'Compartments' element value. |
void |
setSeatAssignments(RailReservation.OriginandDestination.TrainSegment.SeatAssignments seatAssignments)
Set the 'SeatAssignments' element value. |
void |
setTicketStatus(java.lang.String ticketStatus)
Set the 'TicketStatus' attribute value. |
void |
setTrainSegment(TrainSegment trainSegment)
Set the extension value. |
int |
sizeComments()
Get the number of 'Comment' element items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RailReservation.OriginandDestination.TrainSegment()
Method Detail |
---|
public TrainSegment getTrainSegment()
public void setTrainSegment(TrainSegment trainSegment)
trainSegment
- public java.lang.String getClassCodeClassCode()
public void setClassCodeClassCode(java.lang.String classCodeClassCode)
classCodeClassCode
- public java.lang.Integer getClassCodeQuantity()
public void setClassCodeQuantity(java.lang.Integer classCodeQuantity)
classCodeQuantity
- public java.util.List<FreeText> getComments()
public void setComments(java.util.List<FreeText> list)
list
- public int sizeComments()
public void addComment(FreeText item)
item
- public FreeText getComment(int index)
index
-
public void clearComments()
public RailReservation.OriginandDestination.TrainSegment.Compartments getCompartments()
public void setCompartments(RailReservation.OriginandDestination.TrainSegment.Compartments compartments)
compartments
- public RailReservation.OriginandDestination.TrainSegment.SeatAssignments getSeatAssignments()
public void setSeatAssignments(RailReservation.OriginandDestination.TrainSegment.SeatAssignments seatAssignments)
seatAssignments
- public java.lang.String getBookStatus()
public void setBookStatus(java.lang.String bookStatus)
bookStatus
- public java.lang.String getTicketStatus()
public void setTicketStatus(java.lang.String ticketStatus)
ticketStatus
-
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |