Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.rail;
  
  import java.util.List;
The Ignore Booking response message is the response message for an OTA_RailIgnoreBookingRQ that CANCELS booking messages that may have been processed successfully but are not confirmed in the trading partners system as booked. If the request message has been processed successfully, the Confirmation element contains the Unique ID's and optional details for the ignored reservations. 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_RailIgnoreBookingRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="Confirmation" minOccurs="0" maxOccurs="99">
           <!-- Reference to inner class Confirmation -->
         </xs:element>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class IgnoreBookingRS
 {
     private int choiceSelect = -1;
     private static final int SUCCESS_CHOICE = 0;
     private static final int ERRORS_CHOICE = 1;
     private Success success;
     private Warnings warnings;
     private List<ConfirmationconfirmationList = new ArrayList<Confirmation>();
     private Errors errors;
 
     private void setChoiceSelect(int choice) {
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearChoiceSelect() before changing existing choice");
         }
     }

    
Clear the choice selection.
 
     public void clearChoiceSelect() {
          = -1;
     }

    
Check if Success is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifSuccess() {
         return  == ;
     }

    
Get the 'Success' element value. The standard way to indicate successful processing of an OpenTravel message. Returning an empty element of this type indicates success.

Returns:
value
 
     public Success getSuccess() {
         return ;
     }

    
Set the 'Success' element value. The standard way to indicate successful processing of an OpenTravel message. Returning an empty element of this type indicates success.

Parameters:
success
 
     public void setSuccess(Success success) {
         setChoiceSelect();
         this. = success;
     }

    
Get the 'Warnings' element value. The standard way to indicate successful processing of an OpenTravel message, but one in which business warnings are generated.

Returns:
value
 
     public Warnings getWarnings() {
         return ;
     }

    
Set the 'Warnings' element value. The standard way to indicate successful processing of an OpenTravel message, but one in which business warnings are generated.

Parameters:
warnings
    public void setWarnings(Warnings warnings) {
        this. = warnings;
    }

    
Get the list of 'Confirmation' element items.

Returns:
list
        return ;
    }

    
Set the list of 'Confirmation' element items.

Parameters:
list
    public void setConfirmationList(List<Confirmationlist) {
         = list;
    }

    
Get the number of 'Confirmation' element items.

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

    
Add a 'Confirmation' element item.

Parameters:
item
    public void addConfirmation(Confirmation item) {
        .add(item);
    }

    
Get 'Confirmation' element item by position.

Parameters:
index
Returns:
item
    public Confirmation getConfirmation(int index) {
        return .get(index);
    }

    
Remove all 'Confirmation' element items.
    public void clearConfirmationList() {
        .clear();
    }

    
Check if Errors is current selection for choice.

Returns:
true if selection, false if not
    public boolean ifErrors() {
        return  == ;
    }

    
Get the 'Errors' element value. A collection of errors that occurred during the processing of this message.

Returns:
value
    public Errors getErrors() {
        return ;
    }

    
Set the 'Errors' element value. A collection of errors that occurred during the processing of this message.

Parameters:
errors
    public void setErrors(Errors errors) {
        this. = errors;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }
    
The Unique ID's and other details for the provisional reservation(s) that have been cancelled. 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="Confirmation" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:choice>
       <xs:element type="ns:UniqueID_Type" name="UniqueID"/>
       <xs:element type="ns:RailReservationType" name="ReservationInfo"/>
     </xs:choice>
   </xs:complexType>
 </xs:element>
 
    public static class Confirmation
    {
        private int confirmationListSelect = -1;
        private static final int UNIQUE_ID_CHOICE = 0;
        private static final int RESERVATION_INFO_CHOICE = 1;
        private UniqueID uniqueID;
        private RailReservation reservationInfo;
        private void setConfirmationListSelect(int choice) {
            if ( == -1) {
                 = choice;
            } else if ( != choice) {
                throw new IllegalStateException(
                        "Need to call clearConfirmationListSelect() before changing existing choice");
            }
        }

        
Clear the choice selection.
        public void clearConfirmationListSelect() {
             = -1;
        }

        
Check if UniqueID is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifUniqueID() {
            return  == ;
        }

        
Get the 'UniqueID' element value. The reservation confirmation number that uniquely identifies a reservation. Note that the

Returns:
value
Type:
attribute will typically contain a value of 40 which is a "Confirmation number" - See OpenTravel Code List Unique ID Type (UIT).
        public UniqueID getUniqueID() {
            return ;
        }

        
Set the 'UniqueID' element value. The reservation confirmation number that uniquely identifies a reservation. Note that the

Parameters:
uniqueID
Type:
attribute will typically contain a value of 40 which is a "Confirmation number" - See OpenTravel Code List Unique ID Type (UIT).
        public void setUniqueID(UniqueID uniqueID) {
            this. = uniqueID;
        }

        
Check if ReservationInfo is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifReservationInfo() {
            return  == ;
        }

        
Get the 'ReservationInfo' element value. The unique ID of the reservation with reservation details including itinerary, traveler or traveler count, payment rules and ticket fulfillment information.

Returns:
value
        public RailReservation getReservationInfo() {
            return ;
        }

        
Set the 'ReservationInfo' element value. The unique ID of the reservation with reservation details including itinerary, traveler or traveler count, payment rules and ticket fulfillment information.

Parameters:
reservationInfo
        public void setReservationInfo(RailReservation reservationInfo) {
            this. = reservationInfo;
        }
    }
New to GrepCode? Check out our FAQ X