Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;
  
  import java.util.List;
The book request message requests booking creation on the cruise line system for a given sailing with a specific mode of transportation/ gateway city pair and currency and for a selected fare/category pair and a cabin number. It also integrates this booking into a GDS's PNR based on the cruise line reply. Optional request information can include: Guest city and Inclusive 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_CruiseBookRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="AgentInfo" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AgentInfoGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="DeletedGuest" minOccurs="0" maxOccurs="9">
         <!-- Reference to inner class DeletedGuest -->
       </xs:element>
       <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo"/>
       <xs:element type="ns:CruiseGuestInfoType" name="ReservationInfo"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="ns:TransactionActionType" use="optional" name="TransactionActionCode"/>
   </xs:complexType>
 </xs:element>
 
 
 public class BookRQ
 {
     private POS POS;
     private AgentInfoGroup agentInfo;
     private List<DeletedGuestdeletedGuestList = new ArrayList<DeletedGuest>();
     private SailingCategoryInfo sailingInfo;
     private CruiseGuestInfo reservationInfo;
     private TransactionAction transactionActionCode;

    
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 'AgentInfoGroup' attributeGroup value. Specifies the information of the an agent who is creating or modifying the booking.

Returns:
value
 
     public AgentInfoGroup getAgentInfo() {
         return ;
     }

    
Set the 'AgentInfoGroup' attributeGroup value. Specifies the information of the an agent who is creating or modifying the booking.

Parameters:
agentInfo
 
     public void setAgentInfo(AgentInfoGroup agentInfo) {
         this. = agentInfo;
     }

    
Get the list of 'DeletedGuest' element items.

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

    
Set the list of 'DeletedGuest' element items.

Parameters:
list
 
     public void setDeletedGuestList(List<DeletedGuestlist) {
          = list;
     }

    
Get the number of 'DeletedGuest' element items.

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

    
Add a 'DeletedGuest' element item.

Parameters:
item
    public void addDeletedGuest(DeletedGuest item) {
        .add(item);
    }

    
Get 'DeletedGuest' element item by position.

Parameters:
index
Returns:
item
    public DeletedGuest getDeletedGuest(int index) {
        return .get(index);
    }

    
Remove all 'DeletedGuest' element items.
    public void clearDeletedGuestList() {
        .clear();
    }

    
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
        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 'ReservationInfo' element value. Specifies information about the booking.

Returns:
value
        return ;
    }

    
Set the 'ReservationInfo' element value. Specifies information about the booking.

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

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

    
Get the 'TransactionActionCode' attribute value.

Returns:
value
        return ;
    }

    
Set the 'TransactionActionCode' attribute value.

Parameters:
transactionActionCode
    public void setTransactionActionCode(TransactionAction transactionActionCode) {
        this. = transactionActionCode;
    }
    
Specifies the information of the deleted guest from the current booking. Normally used in Modification mode. 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="DeletedGuest" minOccurs="0" maxOccurs="9">
   <xs:complexType>
     <xs:attribute type="xs:int" use="required" name="DeletedGuestReference"/>
   </xs:complexType>
 </xs:element>
 
    public static class DeletedGuest
    {
        private Integer deletedGuestReference;

        
Get the 'DeletedGuestReference' attribute value. The guest's reference number in the booking being modified.

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

        
Set the 'DeletedGuestReference' attribute value. The guest's reference number in the booking being modified.

Parameters:
deletedGuestReference
        public void setDeletedGuestReference(Integer deletedGuestReference) {
            this. = deletedGuestReference;
        }
    }
New to GrepCode? Check out our FAQ X