org.ota.golf
Class Memberships

java.lang.Object
  extended by org.ota.golf.Memberships

public class Memberships
extends java.lang.Object

Memberships are associated with one or more of the golfers for whom the specific request for availability is being made. Some memberships may permit booking rules that do not apply to other golfers. For example, a reciprocal membership may allow booking farther in advance that the standard golfer is permitted. NOTE: a definition of Memberships will be reflected in the OTA_Profile schema. 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="MembershipsType">
   <xs:sequence>
     <xs:element name="Membership" maxOccurs="99">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CustomerLoyaltyGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Constructor Summary
Memberships()
           
 
Method Summary
 void addMembership(CustomerLoyaltyGroup item)
          Add a 'Membership' element item.
 void clearMemberships()
          Remove all 'Membership' element items.
 CustomerLoyaltyGroup getMembership(int index)
          Get 'Membership' element item by position.
 java.util.List<CustomerLoyaltyGroup> getMemberships()
          Get the list of 'Membership' element items.
 void setMemberships(java.util.List<CustomerLoyaltyGroup> list)
          Set the list of 'Membership' element items.
 int sizeMemberships()
          Get the number of 'Membership' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memberships

public Memberships()
Method Detail

getMemberships

public java.util.List<CustomerLoyaltyGroup> getMemberships()
Get the list of 'Membership' element items.

Returns:
list

setMemberships

public void setMemberships(java.util.List<CustomerLoyaltyGroup> list)
Set the list of 'Membership' element items.

Parameters:
list -

sizeMemberships

public int sizeMemberships()
Get the number of 'Membership' element items.

Returns:
count

addMembership

public void addMembership(CustomerLoyaltyGroup item)
Add a 'Membership' element item.

Parameters:
item -

getMembership

public CustomerLoyaltyGroup getMembership(int index)
Get 'Membership' element item by position.

Parameters:
index -
Returns:
item

clearMemberships

public void clearMemberships()
Remove all 'Membership' element items.