org.ota.hotel
Class ContactInfo.Phones

java.lang.Object
  extended by org.ota.hotel.ContactInfo.Phones
Enclosing class:
ContactInfo

public static class ContactInfo.Phones
extends java.lang.Object

A collection of Phone elements. 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" type="ns:PhonesType" name="Phones" minOccurs="0"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PhonesType">
   <xs:sequence>
     <xs:element name="Phone" maxOccurs="unbounded">
       <!-- Reference to inner class Phone -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class ContactInfo.Phones.Phone
          Used to pass detailed phone information.
 
Constructor Summary
ContactInfo.Phones()
           
 
Method Summary
 void addPhone(ContactInfo.Phones.Phone item)
          Add a 'Phone' element item.
 void clearPhones()
          Remove all 'Phone' element items.
 ContactInfo.Phones.Phone getPhone(int index)
          Get 'Phone' element item by position.
 java.util.List<ContactInfo.Phones.Phone> getPhones()
          Get the list of 'Phone' element items.
 void setPhones(java.util.List<ContactInfo.Phones.Phone> list)
          Set the list of 'Phone' element items.
 int sizePhones()
          Get the number of 'Phone' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactInfo.Phones

public ContactInfo.Phones()
Method Detail

getPhones

public java.util.List<ContactInfo.Phones.Phone> getPhones()
Get the list of 'Phone' element items. Provides detailed phone information.

Returns:
list

setPhones

public void setPhones(java.util.List<ContactInfo.Phones.Phone> list)
Set the list of 'Phone' element items. Provides detailed phone information.

Parameters:
list -

sizePhones

public int sizePhones()
Get the number of 'Phone' element items.

Returns:
count

addPhone

public void addPhone(ContactInfo.Phones.Phone item)
Add a 'Phone' element item.

Parameters:
item -

getPhone

public ContactInfo.Phones.Phone getPhone(int index)
Get 'Phone' element item by position.

Parameters:
index -
Returns:
item

clearPhones

public void clearPhones()
Remove all 'Phone' element items.