org.ota.loyalty
Class AccountInfo.MemberPreferences.Offer

java.lang.Object
  extended by org.ota.loyalty.AccountInfo.MemberPreferences.Offer
Enclosing class:
AccountInfo.MemberPreferences

public static class AccountInfo.MemberPreferences.Offer
extends java.lang.Object

Source from which members can receive information. 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="Offer" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Communication" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class Communication -->
       </xs:element>
     </xs:sequence>
     <xs:attribute use="optional" name="Type">
       <xs:simpleType>
         <!-- Reference to inner class Type -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AccountInfo.MemberPreferences.Offer.Communication
          Preferred method of offer communication.
static class AccountInfo.MemberPreferences.Offer.Type
          Schema fragment(s) for this class:
 
Constructor Summary
AccountInfo.MemberPreferences.Offer()
           
 
Method Summary
 void addCommunication(AccountInfo.MemberPreferences.Offer.Communication item)
          Add a 'Communication' element item.
 void clearCommunications()
          Remove all 'Communication' element items.
 AccountInfo.MemberPreferences.Offer.Communication getCommunication(int index)
          Get 'Communication' element item by position.
 java.util.List<AccountInfo.MemberPreferences.Offer.Communication> getCommunications()
          Get the list of 'Communication' element items.
 AccountInfo.MemberPreferences.Offer.Type getType()
          Get the 'Type' attribute value.
 void setCommunications(java.util.List<AccountInfo.MemberPreferences.Offer.Communication> list)
          Set the list of 'Communication' element items.
 void setType(AccountInfo.MemberPreferences.Offer.Type type)
          Set the 'Type' attribute value.
 int sizeCommunications()
          Get the number of 'Communication' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountInfo.MemberPreferences.Offer

public AccountInfo.MemberPreferences.Offer()
Method Detail

getCommunications

public java.util.List<AccountInfo.MemberPreferences.Offer.Communication> getCommunications()
Get the list of 'Communication' element items.

Returns:
list

setCommunications

public void setCommunications(java.util.List<AccountInfo.MemberPreferences.Offer.Communication> list)
Set the list of 'Communication' element items.

Parameters:
list -

sizeCommunications

public int sizeCommunications()
Get the number of 'Communication' element items.

Returns:
count

addCommunication

public void addCommunication(AccountInfo.MemberPreferences.Offer.Communication item)
Add a 'Communication' element item.

Parameters:
item -

getCommunication

public AccountInfo.MemberPreferences.Offer.Communication getCommunication(int index)
Get 'Communication' element item by position.

Parameters:
index -
Returns:
item

clearCommunications

public void clearCommunications()
Remove all 'Communication' element items.


getType

public AccountInfo.MemberPreferences.Offer.Type getType()
Get the 'Type' attribute value. An enumerated list of offer sources.

Returns:
value

setType

public void setType(AccountInfo.MemberPreferences.Offer.Type type)
Set the 'Type' attribute value. An enumerated list of offer sources.

Parameters:
type -