Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
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="CruiseReservationType">
   <xs:sequence>
     <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo"/>
     <xs:element type="ns:CruiseProfileType" name="SailingProfile" minOccurs="0" maxOccurs="4"/>
     <xs:element type="ns:CruiseGuestInfoType" name="ReservationInfo"/>
     <xs:element name="PaymentsDue" minOccurs="0">
       <!-- Reference to inner class PaymentsDue -->
     </xs:element>
     <xs:element type="ns:ParagraphType" name="Information" minOccurs="0" maxOccurs="5"/>
   </xs:sequence>
 </xs:complexType>
 
 
 public class CruiseReservation
 {
     private SailingCategoryInfo sailingInfo;
     private CruiseGuestInfo reservationInfo;
     private PaymentsDue paymentsDue;
     private List<ParagraphinformationList = new ArrayList<Paragraph>();

    
Get the 'SailingInfo' element value. Specifies the selected category to book. Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Returns:
value
 
     public SailingCategoryInfo getSailingInfo() {
         return ;
     }

    
Set the 'SailingInfo' element value. Specifies the selected category to book. Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Parameters:
sailingInfo
 
     public void setSailingInfo(SailingCategoryInfo sailingInfo) {
         this. = sailingInfo;
     }

    
Get the list of 'SailingProfile' element items. Specifies the profile information at the sailing level.

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

    
Set the list of 'SailingProfile' element items. Specifies the profile information at the sailing level.

Parameters:
list
 
     public void setSailingProfileList(List<CruiseProfilelist) {
          = list;
     }

    
Get the number of 'SailingProfile' element items.

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

    
Add a 'SailingProfile' element item.

Parameters:
item
 
     public void addSailingProfile(CruiseProfile item) {
         .add(item);
     }

    
Get 'SailingProfile' element item by position.

Parameters:
index
Returns:
item
 
     public CruiseProfile getSailingProfile(int index) {
         return .get(index);
     }

    
Remove all 'SailingProfile' element items.
 
     public void clearSailingProfileList() {
         .clear();
     }

    
Get the 'ReservationInfo' element value. Specifies reservation and guest information about the booking.

Returns:
value
        return ;
    }

    
Set the 'ReservationInfo' element value. Specifies reservation and guest information about the booking.

Parameters:
reservationInfo
    public void setReservationInfo(CruiseGuestInfo reservationInfo) {
        this. = reservationInfo;
    }

    
Get the 'PaymentsDue' element value.

Returns:
value
    public PaymentsDue getPaymentsDue() {
        return ;
    }

    
Set the 'PaymentsDue' element value.

Parameters:
paymentsDue
    public void setPaymentsDue(PaymentsDue paymentsDue) {
        this. = paymentsDue;
    }

    
Get the list of 'Information' element items. Contains information such as advisories or marketing messages returned by the cruise line.

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

    
Set the list of 'Information' element items. Contains information such as advisories or marketing messages returned by the cruise line.

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

    
Get the number of 'Information' element items.

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

    
Add a 'Information' element item.

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

    
Get 'Information' element item by position.

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

    
Remove all 'Information' element items.
    public void clearInformationList() {
        .clear();
    }
    
A collection of payments due. 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="PaymentsDue" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PaymentDue" maxOccurs="99">
         <!-- Reference to inner class PaymentDue -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class PaymentsDue
    {
        private List<PaymentDuepaymentDueList = new ArrayList<PaymentDue>();

        
Get the list of 'PaymentDue' element items.

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

        
Set the list of 'PaymentDue' element items.

Parameters:
list
        public void setPaymentDueList(List<PaymentDuelist) {
             = list;
        }

        
Get the number of 'PaymentDue' element items.

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

        
Add a 'PaymentDue' element item.

Parameters:
item
        public void addPaymentDue(PaymentDue item) {
            .add(item);
        }

        
Get 'PaymentDue' element item by position.

Parameters:
index
Returns:
item
        public PaymentDue getPaymentDue(int index) {
            return .get(index);
        }

        
Remove all 'PaymentDue' element items.
        public void clearPaymentDueList() {
            .clear();
        }
        
Information on a due payment. 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="PaymentDue" maxOccurs="99">
   <xs:complexType>
     <xs:attribute type="xs:float" use="optional" name="Amount"/>
     <xs:attribute type="xs:int" use="optional" name="PaymentNumber"/>
     <xs:attribute type="xs:string" use="optional" name="DueDate"/>
   </xs:complexType>
 </xs:element>
 
        public static class PaymentDue
        {
            private Float amount;
            private Integer paymentNumber;
            private String dueDate;

            
Get the 'Amount' attribute value. Specifies the payment amount.

Returns:
value
            public Float getAmount() {
                return ;
            }

            
Set the 'Amount' attribute value. Specifies the payment amount.

Parameters:
amount
            public void setAmount(Float amount) {
                this. = amount;
            }

            
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;
            }
        }
    }
New to GrepCode? Check out our FAQ X