Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;
  
  import java.util.List;
Contains guest information for the specified sailing. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CruiseGuestInfoType">
   <xs:sequence>
     <xs:element type="ns:ReservationID_Type" name="ReservationID" minOccurs="0" maxOccurs="2"/>
     <xs:element name="GuestDetails">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:CruiseGuestDetailType" name="GuestDetail" maxOccurs="9"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="LinkedBookings" minOccurs="0">
       <!-- Reference to inner class LinkedBookings -->
     </xs:element>
     <xs:element name="PaymentOptions" minOccurs="0">
       <!-- Reference to inner class PaymentOptions -->
     </xs:element>
     <xs:element name="CancellationPenalty" minOccurs="0">
       <!-- Reference to inner class CancellationPenalty -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 
 
 public class CruiseGuestInfo
 {
     private LinkedBookings linkedBookings;
     private PaymentOptions paymentOptions;
     private CancellationPenalty cancellationPenalty;

    
Get the list of 'ReservationID' element items. Specifies the reservation control information or the guest's booking ID in modification mode (e.g. PNR Record Locator and/or Vendor Confirmation Number).

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

    
Set the list of 'ReservationID' element items. Specifies the reservation control information or the guest's booking ID in modification mode (e.g. PNR Record Locator and/or Vendor Confirmation Number).

Parameters:
list
 
     public void setReservationIDList(List<ReservationIDlist) {
          = list;
     }

    
Get the number of 'ReservationID' element items.

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

    
Add a 'ReservationID' element item.

Parameters:
item
 
     public void addReservationID(ReservationID item) {
         .add(item);
     }

    
Get 'ReservationID' element item by position.

Parameters:
index
Returns:
item
 
     public ReservationID getReservationID(int index) {
         return .get(index);
     }

    
Remove all 'ReservationID' element items.
 
     public void clearReservationIDList() {
         .clear();
     }

    
Get the list of 'GuestDetail' element items. Specifies the guests' information.

Returns:
list
 
        return ;
    }

    
Set the list of 'GuestDetail' element items. Specifies the guests' information.

Parameters:
list
    public void setGuestDetailList(List<CruiseGuestDetaillist) {
         = list;
    }

    
Get the number of 'GuestDetail' element items.

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

    
Add a 'GuestDetail' element item.

Parameters:
item
    public void addGuestDetail(CruiseGuestDetail item) {
        .add(item);
    }

    
Get 'GuestDetail' element item by position.

Parameters:
index
Returns:
item
    public CruiseGuestDetail getGuestDetail(int index) {
        return .get(index);
    }

    
Remove all 'GuestDetail' element items.
    public void clearGuestDetailList() {
        .clear();
    }

    
Get the 'LinkedBookings' element value.

Returns:
value
    public LinkedBookings getLinkedBookings() {
        return ;
    }

    
Set the 'LinkedBookings' element value.

Parameters:
linkedBookings
    public void setLinkedBookings(LinkedBookings linkedBookings) {
        this. = linkedBookings;
    }

    
Get the 'PaymentOptions' element value.

Returns:
value
    public PaymentOptions getPaymentOptions() {
        return ;
    }

    
Set the 'PaymentOptions' element value.

Parameters:
paymentOptions
    public void setPaymentOptions(PaymentOptions paymentOptions) {
        this. = paymentOptions;
    }

    
Get the 'CancellationPenalty' element value.

Returns:
value
        return ;
    }

    
Set the 'CancellationPenalty' element value.

Parameters:
cancellationPenalty
    public void setCancellationPenalty(CancellationPenalty cancellationPenalty) {
        this. = cancellationPenalty;
    }
    
Collection of linked bookings. 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="LinkedBookings" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="LinkedBooking" maxOccurs="32">
         <!-- Reference to inner class LinkedBooking -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class LinkedBookings
    {
        private List<LinkedBookinglinkedBookingList = new ArrayList<LinkedBooking>();

        
Get the list of 'LinkedBooking' element items.

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

        
Set the list of 'LinkedBooking' element items.

Parameters:
list
        public void setLinkedBookingList(List<LinkedBookinglist) {
             = list;
        }

        
Get the number of 'LinkedBooking' element items.

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

        
Add a 'LinkedBooking' element item.

Parameters:
item
        public void addLinkedBooking(LinkedBooking item) {
            .add(item);
        }

        
Get 'LinkedBooking' element item by position.

Parameters:
index
Returns:
item
        public LinkedBooking getLinkedBooking(int index) {
            return .get(index);
        }

        
Remove all 'LinkedBooking' element items.
        public void clearLinkedBookingList() {
            .clear();
        }
        
Specifies cross references at the booking level. 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="LinkedBooking" maxOccurs="32">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:RelatedTravelerType">
         <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="LinkTypeCode"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
        public static class LinkedBooking extends RelatedTraveler
        {
            private List<StringlinkTypeCodes = new ArrayList<String>();

            
Get the list of 'LinkTypeCode' attribute items. Specifies the nature of the link (e.g. booking, dining, tour, back to back). Refer to OpenTravel Code Table Link Type Code (LTC).

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

            
Set the list of 'LinkTypeCode' attribute items. Specifies the nature of the link (e.g. booking, dining, tour, back to back). Refer to OpenTravel Code Table Link Type Code (LTC).

Parameters:
list
            public void setLinkTypeCodes(List<Stringlist) {
                 = list;
            }

            
Serializer for 'LinkTypeCode' attribute list.

Parameters:
values
Returns:
text
            public static String serializeLinkTypeCodes(List<Stringvalues) {
                if (values == null) {
                    return null;
                } else {
                    java.lang.StringBuffer buff = new java.lang.StringBuffer();
                    for (java.util.Iterator<Stringiter = values.iterator(); iter
                            .hasNext();) {
                        if (buff.length() > 0) {
                            buff.append(' ');
                        }
                        String value = iter.next();
                        buff.append(value);
                    }
                    return buff.toString();
                }
            }

            
Deserializer for 'LinkTypeCode' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            public static List<StringdeserializeLinkTypeCodes(String text)
                    throws org.jibx.runtime.JiBXException {
                org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                    public java.lang.Object deserialize(String text) {
                        return text;
                    }
                };
                return (List<String>) org.jibx.runtime.Utility.deserializeList(
                        textldser);
            }

            
Get the number of 'LinkTypeCode' attribute items.

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

            
Add a 'LinkTypeCode' attribute item.

Parameters:
item
            public void addLinkTypeCode(String item) {
                .add(item);
            }

            
Get 'LinkTypeCode' attribute item by position.

Parameters:
index
Returns:
item
            public String getLinkTypeCode(int index) {
                return .get(index);
            }

            
Remove all 'LinkTypeCode' attribute items.
            public void clearLinkTypeCodes() {
                .clear();
            }
        }
    }
    
