org.ota.hotel
Class Viewerships.Viewership.Profiles

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

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

A collection of profiles. 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="Profiles" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ProfileType" name="Profile" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
Viewerships.Viewership.Profiles()
           
 
Method Summary
 void addProfile(Profile item)
          Add a 'Profile' element item.
 void clearProfiles()
          Remove all 'Profile' element items.
 Profile getProfile(int index)
          Get 'Profile' element item by position.
 java.util.List<Profile> getProfiles()
          Get the list of 'Profile' element items.
 void setProfiles(java.util.List<Profile> list)
          Set the list of 'Profile' element items.
 int sizeProfiles()
          Get the number of 'Profile' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Viewerships.Viewership.Profiles

public Viewerships.Viewership.Profiles()
Method Detail

getProfiles

public java.util.List<Profile> getProfiles()
Get the list of 'Profile' element items. Profile associated with the Viewership, i.e. the information required to identify the company, agency, etc that is allowed to view the information.

Returns:
list

setProfiles

public void setProfiles(java.util.List<Profile> list)
Set the list of 'Profile' element items. Profile associated with the Viewership, i.e. the information required to identify the company, agency, etc that is allowed to view the information.

Parameters:
list -

sizeProfiles

public int sizeProfiles()
Get the number of 'Profile' element items.

Returns:
count

addProfile

public void addProfile(Profile item)
Add a 'Profile' element item.

Parameters:
item -

getProfile

public Profile getProfile(int index)
Get 'Profile' element item by position.

Parameters:
index -
Returns:
item

clearProfiles

public void clearProfiles()
Remove all 'Profile' element items.