Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
Contains pricing and payment information for the booking. 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="CruiseBookingInfoType">
   <xs:sequence>
     <xs:element name="BookingPrices" minOccurs="0">
       <!-- Reference to inner class BookingPrices -->
     </xs:element>
     <xs:element name="PaymentSchedule" minOccurs="0">
       <!-- Reference to inner class PaymentSchedule -->
     </xs:element>
     <xs:element name="GuestPrices" minOccurs="0">
       <!-- Reference to inner class GuestPrices -->
     </xs:element>
     <xs:element type="ns:ParagraphType" name="PolicyInfo" minOccurs="0" maxOccurs="5"/>
   </xs:sequence>
 </xs:complexType>
 
 
 public class CruiseBookingInfo
 {
     private BookingPrices bookingPrices;
     private PaymentSchedule paymentSchedule;
     private GuestPrices guestPrices;
     private List<ParagraphpolicyInfoList = new ArrayList<Paragraph>();

    
Get the 'BookingPrices' element value.

Returns:
value
 
     public BookingPrices getBookingPrices() {
         return ;
     }

    
Set the 'BookingPrices' element value.

Parameters:
bookingPrices
 
     public void setBookingPrices(BookingPrices bookingPrices) {
         this. = bookingPrices;
     }

    
Get the 'PaymentSchedule' element value.

Returns:
value
 
     public PaymentSchedule getPaymentSchedule() {
         return ;
     }

    
Set the 'PaymentSchedule' element value.

Parameters:
paymentSchedule
 
     public void setPaymentSchedule(PaymentSchedule paymentSchedule) {
         this. = paymentSchedule;
     }

    
Get the 'GuestPrices' element value.

Returns:
value
 
     public GuestPrices getGuestPrices() {
         return ;
     }

    
Set the 'GuestPrices' element value.

Parameters:
guestPrices
 
     public void setGuestPrices(GuestPrices guestPrices) {
         this. = guestPrices;
     }

    
Get the list of 'PolicyInfo' element items. May be used to provide price policy information.

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

    
Set the list of 'PolicyInfo' element items. May be used to provide price policy information.

Parameters:
list
    public void setPolicyInfoList(List<Paragraphlist) {
         = list;
    }

    
Get the number of 'PolicyInfo' element items.

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

    
Add a 'PolicyInfo' element item.

Parameters:
item
    public void addPolicyInfo(Paragraph item) {
        .add(item);
    }

    
Get 'PolicyInfo' element item by position.

Parameters:
index
Returns:
item
    public Paragraph getPolicyInfo(int index) {
        return .get(index);
    }

    
Remove all 'PolicyInfo' element items.
    public void clearPolicyInfoList() {
        .clear();
    }
    
Specifies the booking prices for the booking. 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="BookingPrices" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="BookingPrice" maxOccurs="99">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CruisePriceGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class BookingPrices
    {
        private List<CruisePriceGroupbookingPriceList = new ArrayList<CruisePriceGroup>();

        
Get the list of 'BookingPrice' element items. Summary of all charges for the PriceType for the booking.

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

        
Set the list of 'BookingPrice' element items. Summary of all charges for the PriceType for the booking.

Parameters:
list
        public void setBookingPriceList(List<CruisePriceGrouplist) {
             = list;
        }

        
Get the number of 'BookingPrice' element items.

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

        
Add a 'BookingPrice' element item.

Parameters:
item
        public void addBookingPrice(CruisePriceGroup item) {
            .add(item);
        }

        
Get 'BookingPrice' element item by position.

Parameters:
index
Returns:
item
        public CruisePriceGroup getBookingPrice(int index) {
            return .get(index);
        }

        
Remove all 'BookingPrice' element items.
        public void clearBookingPriceList() {
            .clear();
        }
    }
    
Specifies the payment schedule information. 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="PaymentSchedule" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Payment" maxOccurs="99">
         <!-- Reference to inner class Payment -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class PaymentSchedule
    {
        private List<PaymentpaymentList = new ArrayList<Payment>();

        
Get the list of 'Payment' element items.

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

        
Set the list of 'Payment' element items.

Parameters:
list
        public void setPaymentList(List<Paymentlist) {
             = list;
        }

        
Get the number of 'Payment' element items.

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

        
Add a 'Payment' element item.

Parameters:
item
        public void addPayment(Payment item) {
            .add(item);
        }

        
Get 'Payment' element item by position.

Parameters:
index
Returns:
item
        public Payment getPayment(int index) {
            return .get(index);
        }

        
Remove all 'Payment' element items.
        public void clearPaymentList() {
            .clear();
        }
        
Used to specify multiple currency amounts as well as payment types (e.g., deposit, final). 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="Payment" maxOccurs="99">
   <xs:complexType>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
     <xs:attribute type="xs:int" use="required" name="PaymentNumber"/>
     <xs:attribute type="xs:string" use="required" name="DueDate"/>
   </xs:complexType>
 </xs:element>
 
        public static class Payment
        {
            private CurrencyAmountGroup currencyAmountGroup;
            private Integer paymentNumber;
            private String dueDate;

            
Get the 'CurrencyAmountGroup' attributeGroup value.

Returns:
value
            public CurrencyAmountGroup getCurrencyAmountGroup() {
                return ;
            }

            
Set the 'CurrencyAmountGroup' attributeGroup value.

Parameters:
currencyAmountGroup
            public void setCurrencyAmountGroup(
                    CurrencyAmountGroup currencyAmountGroup) {
                this. = currencyAmountGroup;
            }

            
Get the 'PaymentNumber' attribute value. Specifies the Payment Number. Typically would be used to indicate the deposit as well as the final payments as determined by the backend system.

Returns:
value
            public Integer getPaymentNumber() {
                return ;
            }

            
Set the 'PaymentNumber' attribute value. Specifies the Payment Number. Typically would be used to indicate the deposit as well as the final payments as determined by the backend system.

Parameters:
paymentNumber
            public void setPaymentNumber(Integer paymentNumber) {
                this. = paymentNumber;
            }

            
Get the 'DueDate' attribute value. Specifies the Payment Due Date/Time.

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

            
Set the 'DueDate' attribute value. Specifies the Payment Due Date/Time.

Parameters:
dueDate
            public void setDueDate(String dueDate) {
                this. = dueDate;
            }
        }
    }
    
Specifies the guest level price information. 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="GuestPrices" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="GuestPrice" maxOccurs="9">
         <!-- Reference to inner class GuestPrice -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class GuestPrices
    {
        private List<GuestPriceguestPriceList = new ArrayList<GuestPrice>();

        
Get the list of 'GuestPrice' element items.

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

        
Set the list of 'GuestPrice' element items.

Parameters:
list
        public void setGuestPriceList(List<GuestPricelist) {
             = list;
        }

        
Get the number of 'GuestPrice' element items.

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

        
Add a 'GuestPrice' element item.

Parameters:
item
        public void addGuestPrice(GuestPrice item) {
            .add(item);
        }

        
Get 'GuestPrice' element item by position.

Parameters:
index
Returns:
item
        public GuestPrice getGuestPrice(int index) {
            return .get(index);
        }

        
Remove all 'GuestPrice' element items.
        public void clearGuestPriceList() {
            .clear();
        }
        
Specifies the guest and prices at the guest level. 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="GuestPrice" maxOccurs="9">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:GuestType">
         <xs:sequence>
           <xs:element name="PriceInfos">
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="PriceInfo" maxOccurs="99">
                   <xs:complexType>
                     <xs:attributeGroup ref="ns:CruisePriceGroup"/>
                   </xs:complexType>
                 </xs:element>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class GuestPrice extends Guest
        {
            private List<CruisePriceGrouppriceInfoList = new ArrayList<CruisePriceGroup>();

            
Get the list of 'PriceInfo' element items. Collection of price info.

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

            
Set the list of 'PriceInfo' element items. Collection of price info.

Parameters:
list
            public void setPriceInfoList(List<CruisePriceGrouplist) {
                 = list;
            }

            
Get the number of 'PriceInfo' element items.

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

            
Add a 'PriceInfo' element item.

Parameters:
item
            public void addPriceInfo(CruisePriceGroup item) {
                .add(item);
            }

            
Get 'PriceInfo' element item by position.

Parameters:
index
Returns:
item
            public CruisePriceGroup getPriceInfo(int index) {
                return .get(index);
            }

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