Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;
  
  import java.util.List;
Used to request miscellaneous structured cruise information (e.g., cruise ship characteristics, embark/debark time for cruise, cruise policy, cruise line contact). 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_CruiseInfoRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="InformationType" maxOccurs="100">
         <!-- Reference to inner class Information -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ResponseGroup"/>
   </xs:complexType>
 </xs:element>
 
 
 public class InfoRQ
 {
     private POS POS;
     private List<InformationinformationList = new ArrayList<Information>();
     private ResponseGroup responseGroup;

    
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 list of 'InformationType' element items.

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

    
Set the list of 'InformationType' element items.

Parameters:
list
 
     public void setInformationList(List<Informationlist) {
          = list;
     }

    
Get the number of 'InformationType' element items.

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

    
Add a 'InformationType' element item.

Parameters:
item
 
     public void addInformation(Information item) {
         .add(item);
     }

    
Get 'InformationType' element item by position.

Parameters:
index
Returns:
item
 
     public Information getInformation(int index) {
         return .get(index);
     }

    
Remove all 'InformationType' element items.
    public void clearInformationList() {
        .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;
    }

    
Get the 'ResponseGroup' attributeGroup value. Provides the echo token to be used to retrieve additional records.

Returns:
value
    public ResponseGroup getResponseGroup() {
        return ;
    }

    
Set the 'ResponseGroup' attributeGroup value. Provides the echo token to be used to retrieve additional records.

Parameters:
responseGroup
    public void setResponseGroup(ResponseGroup responseGroup) {
        this. = responseGroup;
    }
    
Used to define an information request. 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="InformationType" maxOccurs="100">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:UniqueID_Type" name="ReservationID" minOccurs="0"/>
       <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OptionalCodeOptionalNameGroup"/>
   </xs:complexType>
 </xs:element>
 
    public static class Information
    {
        private UniqueID reservationID;
        private SailingCategoryInfo sailingInfo;
        private OptionalCodeOptionalNameGroup optionalCodeOptionalNameGroup;

        
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 'SailingInfo' element value.

Returns:
value
        public SailingCategoryInfo getSailingInfo() {
            return ;
        }

        
Set the 'SailingInfo' element value.

Parameters:
sailingInfo
        public void setSailingInfo(SailingCategoryInfo sailingInfo) {
            this. = sailingInfo;
        }

        
Get the 'OptionalCodeOptionalNameGroup' attributeGroup value. Used to define your information request.

Returns:
value
            return ;
        }

        
Set the 'OptionalCodeOptionalNameGroup' attributeGroup value. Used to define your information request.

Parameters:
optionalCodeOptionalNameGroup
        public void setOptionalCodeOptionalNameGroup(
                OptionalCodeOptionalNameGroup optionalCodeOptionalNameGroup) {
            this. = optionalCodeOptionalNameGroup;
        }
    }
New to GrepCode? Check out our FAQ X