|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.ota.rail.TrainSegment
public class TrainSegment
The TrainSegmentType complex type defines the construct for holding a train segment availability object. 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="TrainSegmentType">
<xs:sequence>
<xs:element type="ns:StationDetailsType" name="DepartureStation"/>
<xs:element type="ns:StationDetailsType" name="ArrivalStation"/>
<xs:element type="ns:CompanyNameType" name="MarketingCompany"/>
<xs:element type="ns:CompanyNameType" name="OperatingCompany" minOccurs="0"/>
<xs:element name="Equipment" minOccurs="0">
<xs:complexType>
<xs:attributeGroup ref="ns:CodeListGroup"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:dateTime" use="required" name="DepartureDateTime"/>
<xs:attribute type="xs:dateTime" use="optional" name="ArrivalDateTime"/>
<xs:attribute type="xs:string" name="TrainNumber"/>
<xs:attribute type="xs:int" use="optional" name="StopQuantity"/>
<xs:attribute type="xs:string" use="optional" name="JourneyDuration"/>
<xs:attributeGroup ref="ns:SmokingIndicatorGroup"/>
<xs:attribute type="xs:string" name="TrainServiceType"/>
<xs:attribute type="xs:boolean" use="optional" name="CrossBorder"/>
<xs:attribute type="xs:boolean" use="optional" name="SeatAssignable"/>
</xs:complexType>
<xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SmokingIndicatorGroup">
<xs:attribute type="xs:boolean" use="optional" name="SmokingAllowed"/>
</xs:attributeGroup>
| Constructor Summary | |
|---|---|
TrainSegment()
|
|
| Method Summary | |
|---|---|
java.util.Date |
getArrivalDateTime()
Get the 'ArrivalDateTime' attribute value. |
StationDetails |
getArrivalStation()
Get the 'ArrivalStation' element value. |
java.lang.Boolean |
getCrossBorder()
Get the 'CrossBorder' attribute value. |
java.util.Date |
getDepartureDateTime()
Get the 'DepartureDateTime' attribute value. |
StationDetails |
getDepartureStation()
Get the 'DepartureStation' element value. |
CodeListGroup |
getEquipment()
Get the 'CodeListGroup' attributeGroup value. |
java.lang.String |
getJourneyDuration()
Get the 'JourneyDuration' attribute value. |
CompanyName |
getMarketingCompany()
Get the 'MarketingCompany' element value. |
CompanyName |
getOperatingCompany()
Get the 'OperatingCompany' element value. |
java.lang.Boolean |
getSeatAssignable()
Get the 'SeatAssignable' attribute value. |
java.lang.Boolean |
getSmokingAllowed()
Get the 'SmokingAllowed' attribute value. |
java.lang.Integer |
getStopQuantity()
Get the 'StopQuantity' attribute value. |
java.lang.String |
getTrainNumber()
Get the 'TrainNumber' attribute value. |
java.lang.String |
getTrainService()
Get the 'TrainServiceType' attribute value. |
void |
setArrivalDateTime(java.util.Date arrivalDateTime)
Set the 'ArrivalDateTime' attribute value. |
void |
setArrivalStation(StationDetails arrivalStation)
Set the 'ArrivalStation' element value. |
void |
setCrossBorder(java.lang.Boolean crossBorder)
Set the 'CrossBorder' attribute value. |
void |
setDepartureDateTime(java.util.Date departureDateTime)
Set the 'DepartureDateTime' attribute value. |
void |
setDepartureStation(StationDetails departureStation)
Set the 'DepartureStation' element value. |
void |
setEquipment(CodeListGroup equipment)
Set the 'CodeListGroup' attributeGroup value. |
void |
setJourneyDuration(java.lang.String journeyDuration)
Set the 'JourneyDuration' attribute value. |
void |
setMarketingCompany(CompanyName marketingCompany)
Set the 'MarketingCompany' element value. |
void |
setOperatingCompany(CompanyName operatingCompany)
Set the 'OperatingCompany' element value. |
void |
setSeatAssignable(java.lang.Boolean seatAssignable)
Set the 'SeatAssignable' attribute value. |
void |
setSmokingAllowed(java.lang.Boolean smokingAllowed)
Set the 'SmokingAllowed' attribute value. |
void |
setStopQuantity(java.lang.Integer stopQuantity)
Set the 'StopQuantity' attribute value. |
void |
setTrainNumber(java.lang.String trainNumber)
Set the 'TrainNumber' attribute value. |
void |
setTrainService(java.lang.String trainService)
Set the 'TrainServiceType' attribute value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrainSegment()
| Method Detail |
|---|
public StationDetails getDepartureStation()
public void setDepartureStation(StationDetails departureStation)
departureStation - public StationDetails getArrivalStation()
public void setArrivalStation(StationDetails arrivalStation)
arrivalStation - public CompanyName getMarketingCompany()
public void setMarketingCompany(CompanyName marketingCompany)
marketingCompany - public CompanyName getOperatingCompany()
public void setOperatingCompany(CompanyName operatingCompany)
operatingCompany - public CodeListGroup getEquipment()
public void setEquipment(CodeListGroup equipment)
equipment - public java.util.Date getDepartureDateTime()
public void setDepartureDateTime(java.util.Date departureDateTime)
departureDateTime - public java.util.Date getArrivalDateTime()
public void setArrivalDateTime(java.util.Date arrivalDateTime)
arrivalDateTime - public java.lang.String getTrainNumber()
public void setTrainNumber(java.lang.String trainNumber)
trainNumber - public java.lang.Integer getStopQuantity()
public void setStopQuantity(java.lang.Integer stopQuantity)
stopQuantity - public java.lang.String getJourneyDuration()
public void setJourneyDuration(java.lang.String journeyDuration)
journeyDuration - public java.lang.Boolean getSmokingAllowed()
public void setSmokingAllowed(java.lang.Boolean smokingAllowed)
smokingAllowed - public java.lang.String getTrainService()
public void setTrainService(java.lang.String trainService)
trainService - public java.lang.Boolean getCrossBorder()
public void setCrossBorder(java.lang.Boolean crossBorder)
crossBorder - public java.lang.Boolean getSeatAssignable()
public void setSeatAssignable(java.lang.Boolean seatAssignable)
seatAssignable -
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||