org.ota.hotel
Class Viewerships.Viewership

java.lang.Object
  extended by org.ota.hotel.Viewerships.Viewership
Enclosing class:
Viewerships

public static class Viewerships.Viewership
extends java.lang.Object

Viewership defines a system that is allowed to view the rateplan identified in a Hotel Rate Plan Notification message. This may also be used to define a system that is able to view the hotel content. 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="Viewership" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="ViewershipCodes" minOccurs="0">
         <!-- Reference to inner class ViewershipCodes -->
       </xs:element>
       <xs:element name="SystemCodes" minOccurs="0">
         <!-- Reference to inner class SystemCodes -->
       </xs:element>
       <xs:element name="ProfileTypes" minOccurs="0">
         <!-- Reference to inner class ProfileTypes -->
       </xs:element>
       <xs:element name="ProfileRefs" minOccurs="0">
         <!-- Reference to inner class ProfileRefs -->
       </xs:element>
       <xs:element name="Profiles" minOccurs="0">
         <!-- Reference to inner class Profiles -->
       </xs:element>
       <xs:element name="LocationCodes" minOccurs="0">
         <!-- Reference to inner class LocationCodes -->
       </xs:element>
       <xs:element name="BookingChannelCodes" minOccurs="0">
         <!-- Reference to inner class BookingChannelCodes -->
       </xs:element>
       <xs:element name="DistributorTypes" minOccurs="0">
         <!-- Reference to inner class DistributorTypes -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:byte" use="optional" name="ViewershipRPH"/>
     <xs:attribute type="xs:boolean" use="optional" name="ViewOnly"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class Viewerships.Viewership.BookingChannelCodes
          A collections of strings that identify booking channels, such as GDSs or Internet sites, etc., associated with this viewership record.
static class Viewerships.Viewership.DistributorTypes
          A Collection of strings that identify the distibutors (ex Tour Operators, Agency Chains, etc) which are allowed viewership.
static class Viewerships.Viewership.LocationCodes
          A collections of strings that identify the locations, such as regions or countries, etc., associated with this viewership record.
static class Viewerships.Viewership.ProfileRefs
          A collection of profile references.
static class Viewerships.Viewership.Profiles
          A collection of profiles.
static class Viewerships.Viewership.ProfileTypes
          A collection of profile types.
static class Viewerships.Viewership.SystemCodes
          A collection of system codes.
static class Viewerships.Viewership.ViewershipCodes
          A collection of Viewship codes Schema fragment(s) for this class:
 
Constructor Summary
Viewerships.Viewership()
           
 
Method Summary
 Viewerships.Viewership.BookingChannelCodes getBookingChannelCodes()
          Get the 'BookingChannelCodes' element value.
 Viewerships.Viewership.DistributorTypes getDistributorTypes()
          Get the 'DistributorTypes' element value.
 Viewerships.Viewership.LocationCodes getLocationCodes()
          Get the 'LocationCodes' element value.
 Viewerships.Viewership.ProfileRefs getProfileRefs()
          Get the 'ProfileRefs' element value.
 Viewerships.Viewership.Profiles getProfiles()
          Get the 'Profiles' element value.
 Viewerships.Viewership.ProfileTypes getProfileTypes()
          Get the 'ProfileTypes' element value.
 Viewerships.Viewership.SystemCodes getSystemCodes()
          Get the 'SystemCodes' element value.
 Viewerships.Viewership.ViewershipCodes getViewershipCodes()
          Get the 'ViewershipCodes' element value.
 java.lang.Byte getViewershipRPH()
          Get the 'ViewershipRPH' attribute value.
 java.lang.Boolean getViewOnly()
          Get the 'ViewOnly' attribute value.
 void setBookingChannelCodes(Viewerships.Viewership.BookingChannelCodes bookingChannelCodes)
          Set the 'BookingChannelCodes' element value.
 void setDistributorTypes(Viewerships.Viewership.DistributorTypes distributorTypes)
          Set the 'DistributorTypes' element value.
 void setLocationCodes(Viewerships.Viewership.LocationCodes locationCodes)
          Set the 'LocationCodes' element value.
 void setProfileRefs(Viewerships.Viewership.ProfileRefs profileRefs)
          Set the 'ProfileRefs' element value.
 void setProfiles(Viewerships.Viewership.Profiles profiles)
          Set the 'Profiles' element value.
 void setProfileTypes(Viewerships.Viewership.ProfileTypes profileTypes)
          Set the 'ProfileTypes' element value.
 void setSystemCodes(Viewerships.Viewership.SystemCodes systemCodes)
          Set the 'SystemCodes' element value.
 void setViewershipCodes(Viewerships.Viewership.ViewershipCodes viewershipCodes)
          Set the 'ViewershipCodes' element value.
 void setViewershipRPH(java.lang.Byte viewershipRPH)
          Set the 'ViewershipRPH' attribute value.
 void setViewOnly(java.lang.Boolean viewOnly)
          Set the 'ViewOnly' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Viewerships.Viewership

