|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.ota.rail.JourneySegment
public class JourneySegment
Any valid journey leg type. 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="JourneySegmentType">
<xs:choice>
<xs:element name="TrainSegment">
<xs:complexType>
<xs:complexContent>
<xs:extension base="ns:TrainSegmentType">
<xs:sequence>
<xs:element type="ns:LocationType" name="TrainOrigin" minOccurs="0"/>
<xs:element type="ns:LocationType" name="TrainDestination" minOccurs="0"/>
<xs:element name="ClassCodes">
<xs:complexType>
<xs:sequence>
<xs:element name="ClassCode" maxOccurs="9">
<xs:complexType>
<xs:attributeGroup ref="ns:CodeListGroup"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="ns:VendorMessagesType" name="VendorMessages" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:float" use="optional" name="OnTimeRate"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="NonTrainSegment">
<xs:complexType>
<xs:sequence>
<xs:element type="ns:LocationType" name="Origin"/>
<xs:element type="ns:LocationType" name="Destination"/>
</xs:sequence>
<xs:attribute type="xs:string" use="required" name="LegRef"/>
<xs:attribute type="xs:string" use="required" name="TransportationCode"/>
<xs:attribute type="xs:time" name="TransitTime"/>
<xs:attribute type="xs:time" name="ChangeTime"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
| Constructor Summary | |
|---|---|
JourneySegment()
|
|
| Method Summary | |
|---|---|
void |
addTrainSegmentClassCode(CodeListGroup item)
Add a 'ClassCode' element item. |
void |
clearChoiceSelect()
Clear the choice selection. |
void |
clearTrainSegmentClassCodes()
Remove all 'ClassCode' element items. |
java.sql.Time |
getNonTrainSegmentChangeTime()
Get the 'ChangeTime' attribute value. |
Location |
getNonTrainSegmentDestination()
Get the 'Destination' element value. |
java.lang.String |
getNonTrainSegmentLegRef()
Get the 'LegRef' attribute value. |
Location |
getNonTrainSegmentOrigin()
Get the 'Origin' element value. |
java.sql.Time |
getNonTrainSegmentTransitTime()
Get the 'TransitTime' attribute value. |
java.lang.String |
getNonTrainSegmentTransportationCode()
Get the 'TransportationCode' attribute value. |
CodeListGroup |
getTrainSegmentClassCode(int index)
Get 'ClassCode' element item by position. |
java.util.List<CodeListGroup> |
getTrainSegmentClassCodes()
Get the list of 'ClassCode' element items. |
java.lang.Float |
getTrainSegmentOnTimeRate()
Get the 'OnTimeRate' attribute value. |
Location |
getTrainSegmentTrainDestination()
Get the 'TrainDestination' element value. |
Location |
getTrainSegmentTrainOrigin()
Get the 'TrainOrigin' element value. |
TrainSegment |
getTrainSegmentTrainSegment()
Get the extension value. |
VendorMessages |
getTrainSegmentVendorMessages()
Get the 'VendorMessages' element value. |
boolean |
ifNonTrainSegment()
Check if NonTrainSegment is current selection for choice. |
boolean |
ifTrainSegment()
Check if TrainSegment is current selection for choice. |
void |
setNonTrainSegmentChangeTime(java.sql.Time nonTrainSegmentChangeTime)
Set the 'ChangeTime' attribute value. |
void |
setNonTrainSegmentDestination(Location nonTrainSegmentDestination)
Set the 'Destination' element value. |
void |
setNonTrainSegmentLegRef(java.lang.String nonTrainSegmentLegRef)
Set the 'LegRef' attribute value. |
void |
setNonTrainSegmentOrigin(Location nonTrainSegmentOrigin)
Set the 'Origin' element value. |
void |
setNonTrainSegmentTransitTime(java.sql.Time nonTrainSegmentTransitTime)
Set the 'TransitTime' attribute value. |
void |
setNonTrainSegmentTransportationCode(java.lang.String nonTrainSegmentTransportationCode)
Set the 'TransportationCode' attribute value. |
void |
setTrainSegmentClassCodes(java.util.List<CodeListGroup> list)
Set the list of 'ClassCode' element items. |
void |
setTrainSegmentOnTimeRate(java.lang.Float trainSegmentOnTimeRate)
Set the 'OnTimeRate' attribute value. |
void |
setTrainSegmentTrainDestination(Location trainSegmentTrainDestination)
Set the 'TrainDestination' element value. |
void |
setTrainSegmentTrainOrigin(Location trainSegmentTrainOrigin)
Set the 'TrainOrigin' element value. |
void |
setTrainSegmentTrainSegment(TrainSegment trainSegmentTrainSegment)
Set the extension value. |
void |
setTrainSegmentVendorMessages(VendorMessages trainSegmentVendorMessages)
Set the 'VendorMessages' element value. |
int |
sizeTrainSegmentClassCodes()
Get the number of 'ClassCode' element items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JourneySegment()
| Method Detail |
|---|
public void clearChoiceSelect()
public boolean ifTrainSegment()
true if selection, false if notpublic TrainSegment getTrainSegmentTrainSegment()
public void setTrainSegmentTrainSegment(TrainSegment trainSegmentTrainSegment)
trainSegmentTrainSegment - public Location getTrainSegmentTrainOrigin()
public void setTrainSegmentTrainOrigin(Location trainSegmentTrainOrigin)
trainSegmentTrainOrigin - public Location getTrainSegmentTrainDestination()
public void setTrainSegmentTrainDestination(Location trainSegmentTrainDestination)
trainSegmentTrainDestination - public java.util.List<CodeListGroup> getTrainSegmentClassCodes()
public void setTrainSegmentClassCodes(java.util.List<CodeListGroup> list)
list - public int sizeTrainSegmentClassCodes()
public void addTrainSegmentClassCode(CodeListGroup item)
item - public CodeListGroup getTrainSegmentClassCode(int index)
index -
public void clearTrainSegmentClassCodes()
public VendorMessages getTrainSegmentVendorMessages()
public void setTrainSegmentVendorMessages(VendorMessages trainSegmentVendorMessages)
trainSegmentVendorMessages - public java.lang.Float getTrainSegmentOnTimeRate()
public void setTrainSegmentOnTimeRate(java.lang.Float trainSegmentOnTimeRate)
trainSegmentOnTimeRate - public boolean ifNonTrainSegment()
true if selection, false if notpublic Location getNonTrainSegmentOrigin()
public void setNonTrainSegmentOrigin(Location nonTrainSegmentOrigin)
nonTrainSegmentOrigin - public Location getNonTrainSegmentDestination()
public void setNonTrainSegmentDestination(Location nonTrainSegmentDestination)
nonTrainSegmentDestination - public java.lang.String getNonTrainSegmentLegRef()
public void setNonTrainSegmentLegRef(java.lang.String nonTrainSegmentLegRef)
nonTrainSegmentLegRef - public java.lang.String getNonTrainSegmentTransportationCode()
public void setNonTrainSegmentTransportationCode(java.lang.String nonTrainSegmentTransportationCode)
nonTrainSegmentTransportationCode - public java.sql.Time getNonTrainSegmentTransitTime()
public void setNonTrainSegmentTransitTime(java.sql.Time nonTrainSegmentTransitTime)
nonTrainSegmentTransitTime - public java.sql.Time getNonTrainSegmentChangeTime()
public void setNonTrainSegmentChangeTime(java.sql.Time nonTrainSegmentChangeTime)
nonTrainSegmentChangeTime -
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||