Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.insurance;
  
  import java.util.List;
This message contains the container for insurance plan book responses. 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="OTA_InsuranceBookRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="PlanForBookRS" maxOccurs="unbounded">
           <!-- Reference to inner class PlanForBookRS -->
         </xs:element>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class BookRS
 {
     private int choiceSelect = -1;
     private static final int SUCCESS_CHOICE = 0;
     private static final int ERRORS_CHOICE = 1;
     private Success success;
     private Warnings warnings;
     private Errors errors;
 
     private void setChoiceSelect(int choice) {
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearChoiceSelect() before changing existing choice");
         }
     }

    
Clear the choice selection.
 
     public void clearChoiceSelect() {
          = -1;
     }

    
Check if Success is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifSuccess() {
         return  == ;
     }

    
Get the 'Success' element value. Indicator for successful request processing

Returns:
value
 
     public Success getSuccess() {
         return ;
     }

    
Set the 'Success' element value. Indicator for successful request processing

Parameters:
success
 
     public void setSuccess(Success success) {
         setChoiceSelect();
         this. = success;
     }

    
Get the 'Warnings' element value.

Returns:
value
    public Warnings getWarnings() {
        return ;
    }

    
Set the 'Warnings' element value.

Parameters:
warnings
    public void setWarnings(Warnings warnings) {
        this. = warnings;
    }

    
Get the list of 'PlanForBookRS' element items.

Returns:
list
        return ;
    }

    
Set the list of 'PlanForBookRS' element items.

Parameters:
list
    public void setPlanForBookRSList(List<PlanForBookRSlist) {
         = list;
    }

    
Get the number of 'PlanForBookRS' element items.

Returns:
count
    public int sizePlanForBookRSList() {
        return .size();
    }

    
Add a 'PlanForBookRS' element item.

Parameters:
item
    public void addPlanForBookRS(PlanForBookRS item) {
        .add(item);
    }

    
Get 'PlanForBookRS' element item by position.

Parameters:
index
Returns:
item
    public PlanForBookRS getPlanForBookRS(int index) {
        return .get(index);
    }

    
Remove all 'PlanForBookRS' element items.
    public void clearPlanForBookRSList() {
        .clear();
    }

    
Check if Errors is current selection for choice.

Returns:
true if selection, false if not
    public boolean ifErrors() {
        return  == ;
    }

    
Get the 'Errors' element value.

Returns:
value
    public Errors getErrors() {
        return ;
    }

    
Set the 'Errors' element value.

Parameters:
errors
    public void setErrors(Errors errors) {
        this. = errors;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value. This element defines standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value. This element defines standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }
    
