org.ota.hotel
Class ContactInfo.Names

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

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

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


Nested Class Summary
static class ContactInfo.Names.Name
          Used to pass detailed name information regarding a contact.
 
Constructor Summary
ContactInfo.Names()
           
 
Method Summary
 void addName(ContactInfo.Names.Name item)
          Add a 'Name' element item.
 void clearNames()
          Remove all 'Name' element items.
 ContactInfo.Names.Name getName(int index)
          Get 'Name' element item by position.
 java.util.List<ContactInfo.Names.Name> getNames()
          Get the list of 'Name' element items.
 void setNames(java.util.List<ContactInfo.Names.Name> list)
          Set the list of 'Name' element items.
 int sizeNames()
          Get the number of 'Name' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactInfo.Names

public ContactInfo.Names()
Method Detail

getNames

public java.util.List<ContactInfo.Names.Name> getNames()
Get the list of 'Name' element items. Provides detailed name information.

Returns:
list

setNames

public void setNames(java.util.List<ContactInfo.Names.Name> list)
Set the list of 'Name' element items. Provides detailed name information.

Parameters:
list -

sizeNames

public int sizeNames()
Get the number of 'Name' element items.

Returns:
count

addName

public void addName(ContactInfo.Names.Name item)
Add a 'Name' element item.

Parameters:
item -

getName

public ContactInfo.Names.Name getName(int index)
Get 'Name' element item by position.

Parameters:
index -
Returns:
item

clearNames

public void clearNames()
Remove all 'Name' element items.