org.ota.hotel
Class Viewerships

java.lang.Object
  extended by org.ota.hotel.Viewerships

public class Viewerships
extends java.lang.Object

Viewerships determine the distribution channel(s) for a rate plan. As an optional element, the absence of Viewerships implies a generally available rate, while the presence of a Viewerships collection implies qualifications on the rate. This may also be used to define a system that is able to view the hotel content. 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="ViewershipsType">
   <xs:sequence>
     <xs:element name="Viewership" maxOccurs="unbounded">
       <!-- Reference to inner class Viewership -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class Viewerships.Viewership
          Viewership defines a system that is allowed to view the rateplan identified in a Hotel Rate Plan Notification message.
 
Constructor Summary
Viewerships()
           
 
Method Summary
 void addViewership(Viewerships.Viewership item)
          Add a 'Viewership' element item.
 void clearViewerships()
          Remove all 'Viewership' element items.
 Viewerships.Viewership getViewership(int index)
          Get 'Viewership' element item by position.
 java.util.List<Viewerships.Viewership> getViewerships()
          Get the list of 'Viewership' element items.
 void setViewerships(java.util.List<Viewerships.Viewership> list)
          Set the list of 'Viewership' element items.
 int sizeViewerships()
          Get the number of 'Viewership' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Viewerships

public Viewerships()
Method Detail

getViewerships

public java.util.List<Viewerships.Viewership> getViewerships()
Get the list of 'Viewership' element items.

Returns:
list

setViewerships

public void setViewerships(java.util.List<Viewerships.Viewership> list)
Set the list of 'Viewership' element items.

Parameters:
list -

sizeViewerships

public int sizeViewerships()
Get the number of 'Viewership' element items.

Returns:
count

addViewership

public void addViewership(Viewerships.Viewership item)
Add a 'Viewership' element item.

Parameters:
item -

getViewership

public Viewerships.Viewership getViewership(int index)
Get 'Viewership' element item by position.

Parameters:
index -
Returns:
item

clearViewerships

public void clearViewerships()
Remove all 'Viewership' element items.