Collection of payment choices. 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="PaymentOptions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PaymentOption" maxOccurs="9">
         <!-- Reference to inner class PaymentOption -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class PaymentOptions
    {
        private List<PaymentOptionpaymentOptionList = new ArrayList<PaymentOption>();

        
Get the list of 'PaymentOption' element items.

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

        
Set the list of 'PaymentOption' element items.

Parameters:
list
        public void setPaymentOptionList(List<PaymentOptionlist) {
             = list;
        }

        
Get the number of 'PaymentOption' element items.

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

        
Add a 'PaymentOption' element item.

Parameters:
item
        public void addPaymentOption(PaymentOption item) {
            .add(item);
        }

        
Get 'PaymentOption' element item by position.

Parameters:
index
Returns:
item
        public PaymentOption getPaymentOption(int index) {
            return .get(index);
        }

        
Remove all 'PaymentOption' element items.
        public void clearPaymentOptionList() {
            .clear();
        }
        
Payment choice. 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="PaymentOption" maxOccurs="9">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PaymentDetailType">
         <xs:attribute type="xs:boolean" use="optional" name="ExtendedIndicator"/>
         <xs:attribute use="optional" name="PaymentPurpose">
           <xs:simpleType>
             <!-- Reference to inner class PaymentPurpose -->
           </xs:simpleType>
         </xs:attribute>
         <xs:attribute type="xs:string" use="optional" name="ExtendedDepositDate"/>
         <xs:attribute type="xs:string" use="optional" name="ReferenceNumber"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class PaymentOption extends PaymentDetail
        {
            private Boolean extendedIndicator;
            private PaymentPurpose paymentPurpose;
            private String extendedDepositDate;
            private String referenceNumber;

            
Get the 'ExtendedIndicator' attribute value. When true, indicates payment will be made over an extended time. When false, the payment isn't extended.

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

            
Set the 'ExtendedIndicator' attribute value. When true, indicates payment will be made over an extended time. When false, the payment isn't extended.

Parameters:
extendedIndicator
            public void setExtendedIndicator(Boolean extendedIndicator) {
                this. = extendedIndicator;
            }

            
Get the 'PaymentPurpose' attribute value. Specifies payment for a gift order or reservation.

Returns:
value
            public PaymentPurpose getPaymentPurpose() {
                return ;
            }

            
Set the 'PaymentPurpose' attribute value. Specifies payment for a gift order or reservation.

Parameters:
paymentPurpose
            public void setPaymentPurpose(PaymentPurpose paymentPurpose) {
                this. = paymentPurpose;
            }

            
Get the 'ExtendedDepositDate' attribute value. Specifies the Extended Deposit Date for the check form of payment.

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

            
Set the 'ExtendedDepositDate' attribute value. Specifies the Extended Deposit Date for the check form of payment.

Parameters:
extendedDepositDate
            public void setExtendedDepositDate(String extendedDepositDate) {
                this. = extendedDepositDate;
            }

            
Get the 'ReferenceNumber' attribute value. Specifies the Gift Order Reference/Form of Payment Number.

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

            
Set the 'ReferenceNumber' attribute value. Specifies the Gift Order Reference/Form of Payment Number.

Parameters:
referenceNumber
            public void setReferenceNumber(String referenceNumber) {
                this. = referenceNumber;
            }
            
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="GiftOrder"/>
     <xs:enumeration value="Reservation"/>
   </xs:restriction>
 </xs:simpleType>
 
            public static enum PaymentPurpose {
                GIFT_ORDER("GiftOrder"), RESERVATION("Reservation");
                private final String value;
                private PaymentPurpose(String value) {
                    this. = value;
                }
                public String xmlValue() {
                    return ;
                }
                public static PaymentPurpose convert(String value) {
                    for (PaymentPurpose inst : values()) {
                        if (inst.xmlValue().equals(value)) {
                            return inst;
                        }
                    }
                    return null;
                }
            }
        }
    }
    
Penalty information for cancelling a reservation. 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="CancellationPenalty" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:float" use="optional" name="Amount"/>
   </xs:complexType>
 </xs:element>
 
    public static class CancellationPenalty
    {
        private Float amount;

        
Get the 'Amount' attribute value. The penalty amount for cancelling a reservation.

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

        
Set the 'Amount' attribute value. The penalty amount for cancelling a reservation.

Parameters:
amount
        public void setAmount(Float amount) {
            this. = amount;
        }
    }
New to GrepCode? Check out our FAQ X