public Viewerships.Viewership()
Method Detail

getViewershipCodes

public Viewerships.Viewership.ViewershipCodes getViewershipCodes()
Get the 'ViewershipCodes' element value.

Returns:
value

setViewershipCodes

public void setViewershipCodes(Viewerships.Viewership.ViewershipCodes viewershipCodes)
Set the 'ViewershipCodes' element value.

Parameters:
viewershipCodes -

getSystemCodes

public Viewerships.Viewership.SystemCodes getSystemCodes()
Get the 'SystemCodes' element value.

Returns:
value

setSystemCodes

public void setSystemCodes(Viewerships.Viewership.SystemCodes systemCodes)
Set the 'SystemCodes' element value.

Parameters:
systemCodes -

getProfileTypes

public Viewerships.Viewership.ProfileTypes getProfileTypes()
Get the 'ProfileTypes' element value.

Returns:
value

setProfileTypes

public void setProfileTypes(Viewerships.Viewership.ProfileTypes profileTypes)
Set the 'ProfileTypes' element value.

Parameters:
profileTypes -

getProfileRefs

public Viewerships.Viewership.ProfileRefs getProfileRefs()
Get the 'ProfileRefs' element value.

Returns:
value

setProfileRefs

public void setProfileRefs(Viewerships.Viewership.ProfileRefs profileRefs)
Set the 'ProfileRefs' element value.

Parameters:
profileRefs -

getProfiles

public Viewerships.Viewership.Profiles getProfiles()
Get the 'Profiles' element value.

Returns:
value

setProfiles

public void setProfiles(Viewerships.Viewership.Profiles profiles)
Set the 'Profiles' element value.

Parameters:
profiles -

getLocationCodes

public Viewerships.Viewership.LocationCodes getLocationCodes()
Get the 'LocationCodes' element value.

Returns:
value

setLocationCodes

public void setLocationCodes(Viewerships.Viewership.LocationCodes locationCodes)
Set the 'LocationCodes' element value.

Parameters:
locationCodes -

getBookingChannelCodes

public Viewerships.Viewership.BookingChannelCodes getBookingChannelCodes()
Get the 'BookingChannelCodes' element value.

Returns:
value

setBookingChannelCodes

public void setBookingChannelCodes(Viewerships.Viewership.BookingChannelCodes bookingChannelCodes)
Set the 'BookingChannelCodes' element value.

Parameters:
bookingChannelCodes -

getDistributorTypes

public Viewerships.Viewership.DistributorTypes getDistributorTypes()
Get the 'DistributorTypes' element value.

Returns:
value

setDistributorTypes

public void setDistributorTypes(Viewerships.Viewership.DistributorTypes distributorTypes)
Set the 'DistributorTypes' element value.

Parameters:
distributorTypes -

getViewershipRPH

public java.lang.Byte getViewershipRPH()
Get the 'ViewershipRPH' attribute value. This integer is a reference placeholder, used as an index for multiple Viewership classes.

Returns:
value

setViewershipRPH

public void setViewershipRPH(java.lang.Byte viewershipRPH)
Set the 'ViewershipRPH' attribute value. This integer is a reference placeholder, used as an index for multiple Viewership classes.

Parameters:
viewershipRPH -

getViewOnly

public java.lang.Boolean getViewOnly()
Get the 'ViewOnly' attribute value. Indicates whether this rate plan is bookable by the entity having viewership. Values: false= Bookable, true= View Only (not bookable).

Returns:
value

setViewOnly

public void setViewOnly(java.lang.Boolean viewOnly)
Set the 'ViewOnly' attribute value. Indicates whether this rate plan is bookable by the entity having viewership. Values: false= Bookable, true= View Only (not bookable).

Parameters:
viewOnly -