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 root element for insurance plan search response message 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_InsurancePlanSearchRS">
   <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="AvailablePlans">
           <xs:complexType>
             <xs:sequence>
               <xs:element name="AvailablePlan" maxOccurs="999">
                 <!-- Reference to inner class AvailablePlan -->
               </xs:element>
             </xs:sequence>
           </xs:complexType>
         </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 PlanSearchRS
 {
     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. An element that is not intended to contain any data. The mere presence of a success element within the response message indicates that the incoming request message was processed successfully.

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

    
Set the 'Success' element value. An element that is not intended to contain any data. The mere presence of a success element within the response message indicates that the incoming request message was processed successfully.

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

    
Get the 'Warnings' element value. Indicates that the recipient of the request message identified one or more business-level warnings/errors, but the message itself was successfully processed.

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

    
Set the 'Warnings' element value. Indicates that the recipient of the request message identified one or more business-level warnings/errors, but the message itself was successfully processed.

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

    
Get the list of 'AvailablePlan' element items. Collection of plan that meet the search request requirements.

Returns:
list
        return ;
    }

    
Set the list of 'AvailablePlan' element items. Collection of plan that meet the search request requirements.

Parameters:
list
    public void setAvailablePlanList(List<AvailablePlanlist) {
         = list;
    }

    
Get the number of 'AvailablePlan' element items.

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

    
Add a 'AvailablePlan' element item.

Parameters:
item
    public void addAvailablePlan(AvailablePlan item) {
        .add(item);
    }

    
Get 'AvailablePlan' element item by position.

Parameters:
index
Returns:
item
    public AvailablePlan getAvailablePlan(int index) {
        return .get(index);
    }

    
Remove all 'AvailablePlan' element items.
    public void clearAvailablePlanList() {
        .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. Indicates that an error occurred in the processing of the incoming request message. An error is defined as a malformed XML message that could not be processed.

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

    
Set the 'Errors' element value. Indicates that an error occurred in the processing of the incoming request message. An error is defined as a malformed XML message that could not be processed.

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

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }
    
Container for information about 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="AvailablePlan" maxOccurs="999">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PlanDetail" minOccurs="0">
         <!-- Reference to inner class PlanDetail -->
       </xs:element>
       <xs:element name="ProviderDetail" minOccurs="0">
         <!-- Reference to inner class ProviderDetail -->
       </xs:element>
       <xs:element name="UnderwriterDetail" minOccurs="0">
         <!-- Reference to inner class UnderwriterDetail -->
       </xs:element>
       <xs:element type="ns:PlanRestrictionType" name="PlanRestrictions" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="Featured"/>
     <xs:attribute type="ns:PreferLevelType" use="optional" name="PreferLevel"/>
     <xs:attributeGroup ref="ns:PlanID_Group"/>
     <xs:attributeGroup ref="ns:EffectiveExpireOptionalDateGroup"/>
   </xs:complexType>
 </xs:element>
 
    public static class AvailablePlan
    {
        private PlanDetail planDetail;
        private ProviderDetail providerDetail;
        private UnderwriterDetail underwriterDetail;
        private PlanRestriction planRestrictions;
        private Boolean featured;
        private PreferLevel preferLevel;
        private PlanIDGroup planIDGroup;
Get the 'PlanDetail' element value.

Returns:
value
        public PlanDetail getPlanDetail() {
            return ;
        }

        
Set the 'PlanDetail' element value.

Parameters:
planDetail
        public void setPlanDetail(PlanDetail planDetail) {
            this. = planDetail;
        }

        
Get the 'ProviderDetail' element value.

Returns:
value
        public ProviderDetail getProviderDetail() {
            return ;
        }

        
Set the 'ProviderDetail' element value.

Parameters:
providerDetail
        public void setProviderDetail(ProviderDetail providerDetail) {
            this. = providerDetail;
        }

        
Get the 'UnderwriterDetail' element value.

Returns:
value
        public UnderwriterDetail getUnderwriterDetail() {
            return ;
        }

        
Set the 'UnderwriterDetail' element value.

Parameters:
underwriterDetail
        public void setUnderwriterDetail(UnderwriterDetail underwriterDetail) {
            this. = underwriterDetail;
        }

        
Get the 'PlanRestrictions' element value. Collection of restrictions associated with purchasing this insurance product.

Returns:
value
        public PlanRestriction getPlanRestrictions() {
            return ;
        }

        
Set the 'PlanRestrictions' element value. Collection of restrictions associated with purchasing this insurance product.

Parameters:
planRestrictions
        public void setPlanRestrictions(PlanRestriction planRestrictions) {
            this. = planRestrictions;
        }

        
Get the 'Featured' attribute value. When true, indicates the plan has been marked as a featured product by the insurance company or 3rd party vendor.

Returns:
value
        public Boolean getFeatured() {
            return ;
        }

        
Set the 'Featured' attribute value. When true, indicates the plan has been marked as a featured product by the insurance company or 3rd party vendor.

Parameters:
featured
        public void setFeatured(Boolean featured) {
            this. = featured;
        }

        
Get the 'PreferLevel' attribute value. May be used to indicate how well the plan matches the original search request parameters.

Returns:
value
        public PreferLevel getPreferLevel() {
            return ;
        }

        
Set the 'PreferLevel' attribute value. May be used to indicate how well the plan matches the original search request parameters.

Parameters:
preferLevel
        public void setPreferLevel(PreferLevel preferLevel) {
            this. = preferLevel;
        }

        
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 'EffectiveExpireOptionalDateGroup' attributeGroup value. Indicates how long plan information is valid.

Returns:
value
            return ;
        }

        
