org.ota.rail
Class RailFare.Railcard

java.lang.Object
  extended by org.ota.rail.RailFare.Railcard
Enclosing class:
RailFare

public static class RailFare.Railcard
extends java.lang.Object

Encapsulates details of the railcard used in calculating the fare. If no railcard was used to calculate the fare, then this element will not be presen 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="Railcard" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:boolean" use="optional" name="MultipleRailcardsReqd"/>
     <xs:attribute type="xs:string" use="required" name="RailcardCodeSupplied"/>
     <xs:attribute type="xs:string" use="required" name="RailcardCodeUsed"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
RailFare.Railcard()
           
 
Method Summary
 java.lang.Boolean getMultipleRailcardsReqd()
          Get the 'MultipleRailcardsReqd' attribute value.
 java.lang.String getRailcardCodeSupplied()
          Get the 'RailcardCodeSupplied' attribute value.
 java.lang.String getRailcardCodeUsed()
          Get the 'RailcardCodeUsed' attribute value.
 void setMultipleRailcardsReqd(java.lang.Boolean multipleRailcardsReqd)
          Set the 'MultipleRailcardsReqd' attribute value.
 void setRailcardCodeSupplied(java.lang.String railcardCodeSupplied)
          Set the 'RailcardCodeSupplied' attribute value.
 void setRailcardCodeUsed(java.lang.String railcardCodeUsed)
          Set the 'RailcardCodeUsed' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RailFare.Railcard

public RailFare.Railcard()
Method Detail

getMultipleRailcardsReqd

public java.lang.Boolean getMultipleRailcardsReqd()
Get the 'MultipleRailcardsReqd' attribute value. Indicates whether multiple railcards are required to purchase the tickets for this fare at this price. TRUE= Multiple railcards are required; FALSE= Multiple railcards are not required. This parameter has a default value of FALSE and will only be present if the value is set to TRUE.

Returns:
value

setMultipleRailcardsReqd

public void setMultipleRailcardsReqd(java.lang.Boolean multipleRailcardsReqd)
Set the 'MultipleRailcardsReqd' attribute value. Indicates whether multiple railcards are required to purchase the tickets for this fare at this price. TRUE= Multiple railcards are required; FALSE= Multiple railcards are not required. This parameter has a default value of FALSE and will only be present if the value is set to TRUE.

Parameters:
multipleRailcardsReqd -

getRailcardCodeSupplied

public java.lang.String getRailcardCodeSupplied()
Get the 'RailcardCodeSupplied' attribute value. The 3-character railcard code supplied in the enquiry criteria

Returns:
value

setRailcardCodeSupplied

public void setRailcardCodeSupplied(java.lang.String railcardCodeSupplied)
Set the 'RailcardCodeSupplied' attribute value. The 3-character railcard code supplied in the enquiry criteria

Parameters:
railcardCodeSupplied -

getRailcardCodeUsed

public java.lang.String getRailcardCodeUsed()
Get the 'RailcardCodeUsed' attribute value. The 3-character railcard code used when calculating the fare. This may differ from the code in the 'RailcardCodeSupplied' attribute, in that it may be the master railcard code of that railcard.

Returns:
value

setRailcardCodeUsed

public void setRailcardCodeUsed(java.lang.String railcardCodeUsed)
Set the 'RailcardCodeUsed' attribute value. The 3-character railcard code used when calculating the fare. This may differ from the code in the 'RailcardCodeSupplied' attribute, in that it may be the master railcard code of that railcard.

Parameters:
railcardCodeUsed -