Contains a booking response for a single insurance plan. 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="PlanForBookRS" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PolicyDetail">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:UniqueID_Type" name="PolicyNumber"/>
             <xs:element type="ns:UniqueID_Type" name="RefNumber" minOccurs="0" maxOccurs="5"/>
             <xs:element type="ns:PlanRestrictionType" name="PlanRestrictions" minOccurs="0"/>
             <xs:element type="ns:URL_Type" name="PolicyDetailURL" minOccurs="0"/>
           </xs:sequence>
           <xs:attribute type="xs:date" use="optional" name="OrderDate"/>
           <xs:attributeGroup ref="ns:EffectiveExpireOptionalDateGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="CoveredTravelers" minOccurs="0">
         <!-- Reference to inner class CoveredTravelers -->
       </xs:element>
       <xs:element type="ns:InsCoverageDetailType" name="InsCoverageDetail" minOccurs="0"/>
       <xs:element type="ns:PlanCostType" name="PlanCost" minOccurs="0"/>
       <xs:element type="ns:ContactPersonType" name="Contact" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:PlanID_Group"/>
     <xs:attribute type="xs:string" use="optional" name="RPH"/>
   </xs:complexType>
 </xs:element>
 
    public static class PlanForBookRS
    {
        private UniqueID policyDetailPolicyNumber;
        private List<UniqueIDpolicyDetailRefNumberList = new ArrayList<UniqueID>();
        private URL policyDetailPolicyDetailURL;
        private LocalDate policyDetailOrderDate;
        private CoveredTravelers coveredTravelers;
        private InsCoverageDetail insCoverageDetail;
        private PlanCost planCost;
        private List<ContactPersoncontactList = new ArrayList<ContactPerson>();
        private PlanIDGroup planIDGroup;
        private String RPH;

        
Get the 'PolicyNumber' element value. Unique policy number assigned by the insurance company upon issuing the policy.

Returns:
value
        public UniqueID getPolicyDetailPolicyNumber() {
            return ;
        }

        
Set the 'PolicyNumber' element value. Unique policy number assigned by the insurance company upon issuing the policy.

Parameters:
policyDetailPolicyNumber
        public void setPolicyDetailPolicyNumber(
                UniqueID policyDetailPolicyNumber) {
            this. = policyDetailPolicyNumber;
        }

        
Get the list of 'RefNumber' element items. Internal vendor reference number for policy.

Returns:
list
        public List<UniqueIDgetPolicyDetailRefNumberList() {
            return ;
        }

        
Set the list of 'RefNumber' element items. Internal vendor reference number for policy.

Parameters:
list
        public void setPolicyDetailRefNumberList(List<UniqueIDlist) {
             = list;
        }

        
Get the number of 'RefNumber' element items.

Returns:
count
        public int sizePolicyDetailRefNumberList() {
            return .size();
        }

        
Add a 'RefNumber' element item.

Parameters:
item
        public void addPolicyDetailRefNumber(UniqueID item) {
            .add(item);
        }

        
Get 'RefNumber' element item by position.

Parameters:
index
Returns:
item
        public UniqueID getPolicyDetailRefNumber(int index) {
            return .get(index);
        }

        
Remove all 'RefNumber' element items.
        public void clearPolicyDetailRefNumberList() {
            .clear();
        }

        
Get the 'PlanRestrictions' element value. Container for any restrictions to coverage of the insurance plan.

Returns:
value
            return ;
        }

        
Set the 'PlanRestrictions' element value. Container for any restrictions to coverage of the insurance plan.

Parameters:
policyDetailPlanRestrictions
        public void setPolicyDetailPlanRestrictions(
                PlanRestriction policyDetailPlanRestrictions) {
            this. = policyDetailPlanRestrictions;
        }

        
Get the 'PolicyDetailURL' element value. Specifies the location of a file containing policy coverage details.

Returns:
value
        public URL getPolicyDetailPolicyDetailURL() {
            return ;
        }

        
Set the 'PolicyDetailURL' element value. Specifies the location of a file containing policy coverage details.

Parameters:
policyDetailPolicyDetailURL
        public void setPolicyDetailPolicyDetailURL(
                URL policyDetailPolicyDetailURL) {
            this. = policyDetailPolicyDetailURL;
        }

        
Get the 'OrderDate' attribute value. The date the insurance booking occured on.

Returns:
value
        public LocalDate getPolicyDetailOrderDate() {
            return ;
        }

        
Set the 'OrderDate' attribute value. The date the insurance booking occured on.

Parameters:
policyDetailOrderDate
        public void setPolicyDetailOrderDate(LocalDate policyDetailOrderDate) {
            this. = policyDetailOrderDate;
        }

        
Get the 'EffectiveExpireOptionalDateGroup' attributeGroup value.

Returns:
value
            return ;
        }

        
Set the 'EffectiveExpireOptionalDateGroup' attributeGroup value.

Parameters:
policyDetailEffectiveExpireOptionalDateGroup
                EffectiveExpireOptionalDateGroup policyDetailEffectiveExpireOptionalDateGroup) {
            this. = policyDetailEffectiveExpireOptionalDateGroup;
        }

        
Get the 'CoveredTravelers' element value.

Returns:
value
        public CoveredTravelers getCoveredTravelers() {
            return ;
        }

        
Set the 'CoveredTravelers' element value.

Parameters:
coveredTravelers
        public void setCoveredTravelers(CoveredTravelers coveredTravelers) {
            this. = coveredTravelers;
        }

        