Set the 'EffectiveExpireOptionalDateGroup' attributeGroup value. Indicates how long plan information is valid.

Parameters:
effectiveExpireOptionalDateGroup
        public void setEffectiveExpireOptionalDateGroup(
                EffectiveExpireOptionalDateGroup effectiveExpireOptionalDateGroup) {
            this. = effectiveExpireOptionalDateGroup;
        }
        
Container for detailed descriptions and URLs associated with the insurance product. 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="PlanDetail" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:FormattedTextType" name="PlanDescription" minOccurs="0"/>
       <xs:element type="ns:URL_Type" name="QuoteDetailURL" minOccurs="0"/>
       <xs:element type="ns:URL_Type" name="BookingDetailURL" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class PlanDetail
        {
            private FormattedText planDescription;
            private URL quoteDetailURL;
            private URL bookingDetailURL;

            
Get the 'PlanDescription' element value. Detailed description of insurance product.

Returns:
value
            public FormattedText getPlanDescription() {
                return ;
            }

            
Set the 'PlanDescription' element value. Detailed description of insurance product.

Parameters:
planDescription
            public void setPlanDescription(FormattedText planDescription) {
                this. = planDescription;
            }

            
Get the 'QuoteDetailURL' element value. URL where user may get more information about quoting this product.

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

            
Set the 'QuoteDetailURL' element value. URL where user may get more information about quoting this product.

Parameters:
quoteDetailURL
            public void setQuoteDetailURL(URL quoteDetailURL) {
                this. = quoteDetailURL;
            }

            
Get the 'BookingDetailURL' element value. URL where user may get more information about purchasing this product.

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

            
Set the 'BookingDetailURL' element value. URL where user may get more information about purchasing this product.

Parameters:
bookingDetailURL
            public void setBookingDetailURL(URL bookingDetailURL) {
                this. = bookingDetailURL;
            }
        }
        
Container for the name and detailed description of the insurance company offering the product. 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="ProviderDetail" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:CompanyNameType" name="ProviderCompany" minOccurs="0"/>
       <xs:element type="ns:FormattedTextType" name="ProviderDescription" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class ProviderDetail
        {
            private CompanyName providerCompany;
            private FormattedText providerDescription;

            
Get the 'ProviderCompany' element value. Name of the insurance company offering the product.

Returns:
value
            public CompanyName getProviderCompany() {
                return ;
            }

            
Set the 'ProviderCompany' element value. Name of the insurance company offering the product.

Parameters:
providerCompany
            public void setProviderCompany(CompanyName providerCompany) {
                this. = providerCompany;
            }

            
Get the 'ProviderDescription' element value. Detailed description of the insurance company.

Returns:
value
            public FormattedText getProviderDescription() {
                return ;
            }

            
Set the 'ProviderDescription' element value. Detailed description of the insurance company.

Parameters:
providerDescription
            public void setProviderDescription(FormattedText providerDescription) {
                this. = providerDescription;
            }
        }
        
Container for the name and detailed description of the company underwriting the insurance product. 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="UnderwriterDetail" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:CompanyNameType" name="UnderwriterCompany" minOccurs="0"/>
       <xs:element type="ns:FormattedTextType" name="UnderwriterDescription" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class UnderwriterDetail
        {
            private CompanyName underwriterCompany;
            private FormattedText underwriterDescription;

            
Get the 'UnderwriterCompany' element value. Name of the company underwriting the insurance product.

Returns:
value
            public CompanyName getUnderwriterCompany() {
                return ;
            }

            
Set the 'UnderwriterCompany' element value. Name of the company underwriting the insurance product.

Parameters:
underwriterCompany
            public void setUnderwriterCompany(CompanyName underwriterCompany) {
                this. = underwriterCompany;
            }

            
Get the 'UnderwriterDescription' element value. Detailed description of the underwriter.

Returns:
value
            public FormattedText getUnderwriterDescription() {
                return ;
            }

            
Set the 'UnderwriterDescription' element value. Detailed description of the underwriter.

Parameters:
underwriterDescription
            public void setUnderwriterDescription(
                    FormattedText underwriterDescription) {
                this. = underwriterDescription;
            }
        }
    }
New to GrepCode? Check out our FAQ X