org.ota.insurance
Class CoveredTraveler

java.lang.Object
  extended by org.ota.insurance.CoveredTraveler

public class CoveredTraveler
extends java.lang.Object

Contains identifying information as well as coverage requirements and journey information for each individual requesting coverage by the insurance plan. 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="CoveredTravelerType">
   <xs:sequence>
     <xs:element name="CoveredPerson">
       <xs:complexType>
         <xs:complexContent>
           <xs:extension base="ns:PersonNameType">
             <xs:attribute type="xs:string" use="required" name="Relation"/>
             <xs:attributeGroup ref="ns:BirthDateGroup"/>
             <xs:attribute type="xs:int" use="optional" name="Age"/>
           </xs:extension>
         </xs:complexContent>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:EmailType" name="Email" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:AddressInfoType" name="Address" minOccurs="0" maxOccurs="5"/>
     <xs:element name="Telephone" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:TelephoneInfoGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="CitizenCountryName" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CitizenCountryNameGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:DocumentType" name="Document" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:ContactPersonType" name="EmergencyContact" minOccurs="0" maxOccurs="5"/>
     <xs:element name="Beneficiary" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Beneficiary -->
     </xs:element>
     <xs:element type="ns:IndCoverageReqsType" name="IndCoverageReqs" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="BirthDateGroup">
   <xs:attribute type="xs:date" use="optional" name="BirthDate"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class CoveredTraveler.Beneficiary
          Schema fragment(s) for this class:
 
Constructor Summary
CoveredTraveler()
           
 
Method Summary
 void addAddress(AddressInfo item)
          Add a 'Address' element item.
 void addBeneficiary(CoveredTraveler.Beneficiary item)
          Add a 'Beneficiary' element item.
 void addDocument(Document item)
          Add a 'Document' element item.
 void addEmail(Email item)
          Add a 'Email' element item.
 void addEmergencyContact(ContactPerson item)
          Add a 'EmergencyContact' element item.
 void addTelephone(TelephoneInfoGroup item)
          Add a 'Telephone' element item.
 void clearAddresses()
          Remove all 'Address' element items.
 void clearBeneficiaries()
          Remove all 'Beneficiary' element items.
 void clearDocuments()
          Remove all 'Document' element items.
 void clearEmails()
          Remove all 'Email' element items.
 void clearEmergencyContacts()
          Remove all 'EmergencyContact' element items.
 void clearTelephones()
          Remove all 'Telephone' element items.
 AddressInfo getAddress(int index)
          Get 'Address' element item by position.
 java.util.List<AddressInfo> getAddresses()
          Get the list of 'Address' element items.
 java.util.List<CoveredTraveler.Beneficiary> getBeneficiaries()
          Get the list of 'Beneficiary' element items.
 CoveredTraveler.Beneficiary getBeneficiary(int index)
          Get 'Beneficiary' element item by position.
 CitizenCountryNameGroup getCitizenCountryName()
          Get the 'CitizenCountryNameGroup' attributeGroup value.
 java.lang.Integer getCoveredPersonAge()
          Get the 'Age' attribute value.
 java.sql.Date getCoveredPersonBirthDate()
          Get the 'BirthDate' attribute value.
 PersonName getCoveredPersonPersonName()
          Get the extension value.
 java.lang.String getCoveredPersonRelation()
          Get the 'Relation' attribute value.
 Document getDocument(int index)
          Get 'Document' element item by position.
 java.util.List<Document> getDocuments()
          Get the list of 'Document' element items.
 Email getEmail(int index)
          Get 'Email' element item by position.
 java.util.List<Email> getEmails()
          Get the list of 'Email' element items.
 ContactPerson getEmergencyContact(int index)
          Get 'EmergencyContact' element item by position.
 java.util.List<ContactPerson> getEmergencyContacts()
          Get the list of 'EmergencyContact' element items.
 IndCoverageReqs getIndCoverageReqs()
          Get the 'IndCoverageReqs' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 TelephoneInfoGroup getTelephone(int index)
          Get 'Telephone' element item by position.
 java.util.List<TelephoneInfoGroup> getTelephones()
          Get the list of 'Telephone' element items.
 void setAddresses(java.util.List<AddressInfo> list)
          Set the list of 'Address' element items.
 void setBeneficiaries(java.util.List<CoveredTraveler.Beneficiary> list)
          Set the list of 'Beneficiary' element items.
 void setCitizenCountryName(CitizenCountryNameGroup citizenCountryName)
          Set the 'CitizenCountryNameGroup' attributeGroup value.
 void setCoveredPersonAge(java.lang.Integer coveredPersonAge)
          Set the 'Age' attribute value.
 void setCoveredPersonBirthDate(java.sql.Date coveredPersonBirthDate)
          Set the 'BirthDate' attribute value.
 void setCoveredPersonPersonName(PersonName coveredPersonPersonName)
          Set the extension value.
 void setCoveredPersonRelation(java.lang.String coveredPersonRelation)
          Set the 'Relation' attribute value.
 void setDocuments(java.util.List<Document> list)
          Set the list of 'Document' element items.
 void setEmails(java.util.List<Email> list)
          Set the list of 'Email' element items.
 void setEmergencyContacts(java.util.List<ContactPerson> list)
          Set the list of 'EmergencyContact' element items.
 void setIndCoverageReqs(IndCoverageReqs indCoverageReqs)
          Set the 'IndCoverageReqs' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setTelephones(java.util.List<TelephoneInfoGroup> list)
          Set the list of 'Telephone' element items.
 int sizeAddresses()
          Get the number of 'Address' element items.
 int sizeBeneficiaries()
          Get the number of 'Beneficiary' element items.
 int sizeDocuments()
          Get the number of 'Document' element items.
 int sizeEmails()
          Get the number of 'Email' element items.
 int sizeEmergencyContacts()
          Get the number of 'EmergencyContact' element items.
 int sizeTelephones()
          Get the number of 'Telephone' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoveredTraveler

