org.ota.hotel
Class HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram
Enclosing class:
HotelDescriptiveContent.AffiliationInfo.LoyalPrograms

public static class HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram
extends java.lang.Object

The LoyalProgram class defines the loyalty programs that this hotel participates in. 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="LoyalProgram" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="ProgramDescription" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class ProgramDescription -->
       </xs:element>
       <xs:element name="ProgramRestriction" minOccurs="0">
         <!-- Reference to inner class ProgramRestriction -->
       </xs:element>
       <xs:element type="ns:BlackoutDateType" name="BlackoutDates" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:RemovalGroup"/>
     <xs:attribute type="xs:string" use="optional" name="ProgramName"/>
     <xs:attribute type="xs:string" use="optional" name="SecondaryProgramName"/>
     <xs:attribute type="xs:string" use="optional" name="AffiliateProgramName"/>
     <xs:attribute type="xs:string" use="optional" name="HotelLevel"/>
     <xs:attribute type="xs:string" use="optional" name="ProgramCode"/>
     <xs:attribute type="xs:string" use="optional" name="TravelSector"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RemovalGroup">
   <xs:attribute type="xs:boolean" use="optional" name="Removal"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription
          Provides description information for the loyal program.
static class HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramRestriction
          Provides information regarding restrictions that apply to the loyal program.
 
Constructor Summary
HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram()
           
 
Method Summary
 void addProgramDescription(HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription item)
          Add a 'ProgramDescription' element item.
 void clearProgramDescriptions()
          Remove all 'ProgramDescription' element items.
 java.lang.String getAffiliateProgramName()
          Get the 'AffiliateProgramName' attribute value.
 BlackoutDate getBlackoutDates()
          Get the 'BlackoutDates' element value.
 java.lang.String getHotelLevel()
          Get the 'HotelLevel' attribute value.
 java.lang.String getProgramCode()
          Get the 'ProgramCode' attribute value.
 HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription getProgramDescription(int index)
          Get 'ProgramDescription' element item by position.
 java.util.List<HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription> getProgramDescriptions()
          Get the list of 'ProgramDescription' element items.
 java.lang.String getProgramName()
          Get the 'ProgramName' attribute value.
 HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramRestriction getProgramRestriction()
          Get the 'ProgramRestriction' element value.
 java.lang.Boolean getRemoval()
          Get the 'Removal' attribute value.
 java.lang.String getSecondaryProgramName()
          Get the 'SecondaryProgramName' attribute value.
 java.lang.String getTravelSector()
          Get the 'TravelSector' attribute value.
 void setAffiliateProgramName(java.lang.String affiliateProgramName)
          Set the 'AffiliateProgramName' attribute value.
 void setBlackoutDates(BlackoutDate blackoutDates)
          Set the 'BlackoutDates' element value.
 void setHotelLevel(java.lang.String hotelLevel)
          Set the 'HotelLevel' attribute value.
 void setProgramCode(java.lang.String programCode)
          Set the 'ProgramCode' attribute value.
 void setProgramDescriptions(java.util.List<HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription> list)
          Set the list of 'ProgramDescription' element items.
 void setProgramName(java.lang.String programName)
          Set the 'ProgramName' attribute value.
 void setProgramRestriction(HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramRestriction programRestriction)
          Set the 'ProgramRestriction' element value.
 void setRemoval(java.lang.Boolean removal)
          Set the 'Removal' attribute value.
 void setSecondaryProgramName(java.lang.String secondaryProgramName)
          Set the 'SecondaryProgramName' attribute value.
 void setTravelSector(java.lang.String travelSector)
          Set the 'TravelSector' attribute value.
 int sizeProgramDescriptions()
          Get the number of 'ProgramDescription' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram

public HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram()
Method Detail

getProgramDescriptions

public java.util.List<HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription> getProgramDescriptions()
Get the list of 'ProgramDescription' element items.

Returns:
list

setProgramDescriptions

public void setProgramDescriptions(java.util.List<HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription> list)
Set the list of 'ProgramDescription' element items.

Parameters:
list -