Get the 'InsCoverageDetail' element value. Provides vendor with information about the traveler(s)' requirements for insurance coverage.

Returns:
value
        public InsCoverageDetail getInsCoverageDetail() {
            return ;
        }

        
Set the 'InsCoverageDetail' element value. Provides vendor with information about the traveler(s)' requirements for insurance coverage.

Parameters:
insCoverageDetail
        public void setInsCoverageDetail(InsCoverageDetail insCoverageDetail) {
            this. = insCoverageDetail;
        }

        
Get the 'PlanCost' element value. Contains information about the total price of the insurance plan.

Returns:
value
        public PlanCost getPlanCost() {
            return ;
        }

        
Set the 'PlanCost' element value. Contains information about the total price of the insurance plan.

Parameters:
planCost
        public void setPlanCost(PlanCost planCost) {
            this. = planCost;
        }

        
Get the list of 'Contact' element items. Defines contact information for an individual or company (for example, the provider's call center number or claims hotline).

Returns:
list
        public List<ContactPersongetContactList() {
            return ;
        }

        
Set the list of 'Contact' element items. Defines contact information for an individual or company (for example, the provider's call center number or claims hotline).

Parameters:
list
        public void setContactList(List<ContactPersonlist) {
             = list;
        }

        
Get the number of 'Contact' element items.

Returns:
count
        public int sizeContactList() {
            return .size();
        }

        
Add a 'Contact' element item.

Parameters:
item
        public void addContact(ContactPerson item) {
            .add(item);
        }

        
Get 'Contact' element item by position.

Parameters:
index
Returns:
item
        public ContactPerson getContact(int index) {
            return .get(index);
        }

        
Remove all 'Contact' element items.
        public void clearContactList() {
            .clear();
        }

        
Get the 'PlanID_Group' attributeGroup value.

Returns:
value
        public PlanIDGroup getPlanIDGroup() {
            return ;
        }

        
Set the 'PlanID_Group' attributeGroup value.

Parameters:
planIDGroup
        public void setPlanIDGroup(PlanIDGroup planIDGroup) {
            this. = planIDGroup;
        }

        
Get the 'RPH' attribute value. Maps plan booking response to single plan book request in the OTA_InsuranceBookRQ message

Returns:
value
        public String getRPH() {
            return ;
        }

        
Set the 'RPH' attribute value. Maps plan booking response to single plan book request in the OTA_InsuranceBookRQ message

Parameters:
RPH
        public void setRPH(String RPH) {
            this. = RPH;
        }
        
Container for information about the travelers requesting coverage by the insurance plan. 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="CoveredTravelers" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:CoveredTravelerType" name="CoveredTraveler" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class CoveredTravelers
        {
            private List<CoveredTravelercoveredTravelerList = new ArrayList<CoveredTraveler>();

            
Get the list of 'CoveredTraveler' element items. Contains identifying information, coverage requirements and journey information for each individual requesting coverage by the insurance plan.

Returns:
list
            public List<CoveredTravelergetCoveredTravelerList() {
                return ;
            }

            
Set the list of 'CoveredTraveler' element items. Contains identifying information, coverage requirements and journey information for each individual requesting coverage by the insurance plan.

Parameters:
list
            public void setCoveredTravelerList(List<CoveredTravelerlist) {
                 = list;
            }

            
Get the number of 'CoveredTraveler' element items.

Returns:
count
            public int sizeCoveredTravelerList() {
                return .size();
            }

            
Add a 'CoveredTraveler' element item.

Parameters:
item
            public void addCoveredTraveler(CoveredTraveler item) {
                .add(item);
            }

            
Get 'CoveredTraveler' element item by position.

Parameters:
index
Returns:
item
            public CoveredTraveler getCoveredTraveler(int index) {
                return .get(index);
            }

            
Remove all 'CoveredTraveler' element items.
            public void clearCoveredTravelerList() {
                .clear();
            }
        }
    }
New to GrepCode? Check out our FAQ X