public CoveredTraveler()
Method Detail

getCoveredPersonPersonName

public PersonName getCoveredPersonPersonName()
Get the extension value.

Returns:
value

setCoveredPersonPersonName

public void setCoveredPersonPersonName(PersonName coveredPersonPersonName)
Set the extension value.

Parameters:
coveredPersonPersonName -

getCoveredPersonRelation

public java.lang.String getCoveredPersonRelation()
Get the 'Relation' attribute value.

Returns:
value

setCoveredPersonRelation

public void setCoveredPersonRelation(java.lang.String coveredPersonRelation)
Set the 'Relation' attribute value.

Parameters:
coveredPersonRelation -

getCoveredPersonBirthDate

public java.sql.Date getCoveredPersonBirthDate()
Get the 'BirthDate' attribute value. Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.

Returns:
value

setCoveredPersonBirthDate

public void setCoveredPersonBirthDate(java.sql.Date coveredPersonBirthDate)
Set the 'BirthDate' attribute value. Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.

Parameters:
coveredPersonBirthDate -

getCoveredPersonAge

public java.lang.Integer getCoveredPersonAge()
Get the 'Age' attribute value.

Returns:
value

setCoveredPersonAge

public void setCoveredPersonAge(java.lang.Integer coveredPersonAge)
Set the 'Age' attribute value.

Parameters:
coveredPersonAge -

getEmails

public java.util.List<Email> getEmails()
Get the list of 'Email' element items. Defines an electronic mail address of the traveler.

Returns:
list

setEmails

public void setEmails(java.util.List<Email> list)
Set the list of 'Email' element items. Defines an electronic mail address of the traveler.

Parameters:
list -

sizeEmails

public int sizeEmails()
Get the number of 'Email' element items.

Returns:
count

addEmail

public void addEmail(Email item)
Add a 'Email' element item.

Parameters:
item -

getEmail

public Email getEmail(int index)
Get 'Email' element item by position.

Parameters:
index -
Returns:
item

clearEmails

public void clearEmails()
Remove all 'Email' element items.


getAddresses

public java.util.List<AddressInfo> getAddresses()
Get the list of 'Address' element items. Defines a physical address for the traveler.

Returns:
list

setAddresses

public void setAddresses(java.util.List<AddressInfo> list)
Set the list of 'Address' element items. Defines a physical address for the traveler.

Parameters:
list -

sizeAddresses

public int sizeAddresses()
Get the number of 'Address' element items.

Returns:
count

addAddress

public void addAddress(AddressInfo item)
Add a 'Address' element item.

Parameters:
item -

getAddress

public AddressInfo getAddress(int index)
Get 'Address' element item by position.

Parameters:
index -
Returns:
item

clearAddresses

public void clearAddresses()
Remove all 'Address' element items.


getTelephones

