org.ota.hotel
Class InvBlock.Contacts

java.lang.Object
  extended by org.ota.hotel.InvBlock.Contacts
Enclosing class:
InvBlock

public static class InvBlock.Contacts
extends java.lang.Object

A collection of contacts. 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="Contacts" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ContactPersonType" name="Contact" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
InvBlock.Contacts()
           
 
Method Summary
 void addContact(ContactPerson item)
          Add a 'Contact' element item.
 void clearContacts()
          Remove all 'Contact' element items.
 ContactPerson getContact(int index)
          Get 'Contact' element item by position.
 java.util.List<ContactPerson> getContacts()
          Get the list of 'Contact' element items.
 void setContacts(java.util.List<ContactPerson> list)
          Set the list of 'Contact' element items.
 int sizeContacts()
          Get the number of 'Contact' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvBlock.Contacts

public InvBlock.Contacts()
Method Detail

getContacts

public java.util.List<ContactPerson> getContacts()
Get the list of 'Contact' element items. This may be used for multiple sets of contact information (e.g., sales manager, group contact, event manager).

Returns:
list

setContacts

public void setContacts(java.util.List<ContactPerson> list)
Set the list of 'Contact' element items. This may be used for multiple sets of contact information (e.g., sales manager, group contact, event manager).

Parameters:
list -

sizeContacts

public int sizeContacts()
Get the number of 'Contact' element items.

Returns:
count

addContact

public void addContact(ContactPerson item)
Add a 'Contact' element item.

Parameters:
item -

getContact

public ContactPerson getContact(int index)
Get 'Contact' element item by position.

Parameters:
index -
Returns:
item

clearContacts

public void clearContacts()
Remove all 'Contact' element items.