org.ota.hotel
Class Viewerships.Viewership.DistributorTypes

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

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

A Collection of strings that identify the distibutors (ex Tour Operators, Agency Chains, etc) which are allowed viewership. 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="DistributorTypes" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="DistributorType" maxOccurs="unbounded">
         <!-- Reference to inner class Distributor -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class Viewerships.Viewership.DistributorTypes.Distributor
          Schema fragment(s) for this class:
 
Constructor Summary
Viewerships.Viewership.DistributorTypes()
           
 
Method Summary
 void addDistributor(Viewerships.Viewership.DistributorTypes.Distributor item)
          Add a 'DistributorType' element item.
 void clearDistributors()
          Remove all 'DistributorType' element items.
 Viewerships.Viewership.DistributorTypes.Distributor getDistributor(int index)
          Get 'DistributorType' element item by position.
 java.util.List<Viewerships.Viewership.DistributorTypes.Distributor> getDistributors()
          Get the list of 'DistributorType' element items.
 void setDistributors(java.util.List<Viewerships.Viewership.DistributorTypes.Distributor> list)
          Set the list of 'DistributorType' element items.
 int sizeDistributors()
          Get the number of 'DistributorType' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Viewerships.Viewership.DistributorTypes

public Viewerships.Viewership.DistributorTypes()
Method Detail

getDistributors

public java.util.List<Viewerships.Viewership.DistributorTypes.Distributor> getDistributors()
Get the list of 'DistributorType' element items.

Returns:
list

setDistributors

public void setDistributors(java.util.List<Viewerships.Viewership.DistributorTypes.Distributor> list)
Set the list of 'DistributorType' element items.

Parameters:
list -

sizeDistributors

public int sizeDistributors()
Get the number of 'DistributorType' element items.

Returns:
count

addDistributor

public void addDistributor(Viewerships.Viewership.DistributorTypes.Distributor item)
Add a 'DistributorType' element item.

Parameters:
item -

getDistributor

public Viewerships.Viewership.DistributorTypes.Distributor getDistributor(int index)
Get 'DistributorType' element item by position.

Parameters:
index -
Returns:
item

clearDistributors

public void clearDistributors()
Remove all 'DistributorType' element items.