public java.util.List<TelephoneInfoGroup> getTelephones()
Get the list of 'Telephone' element items. Identifies a telephone number for the traveler.

Returns:
list

setTelephones

public void setTelephones(java.util.List<TelephoneInfoGroup> list)
Set the list of 'Telephone' element items. Identifies a telephone number for the traveler.

Parameters:
list -

sizeTelephones

public int sizeTelephones()
Get the number of 'Telephone' element items.

Returns:
count

addTelephone

public void addTelephone(TelephoneInfoGroup item)
Add a 'Telephone' element item.

Parameters:
item -

getTelephone

public TelephoneInfoGroup getTelephone(int index)
Get 'Telephone' element item by position.

Parameters:
index -
Returns:
item

clearTelephones

public void clearTelephones()
Remove all 'Telephone' element items.


getCitizenCountryName

public CitizenCountryNameGroup getCitizenCountryName()
Get the 'CitizenCountryNameGroup' attributeGroup value. Country of citizenship for the individual requesting to be covered by the insurance policy.

Returns:
value

setCitizenCountryName

public void setCitizenCountryName(CitizenCountryNameGroup citizenCountryName)
Set the 'CitizenCountryNameGroup' attributeGroup value. Country of citizenship for the individual requesting to be covered by the insurance policy.

Parameters:
citizenCountryName -

getDocuments

public java.util.List<Document> getDocuments()
Get the list of 'Document' element items. Contains information about documents used for travel, such as passports, driver's licenses or social security numbers.

Returns:
list

setDocuments

public void setDocuments(java.util.List<Document> list)
Set the list of 'Document' element items. Contains information about documents used for travel, such as passports, driver's licenses or social security numbers.

Parameters:
list -

sizeDocuments

public int sizeDocuments()
Get the number of 'Document' element items.

Returns:
count

addDocument

public void addDocument(Document item)
Add a 'Document' element item.

Parameters:
item -

getDocument

public Document getDocument(int index)
Get 'Document' element item by position.

Parameters:
index -
Returns:
item

clearDocuments

public void clearDocuments()
Remove all 'Document' element items.


getEmergencyContacts

public java.util.List<ContactPerson> getEmergencyContacts()
Get the list of 'EmergencyContact' element items. Defines an emergency contact person for traveler.

Returns:
list

setEmergencyContacts

public void setEmergencyContacts(java.util.List<ContactPerson> list)
Set the list of 'EmergencyContact' element items. Defines an emergency contact person for traveler.

Parameters:
list -

sizeEmergencyContacts

public int sizeEmergencyContacts()
Get the number of 'EmergencyContact' element items.

Returns:
count

addEmergencyContact

public void addEmergencyContact(ContactPerson item)
Add a 'EmergencyContact' element item.

Parameters:
item -

getEmergencyContact

public ContactPerson getEmergencyContact(int index)
Get 'EmergencyContact' element item by position.

Parameters:
index -
Returns:
item

clearEmergencyContacts

public void clearEmergencyContacts()
Remove all 'EmergencyContact' element items.


getBeneficiaries

public java.util.List<CoveredTraveler.Beneficiary> getBeneficiaries()
Get the list of 'Beneficiary' element items.

Returns:
list

setBeneficiaries

public void setBeneficiaries(java.util.List<CoveredTraveler.Beneficiary> list)
Set the list of 'Beneficiary' element items.

Parameters:
list -

sizeBeneficiaries

public int sizeBeneficiaries()
Get the number of 'Beneficiary' element items.

Returns:
count

addBeneficiary

public void addBeneficiary(CoveredTraveler.Beneficiary item)
Add a 'Beneficiary' element item.

Parameters:
item -

getBeneficiary

public CoveredTraveler.Beneficiary getBeneficiary(int index)
Get 'Beneficiary' element item by position.

Parameters:
index -
Returns:
item

clearBeneficiaries

public void clearBeneficiaries()
Remove all 'Beneficiary' element items.


getIndCoverageReqs

public IndCoverageReqs getIndCoverageReqs()
Get the 'IndCoverageReqs' element value. Contains certain traveler-specific information required for quoting or booking an insurance plan.

Returns:
value

setIndCoverageReqs

public void setIndCoverageReqs(IndCoverageReqs indCoverageReqs)
Set the 'IndCoverageReqs' element value. Contains certain traveler-specific information required for quoting or booking an insurance plan.

Parameters:
indCoverageReqs -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value.

Parameters:
RPH -