Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.pkg;
  
  import java.util.List;
The message returns a basic costing for a requested package. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_PkgCostRS">
   <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="Package">
           <xs:complexType>
             <xs:complexContent>
               <xs:extension base="ns:PackageResponseType">
                 <xs:sequence>
                   <xs:element type="ns:PkgInvoiceDetail" name="CostSummary" minOccurs="0"/>
                   <xs:element name="AcceptedPaymtForms" minOccurs="0">
                     <!-- Reference to inner class AcceptedPaymtForms -->
                   </xs:element>
                 </xs:sequence>
               </xs:extension>
             </xs:complexContent>
           </xs:complexType>
         </xs:element>
         <xs:element name="AvailableExtras" minOccurs="0">
           <!-- Reference to inner class AvailableExtras -->
         </xs:element>
         <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:CompanyID_AttributesGroup"/>
     <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
   </xs:complexType>
 </xs:element>
 
 
 public class CostRS
 {
     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 AvailableExtras availableExtras;
     private TPAExtensions TPAExtensions;
     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. The presence of this element indicates that the receiving system has successfully processed the preceding request message.

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

    
Set the 'Success' element value. The presence of this element indicates that the receiving system has successfully processed the preceding request message.

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

    
Get the 'Warnings' element value. The presence of this element indicates that, while the preceding request message has been successfully processed, the requeat may not have been fully satisfied.

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

    
Set the 'Warnings' element value. The presence of this element indicates that, while the preceding request message has been successfully processed, the requeat may not have been fully satisfied.

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

    
Get the extension value.

Returns:
value
        return ;
    }

    
Set the extension value.

Parameters:
packagePackageResponse
    public void setPackagePackageResponse(PackageResponse packagePackageResponse) {
        this. = packagePackageResponse;
    }

    
Get the 'CostSummary' element value. A summary of the basic costs for the package.

Returns:
value
        return ;
    }

    
Set the 'CostSummary' element value. A summary of the basic costs for the package.

Parameters:
packageCostSummary
    public void setPackageCostSummary(PkgInvoiceDetail packageCostSummary) {
        this. = packageCostSummary;
    }

    
Get the 'AcceptedPaymtForms' element value. Details of the selected package.

Returns:
value
        return ;
    }

    
Set the 'AcceptedPaymtForms' element value. Details of the selected package.

Parameters:
acceptedPaymtForms
    public void setAcceptedPaymtForms(AcceptedPaymtForms acceptedPaymtForms) {
        this. = acceptedPaymtForms;
    }

    
Get the 'AvailableExtras' element value.

Returns:
value
        return ;
    }

    
Set the 'AvailableExtras' element value.

Parameters:
availableExtras
    public void setAvailableExtras(AvailableExtras availableExtras) {
        this. = availableExtras;
    }

    
Get the 'TPA_Extensions' element value.

Returns:
value
    public TPAExtensions getTPAExtensions() {
        return ;
    }

    
Set the 'TPA_Extensions' element value.

Parameters:
TPAExtensions
    public void setTPAExtensions(TPAExtensions TPAExtensions) {
        this. = TPAExtensions;
    }

    
Check if Errors is current selection for choice.

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

    
Get the 'Errors' element value. The presence of this element indicates that the receiving system has been unable to process preceding request message.

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

    
Set the 'Errors' element value. The presence of this element indicates that the receiving system has been unable to process preceding request message.

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;
    }

    
Get the 'CompanyID_AttributesGroup' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'CompanyID_AttributesGroup' attributeGroup value.

Parameters:
companyIDAttributesGroup
    public void setCompanyIDAttributesGroup(
            CompanyIDAttributesGroup companyIDAttributesGroup) {
        this. = companyIDAttributesGroup;
    }

    
Get the 'CurrencyCodeGroup' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'CurrencyCodeGroup' attributeGroup value.

Parameters:
currencyCodeGroup
    public void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup) {
        this. = currencyCodeGroup;
    }
    
Details of the forms of payment accepted for this package. This item may not be present when there is a credit agreement in place. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="AcceptedPaymtForms" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="AcceptedPaymtForm" maxOccurs="9">
         <!-- Reference to inner class AcceptedPaymtForm -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class AcceptedPaymtForms
    {
        private List<AcceptedPaymtFormacceptedPaymtFormList = new ArrayList<AcceptedPaymtForm>();

        
Get the list of 'AcceptedPaymtForm' element items.

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

        
Set the list of 'AcceptedPaymtForm' element items.

Parameters:
list
        public void setAcceptedPaymtFormList(List<AcceptedPaymtFormlist) {
             = list;
        }

        
Get the number of 'AcceptedPaymtForm' element items.

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

        
Add a 'AcceptedPaymtForm' element item.

Parameters:
item
        public void addAcceptedPaymtForm(AcceptedPaymtForm item) {
            .add(item);
        }

        
Get 'AcceptedPaymtForm' element item by position.

Parameters:
index
Returns:
item
        public AcceptedPaymtForm getAcceptedPaymtForm(int index) {
            return .get(index);
        }

        
Remove all 'AcceptedPaymtForm' element items.
        public void clearAcceptedPaymtFormList() {
            .clear();
        }
        
Provides details of acceptable types of payment (e.g. Credit or Debit Card) together with applicable fees, if any. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="AcceptedPaymtForm" maxOccurs="9">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="ns:MonetaryRuleType">
         <xs:attribute type="xs:string" use="optional" name="IssuerCode"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
        public static class AcceptedPaymtForm
        {
            private MonetaryRule monetaryRule;
            private String issuerCode;

            
Get the extension value.

Returns:
value
            public MonetaryRule getMonetaryRule() {
                return ;
            }

            
Set the extension value.

Parameters:
monetaryRule
            public void setMonetaryRule(MonetaryRule monetaryRule) {
                this. = monetaryRule;
            }

            
Get the 'IssuerCode' attribute value. Code identifying the issuer of a Switch debit card.

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

            
Set the 'IssuerCode' attribute value. Code identifying the issuer of a Switch debit card.

Parameters:
issuerCode
            public void setIssuerCode(String issuerCode) {
                this. = issuerCode;
            }
        }
    }
    
A collection of extras which are bookable with the selected holiday package. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="AvailableExtras" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ExtrasInfoType" name="AvailableExtra" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class AvailableExtras
    {
        private List<ExtrasInfoavailableExtraList = new ArrayList<ExtrasInfo>();

        
Get the list of 'AvailableExtra' element items. Details of an extra which is bookable with the selected holiday package.

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

        
Set the list of 'AvailableExtra' element items. Details of an extra which is bookable with the selected holiday package.

Parameters:
list
        public void setAvailableExtraList(List<ExtrasInfolist) {
             = list;
        }

        
Get the number of 'AvailableExtra' element items.

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

        
Add a 'AvailableExtra' element item.

Parameters:
item
        public void addAvailableExtra(ExtrasInfo item) {
            .add(item);
        }

        
Get 'AvailableExtra' element item by position.

Parameters:
index
Returns:
item
        public ExtrasInfo getAvailableExtra(int index) {
            return .get(index);
        }

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