Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
This message requests booking related documents and the delivery method for a given Reservation ID. 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_CruiseBookingDocumentRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:UniqueID_Type" name="ReservationID"/>
       <xs:element name="CruiseDocument" maxOccurs="9">
         <!-- Reference to inner class CruiseDocument -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class BookingDocumentRQ
 {
     private POS POS;
     private UniqueID reservationID;
Get the 'POS' element value. Point of sale object.

Returns:
value
 
     public POS getPOS() {
         return ;
     }

    
Set the 'POS' element value. Point of sale object.

Parameters:
POS
 
     public void setPOS(POS POS) {
         this. = POS;
     }

    
Get the 'ReservationID' element value. Contains the Reservation ID of a booking.

Returns:
value
 
     public UniqueID getReservationID() {
         return ;
     }

    
Set the 'ReservationID' element value. Contains the Reservation ID of a booking.

Parameters:
reservationID
 
     public void setReservationID(UniqueID reservationID) {
         this. = reservationID;
     }

    
Get the list of 'CruiseDocument' element items.

Returns:
list
 
         return ;
     }

    
Set the list of 'CruiseDocument' element items.

Parameters:
list
 
     public void setCruiseDocumentList(List<CruiseDocumentlist) {
          = list;
     }

    
Get the number of 'CruiseDocument' element items.

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

    
Add a 'CruiseDocument' element item.

Parameters:
item
    public void addCruiseDocument(CruiseDocument item) {
        .add(item);
    }

    
Get 'CruiseDocument' element item by position.

Parameters:
index
Returns:
item
    public CruiseDocument getCruiseDocument(int index) {
        return .get(index);
    }

    
Remove all 'CruiseDocument' element items.
    public void clearCruiseDocumentList() {
        .clear();
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel messages.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel messages.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }
    
The document and the delivery method of the request. 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="CruiseDocument" maxOccurs="9">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:DocumentHandlingType">
         <xs:sequence>
           <xs:element type="ns:ContactPersonType" name="RecipientInfo" minOccurs="0"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class CruiseDocument extends DocumentHandling
    {
        private ContactPerson recipientInfo;

        
Get the 'RecipientInfo' element value. Provides the address details for a recipient. The address is only sent when different than that of the reservation.

Returns:
value
        public ContactPerson getRecipientInfo() {
            return ;
        }

        
Set the 'RecipientInfo' element value. Provides the address details for a recipient. The address is only sent when different than that of the reservation.

Parameters:
recipientInfo
        public void setRecipientInfo(ContactPerson recipientInfo) {
            this. = recipientInfo;
        }
    }
New to GrepCode? Check out our FAQ X