sizeProgramDescriptions

public int sizeProgramDescriptions()
Get the number of 'ProgramDescription' element items.

Returns:
count

addProgramDescription

public void addProgramDescription(HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription item)
Add a 'ProgramDescription' element item.

Parameters:
item -

getProgramDescription

public HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription getProgramDescription(int index)
Get 'ProgramDescription' element item by position.

Parameters:
index -
Returns:
item

clearProgramDescriptions

public void clearProgramDescriptions()
Remove all 'ProgramDescription' element items.


getProgramRestriction

public HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramRestriction getProgramRestriction()
Get the 'ProgramRestriction' element value.

Returns:
value

setProgramRestriction

public void setProgramRestriction(HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramRestriction programRestriction)
Set the 'ProgramRestriction' element value.

Parameters:
programRestriction -

getBlackoutDates

public BlackoutDate getBlackoutDates()
Get the 'BlackoutDates' element value. A collection of black-out dates (i.e. dates when loyalty redemptions are not allowed).

Returns:
value

setBlackoutDates

public void setBlackoutDates(BlackoutDate blackoutDates)
Set the 'BlackoutDates' element value. A collection of black-out dates (i.e. dates when loyalty redemptions are not allowed).

Parameters:
blackoutDates -

getRemoval

public java.lang.Boolean getRemoval()
Get the 'Removal' attribute value. If true, this item is obsolete and should be removed from the receiving system. false

Returns:
value

setRemoval

public void setRemoval(java.lang.Boolean removal)
Set the 'Removal' attribute value. If true, this item is obsolete and should be removed from the receiving system. false

Parameters:
removal -

getProgramName

public java.lang.String getProgramName()
Get the 'ProgramName' attribute value. This identifies the loyalty program.

Returns:
value

setProgramName

public void setProgramName(java.lang.String programName)
Set the 'ProgramName' attribute value. This identifies the loyalty program.

Parameters:
programName -

getSecondaryProgramName

public java.lang.String getSecondaryProgramName()
Get the 'SecondaryProgramName' attribute value. The name of the secondary level of the program, e.g.: gold, silver, etc..

Returns:
value

setSecondaryProgramName

public void setSecondaryProgramName(java.lang.String secondaryProgramName)
Set the 'SecondaryProgramName' attribute value. The name of the secondary level of the program, e.g.: gold, silver, etc..

Parameters:
secondaryProgramName -

getAffiliateProgramName

public java.lang.String getAffiliateProgramName()
Get the 'AffiliateProgramName' attribute value. The title of the membership program affiliated with the primary program.

Returns:
value

setAffiliateProgramName

public void setAffiliateProgramName(java.lang.String affiliateProgramName)
Set the 'AffiliateProgramName' attribute value. The title of the membership program affiliated with the primary program.

Parameters:
affiliateProgramName -

getHotelLevel

public java.lang.String getHotelLevel()
Get the 'HotelLevel' attribute value. Used to indicate the level to which the hotel is assigned within the program for redemption purposes.

Returns:
value

setHotelLevel

public void setHotelLevel(java.lang.String hotelLevel)
Set the 'HotelLevel' attribute value. Used to indicate the level to which the hotel is assigned within the program for redemption purposes.

Parameters:
hotelLevel -

getProgramCode

public java.lang.String getProgramCode()
Get the 'ProgramCode' attribute value. A company-specific code used to identify a loyalty program.

Returns:
value

setProgramCode

public void setProgramCode(java.lang.String programCode)
Set the 'ProgramCode' attribute value. A company-specific code used to identify a loyalty program.

Parameters:
programCode -

getTravelSector

public java.lang.String getTravelSector()
Get the 'TravelSector' attribute value. Used to identify the specific travel sector to which the loyalty program applies. Refer to OpenTravel Codelist Travel Sector (TVS).

Returns:
value

setTravelSector

public void setTravelSector(java.lang.String travelSector)
Set the 'TravelSector' attribute value. Used to identify the specific travel sector to which the loyalty program applies. Refer to OpenTravel Codelist Travel Sector (TVS).

Parameters:
travelSector -