Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.air;
  
  import java.util.List;
Returns booking files on queue and reason for queuing. 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_AirDisplayQueueRS">
   <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="DisplayQueue" minOccurs="0">
           <!-- Reference to inner class DisplayQueue -->
         </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 DisplayQueueRS
 {
     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 DisplayQueue displayQueue;
     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. 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. 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. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

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

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

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

    
Get the 'DisplayQueue' element value.

Returns:
value
    public DisplayQueue getDisplayQueue() {
        return ;
    }

    
Set the 'DisplayQueue' element value.

Parameters:
displayQueue
    public void setDisplayQueue(DisplayQueue displayQueue) {
        this. = displayQueue;
    }

    
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 a message.

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

    
Set the 'Errors' element value. A collection of errors that occurred during the processing of a 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;
    }
    
Request booking files from queue. Not sent if queue empty. 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="DisplayQueue" minOccurs="0">
   <xs:complexType>
     <xs:choice>
       <xs:element name="QueueItems">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="QueueItem" maxOccurs="unbounded">
               <!-- Reference to inner class QueueItem -->
             </xs:element>
           </xs:sequence>
           <xs:attribute type="xs:string" use="optional" name="PseudoCityCode"/>
           <xs:attribute type="xs:string" use="optional" name="SystemCode"/>
           <xs:attribute type="xs:string" use="optional" name="QueueNumber"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="AirReservations">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="AirReservation" maxOccurs="unbounded">
               <!-- Reference to inner class AirReservation -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:choice>
   </xs:complexType>
 </xs:element>
 
    public static class DisplayQueue
    {
        private int displayQueueSelect = -1;
        private static final int QUEUE_ITEMS_CHOICE = 0;
        private static final int AIR_RESERVATIONS_CHOICE = 1;
        private List<QueueItemqueueItemList = new ArrayList<QueueItem>();
        private String queueItemsPseudoCityCode;
        private String queueItemsSystemCode;
        private String queueItemsQueueNumber;
        private List<AirReservationairReservationList = new ArrayList<AirReservation>();
        private void setDisplayQueueSelect(int choice) {
            if ( == -1) {
                 = choice;
            } else if ( != choice) {
                throw new IllegalStateException(
                        "Need to call clearDisplayQueueSelect() before changing existing choice");
            }
        }

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

        
Check if QueueItems is current selection for choice.

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

        
Get the list of 'QueueItem' element items. Container for air queue item elements.

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

        
Set the list of 'QueueItem' element items. Container for air queue item elements.

Parameters:
list
        public void setQueueItemList(List<QueueItemlist) {
             = list;
        }

        
Get the number of 'QueueItem' element items.

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

        
Add a 'QueueItem' element item.

Parameters:
item
        public void addQueueItem(QueueItem item) {
            .add(item);
        }

        
Get 'QueueItem' element item by position.

Parameters:
index
Returns:
item
        public QueueItem getQueueItem(int index) {
            return .get(index);
        }

        
Remove all 'QueueItem' element items.
        public void clearQueueItemList() {
            .clear();
        }

        
Get the 'PseudoCityCode' attribute value. An ATA/IATA airport/city code, office code, pseudo city code, etc. of the queue to be returned. If this is omitted, the pseudo city code contained in the point of sale information should be used.

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

        
Set the 'PseudoCityCode' attribute value. An ATA/IATA airport/city code, office code, pseudo city code, etc. of the queue to be returned. If this is omitted, the pseudo city code contained in the point of sale information should be used.

Parameters:
queueItemsPseudoCityCode
        public void setQueueItemsPseudoCityCode(String queueItemsPseudoCityCode) {
            this. = queueItemsPseudoCityCode;
        }

        
Get the 'SystemCode' attribute value. Identifies the airline and/or system where the queue resides. If this is omitted, the airline and/or system code (AirlineVendorID) contained in the point of sale information should be used.

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

        
Set the 'SystemCode' attribute value. Identifies the airline and/or system where the queue resides. If this is omitted, the airline and/or system code (AirlineVendorID) contained in the point of sale information should be used.

Parameters:
queueItemsSystemCode
        public void setQueueItemsSystemCode(String queueItemsSystemCode) {
            this. = queueItemsSystemCode;
        }

        
Get the 'QueueNumber' attribute value. An identifier specifying the requested queue on which the booking file resides in the system.

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

        
Set the 'QueueNumber' attribute value. An identifier specifying the requested queue on which the booking file resides in the system.

Parameters:
queueItemsQueueNumber
        public void setQueueItemsQueueNumber(String queueItemsQueueNumber) {
            this. = queueItemsQueueNumber;
        }

        
Check if AirReservationList is current selection for choice.

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

        
Get the list of 'AirReservation' element items. Container for air reservation elements.

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

        
Set the list of 'AirReservation' element items. Container for air reservation elements.

Parameters:
list
        public void setAirReservationList(List<AirReservationlist) {
             = list;
        }

        
Get the number of 'AirReservation' element items.

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

        
Add a 'AirReservation' element item.

Parameters:
item
        public void addAirReservation(AirReservation item) {
            .add(item);
        }

        
Get 'AirReservation' element item by position.

Parameters:
index
Returns:
item
        public AirReservation getAirReservation(int index) {
            return .get(index);
        }

        
Remove all 'AirReservation' element items.
        public void clearAirReservationList() {
            .clear();
        }
        
Condensed information about the queued booking file. 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="QueueItem" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Reason" minOccurs="0">
         <!-- Reference to inner class Reason -->
       </xs:element>
       <xs:element type="ns:UniqueID_Type" name="BookingReferenceID"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:QueueGroup"/>
   </xs:complexType>
 </xs:element>
 
        public static class QueueItem
        {
            private Reason reason;
            private UniqueID bookingReferenceID;
            private QueueGroup queueGroup;

            
Get the 'Reason' element value.

Returns:
value
            public Reason getReason() {
                return ;
            }

            
Set the 'Reason' element value.

Parameters:
reason
            public void setReason(Reason reason) {
                this. = reason;
            }

            
Get the 'BookingReferenceID' element value. This is the identifier stored on the booking system, also referred to as a PNR locator, confirmation number or reservation number.

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

            
Set the 'BookingReferenceID' element value. This is the identifier stored on the booking system, also referred to as a PNR locator, confirmation number or reservation number.

Parameters:
bookingReferenceID
            public void setBookingReferenceID(UniqueID bookingReferenceID) {
                this. = bookingReferenceID;
            }

            
Get the 'QueueGroup' attributeGroup value.

Returns:
value
            public QueueGroup getQueueGroup() {
                return ;
            }

            
Set the 'QueueGroup' attributeGroup value.

Parameters:
queueGroup
            public void setQueueGroup(QueueGroup queueGroup) {
                this. = queueGroup;
            }
            
Identifies the reason and method for queuing. 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="Reason" minOccurs="0">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="xs:string">
         <xs:attribute type="xs:int" use="optional" name="Number"/>
         <xs:attribute type="xs:string" use="optional" name="QueuingMethod"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
            public static class Reason
            {
                private String string;
                private Integer number;
                private String queuingMethod;

                
Get the extension value.

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

                
Set the extension value.

Parameters:
string
                public void setString(String string) {
                    this. = string;
                }

                
Get the 'Number' attribute value. Number corresponding to reason text.

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

                
Set the 'Number' attribute value. Number corresponding to reason text.

Parameters:
number
                public void setNumber(Integer number) {
                    this. = number;
                }

                
Get the 'QueuingMethod' attribute value. Specifies the method (e.g., manual, automatic, time initiated) of queuing.

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

                
Set the 'QueuingMethod' attribute value. Specifies the method (e.g., manual, automatic, time initiated) of queuing.

Parameters:
queuingMethod
                public void setQueuingMethod(String queuingMethod) {
                    this. = queuingMethod;
                }
            }
        }
        
Specifies the full booking file data. 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="AirReservation" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:AirReservationType">
         <xs:sequence>
           <xs:element name="Reason" minOccurs="0">
             <!-- Reference to inner class Reason -->
           </xs:element>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class AirReservation
                extends
                    org.jibx.schema.org.opentravel._2012B.base.air.AirReservation
        {
            private Reason reason;

            
Get the 'Reason' element value.

Returns:
value
            public Reason getReason() {
                return ;
            }

            
Set the 'Reason' element value.

Parameters:
reason
            public void setReason(Reason reason) {
                this. = reason;
            }
            
Identifies the reason and method for queuing. 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="Reason" minOccurs="0">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="xs:string">
         <xs:attribute type="xs:int" name="Number"/>
         <xs:attribute type="xs:string" name="QueuingMethod"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
            public static class Reason
            {
                private String string;
                private Integer number;
                private String queuingMethod;

                
Get the extension value.

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

                
Set the extension value.

Parameters:
string
                public void setString(String string) {
                    this. = string;
                }

                
Get the 'Number' attribute value. Number corresponding to reason text.

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

                
Set the 'Number' attribute value. Number corresponding to reason text.

Parameters:
number
                public void setNumber(Integer number) {
                    this. = number;
                }

                
Get the 'QueuingMethod' attribute value. Specifies the method (e.g., manual, automatic, time initiated) of queuing.

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

                
Set the 'QueuingMethod' attribute value. Specifies the method (e.g., manual, automatic, time initiated) of queuing.

Parameters:
queuingMethod
                public void setQueuingMethod(String queuingMethod) {
                    this. = queuingMethod;
                }
            }
        }
    }
New to GrepCode? Check out our FAQ X