Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   
   package org.jibx.schema.org.opentravel._2012A.fastrez;
   
   import java.util.ArrayList;
   import java.util.List;
The availability response message is used to respond the the availability request message. If the request was successfully processed and availability is found, the response MUST return availability details for the properties that meet the criteria specified in the request message. 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_HotelAvailRS">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="POS">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Source">
               <xs:complexType>
                 <xs:sequence>
                   <xs:element name="RequestorID">
                     <xs:complexType>
                       <xs:attribute type="xs:string" use="required" name="Type"/>
                       <xs:attribute type="xs:string" use="required" name="ID"/>
                       <xs:attribute type="xs:string" use="required" name="ID_Context"/>
                     </xs:complexType>
                   </xs:element>
                 </xs:sequence>
                 <xs:attribute type="xs:string" use="required" name="ISOCountry"/>
                 <xs:attribute type="xs:string" use="required" name="ISOCurrency"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:choice>
         <xs:sequence>
           <xs:element type="xs:string" name="Success"/>
           <xs:element name="Warnings" minOccurs="0">
             <!-- Reference to inner class Warnings -->
           </xs:element>
           <xs:element name="RoomStays">
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="RoomStay" maxOccurs="unbounded">
                   <!-- Reference to inner class RoomStay -->
                 </xs:element>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
           <xs:element name="Criteria">
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="Criterion">
                   <xs:complexType>
                     <xs:sequence>
                       <xs:element name="HotelRef">
                         <xs:complexType>
                           <xs:attribute type="xs:string" use="optional" name="ChainCode"/>
                           <xs:attribute type="xs:string" use="optional" name="BrandCode"/>
                           <xs:attribute type="xs:string" use="optional" name="HotelCode"/>
                           <xs:attribute type="xs:string" use="optional" name="HotelCityCode"/>
                         </xs:complexType>
                       </xs:element>
                       <xs:element name="StayDateRange">
                         <xs:complexType>
                           <xs:attribute type="xs:string" use="required" name="Start"/>
                           <xs:attribute type="xs:string" use="required" name="End"/>
                         </xs:complexType>
                       </xs:element>
                       <xs:element name="RoomStayCandidates">
                         <xs:complexType>
                           <xs:sequence>
                             <xs:element name="RoomStayCandidate">
                               <xs:complexType>
                                 <xs:sequence>
                                   <xs:element name="GuestCounts">
                                     <xs:complexType>
                                       <xs:sequence>
                                         <xs:element name="GuestCount" maxOccurs="10">
                                           <!-- Reference to inner class GuestCount -->
                                         </xs:element>
                                       </xs:sequence>
                                     </xs:complexType>
                                   </xs:element>
                                 </xs:sequence>
                                 <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="BedTypeCode"/>
                                 <xs:attribute type="xs:boolean" use="optional" name="NonSmoking"/>
                               </xs:complexType>
                             </xs:element>
                           </xs:sequence>
                         </xs:complexType>
                       </xs:element>
                     </xs:sequence>
                   </xs:complexType>
                 </xs:element>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:element name="Errors">
           <xs:complexType>
             <xs:sequence>
               <xs:element name="Error" maxOccurs="5">
                 <!-- Reference to inner class _Error -->
               </xs:element>
             </xs:sequence>
           </xs:complexType>
         </xs:element>
       </xs:choice>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="EchoToken"/>
     <xs:attribute type="xs:dateTime" use="required" name="TimeStamp"/>
     <xs:attribute type="xs:float" use="required" name="Version"/>
     <xs:attribute type="xs:string" use="required" name="PrimaryLangID"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
 public class HotelAvailRS
 {
     private String POSSourceRequestorID;
     private String POSSourceRequestorIDID;
     private String POSSourceISOCountry;
     private String POSSourceISOCurrency;
     private int choiceSelect = -1;
     private static final int SUCCESS_CHOICE = 0;
     private static final int ERRORS_CHOICE = 1;
     private String success;
     private Warnings warnings;
     private List<RoomStayroomStayList = new ArrayList<RoomStay>();
     private String criteriaStayDateRangeEnd;
     private List<_ErrorerrorList = new ArrayList<_Error>();
     private String echoToken;
     private DateTime timeStamp;
     private Float version;
     private String primaryLangID;

    
Get the 'Type' attribute value. The Type identifies the ID and MUST refer to OpenTravel Code List Unique ID Type (UIT).

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

    
Set the 'Type' attribute value. The Type identifies the ID and MUST refer to OpenTravel Code List Unique ID Type (UIT).

Parameters:
POSSourceRequestorIDType
 
     public void setPOSSourceRequestorIDType(String POSSourceRequestorIDType) {
          = POSSourceRequestorIDType;
     }

    
Get the 'ID' attribute value. ID MUST contain a unique identifying value for the requestor within the scope of the ID_Context.

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

    
Set the 'ID' attribute value. ID MUST contain a unique identifying value for the requestor within the scope of the ID_Context.

Parameters:
POSSourceRequestorIDID
 
     public void setPOSSourceRequestorIDID(String POSSourceRequestorIDID) {
         this. = POSSourceRequestorIDID;
     }

    
Get the 'ID_Context' attribute value. ID_Context MUST identify the authoritative source of the ID (e.g., IATA, ABTA).

Returns:
value
 
         return ;
     }

    
Set the 'ID_Context' attribute value. ID_Context MUST identify the authoritative source of the ID (e.g., IATA, ABTA).

Parameters:
POSSourceRequestorIDIDContext
 
     public void setPOSSourceRequestorIDIDContext(
             String POSSourceRequestorIDIDContext) {
         this. = POSSourceRequestorIDIDContext;
     }

    
Get the 'ISOCountry' attribute value. ISOCountry identifies the country code of the requesting party and MUST conform to ISO-3166. The country code of the requesting party MAY be used to refine responses therefore it SHOULD reflect the origin of the Guest.

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

    
Set the 'ISOCountry' attribute value. ISOCountry identifies the country code of the requesting party and MUST conform to ISO-3166. The country code of the requesting party MAY be used to refine responses therefore it SHOULD reflect the origin of the Guest.

Parameters:
POSSourceISOCountry
 
     public void setPOSSourceISOCountry(String POSSourceISOCountry) {
         this. = POSSourceISOCountry;
     }

    
Get the 'ISOCurrency' attribute value. ISOCurrency MUST conform to ISO 4217, 3 character codes. OpenTravel RECOMMENDS that the same currency code be used in the response, but responses MAY be returned in any valid currency.

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

    
Set the 'ISOCurrency' attribute value. ISOCurrency MUST conform to ISO 4217, 3 character codes. OpenTravel RECOMMENDS that the same currency code be used in the response, but responses MAY be returned in any valid currency.

Parameters:
POSSourceISOCurrency
 
     public void setPOSSourceISOCurrency(String POSSourceISOCurrency) {
         this. = POSSourceISOCurrency;
     }
 
     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. An empty Success element MUST be returned in order to in indicate the successful processing of the availability request message.

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

    
Set the 'Success' element value. An empty Success element MUST be returned in order to in indicate the successful processing of the availability request message.

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

    
Get the 'Warnings' element value.

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

    
Set the 'Warnings' element value.

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

    
Get the list of 'RoomStay' element items. RoomStays contains a collection of RoomStay elements. If more than one property is returned in the availability response, the RoomStay element MUST repeat for each property.

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

    
Set the list of 'RoomStay' element items. RoomStays contains a collection of RoomStay elements. If more than one property is returned in the availability response, the RoomStay element MUST repeat for each property.

Parameters:
list
 
     public void setRoomStayList(List<RoomStaylist) {
          = list;
     }

    
Get the number of 'RoomStay' element items.

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

    
Add a 'RoomStay' element item.

Parameters:
item
 
     public void addRoomStay(RoomStay item) {
         .add(item);
     }

    
Get 'RoomStay' element item by position.

Parameters:
index
Returns:
item
 
     public RoomStay getRoomStay(int index) {
         return .get(index);
     }

    
Remove all 'RoomStay' element items.
 
     public void clearRoomStayList() {
         .clear();
     }

    
Get the 'ChainCode' attribute value. The ChainCode MAY identify a hotel chain or management group (e.g. Hyatt, Hilton, Marriott). The hotel chain code is decided between vendors and is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

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

    
Set the 'ChainCode' attribute value. The ChainCode MAY identify a hotel chain or management group (e.g. Hyatt, Hilton, Marriott). The hotel chain code is decided between vendors and is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

Parameters:
criteriaHotelRefChainCode
 
     public void setCriteriaHotelRefChainCode(String criteriaHotelRefChainCode) {
         this. = criteriaHotelRefChainCode;
     }

    
Get the 'BrandCode' attribute value. The BrandCode MAY identify the brand within a chain (e.g., Courtyard, Hampton Inn). This code is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

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

    
Set the 'BrandCode' attribute value. The BrandCode MAY identify the brand within a chain (e.g., Courtyard, Hampton Inn). This code is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

Parameters:
criteriaHotelRefBrandCode
 
     public void setCriteriaHotelRefBrandCode(String criteriaHotelRefBrandCode) {
         this. = criteriaHotelRefBrandCode;
     }

    
Get the 'HotelCode' attribute value. The HotelCode MUST uniquely identify a single hotel property for which the availability is to be performed. The HotelCode MAY be used in conjunction with the ChainCode and BrandCode in order to uniquely identify the hotel property. The hotel code is decided between vendors.

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

    
Set the 'HotelCode' attribute value. The HotelCode MUST uniquely identify a single hotel property for which the availability is to be performed. The HotelCode MAY be used in conjunction with the ChainCode and BrandCode in order to uniquely identify the hotel property. The hotel code is decided between vendors.

Parameters:
criteriaHotelRefHotelCode
 
     public void setCriteriaHotelRefHotelCode(String criteriaHotelRefHotelCode) {
         this. = criteriaHotelRefHotelCode;
     }

    
Get the 'HotelCityCode' attribute value. The HotelCityCode MUST contain the IATA city code (e.g. DCA, ORD LAX) for which the availability is to be performed.

Returns:
value
 
         return ;
     }

    
Set the 'HotelCityCode' attribute value. The HotelCityCode MUST contain the IATA city code (e.g. DCA, ORD LAX) for which the availability is to be performed.

Parameters:
criteriaHotelRefHotelCityCode
 
     public void setCriteriaHotelRefHotelCityCode(
             String criteriaHotelRefHotelCityCode) {
         this. = criteriaHotelRefHotelCityCode;
     }

    
Get the 'Start' attribute value. Start MUST specify the arrival date for the availability request.

Returns:
value
 
         return ;
     }

    
Set the 'Start' attribute value. Start MUST specify the arrival date for the availability request.

Parameters:
criteriaStayDateRangeStart
 
     public void setCriteriaStayDateRangeStart(String criteriaStayDateRangeStart) {
         this. = criteriaStayDateRangeStart;
     }

    
Get the 'End' attribute value. End MUST specify the departure date for the availability request.

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

    
Set the 'End' attribute value. End MUST specify the departure date for the availability request.

Parameters:
criteriaStayDateRangeEnd
 
     public void setCriteriaStayDateRangeEnd(String criteriaStayDateRangeEnd) {
         this. = criteriaStayDateRangeEnd;
     }

    
Get the list of 'GuestCount' element items. GuestCounts contains a collection of GuestCount elements that MUST identify the number of guests for the availability request.

Returns:
list
 
     }

    
Set the list of 'GuestCount' element items. GuestCounts contains a collection of GuestCount elements that MUST identify the number of guests for the availability request.

Parameters:
list
 
          = list;
     }

    
Get the number of 'GuestCount' element items.

Returns:
count
 
     }

    
Add a 'GuestCount' element item.

Parameters:
item
 
     public void addCriteriaRoomStayCandidateGuestCount(GuestCount item) {
     }

    
Get 'GuestCount' element item by position.

Parameters:
index
Returns:
item
 
     public GuestCount getCriteriaRoomStayCandidateGuestCount(int index) {
         return .get(index);
     }

    
Remove all 'GuestCount' element items.
 
     }

    
Get the list of 'BedTypeCode' attribute items. The BedTypeCode MUST Indicate the type of bed(s) for the availability request. Typical values include Double, Twin, Queen, or King. Refer to OpenTravel Code List Bed Type Code (BED).

Returns:
list
 
         return ;
     }

    
Set the list of 'BedTypeCode' attribute items. The BedTypeCode MUST Indicate the type of bed(s) for the availability request. Typical values include Double, Twin, Queen, or King. Refer to OpenTravel Code List Bed Type Code (BED).

Parameters:
list
 
     public void setCriteriaRoomStayCandidateBedTypeCodes(List<Stringlist) {
          = list;
     }

    
Serializer for 'BedTypeCode' attribute list.

Parameters:
values
Returns:
text
 
             List<Stringvalues) {
         if (values == null) {
             return null;
         } else {
             java.lang.StringBuffer buff = new java.lang.StringBuffer();
             for (java.util.Iterator<Stringiter = values.iterator(); iter
                     .hasNext();) {
                 if (buff.length() > 0) {
                     buff.append(' ');
                 }
                 String value = iter.next();
                 buff.append(value);
             }
             return buff.toString();
         }
     }

    
Deserializer for 'BedTypeCode' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
 
             String textthrows org.jibx.runtime.JiBXException {
             public java.lang.Object deserialize(String text) {
                 return text;
             }
         };
         return (List<String>) org.jibx.runtime.Utility.deserializeList(text,
                 ldser);
     }

    
Get the number of 'BedTypeCode' attribute items.

Returns:
count
 
         return .size();
     }

    
Add a 'BedTypeCode' attribute item.

Parameters:
item
 
     public void addCriteriaRoomStayCandidateBedTypeCode(String item) {
     }

    
Get 'BedTypeCode' attribute item by position.

Parameters:
index
Returns:
item
 
     public String getCriteriaRoomStayCandidateBedTypeCode(int index) {
         return .get(index);
     }

    
Remove all 'BedTypeCode' attribute items.
 
     }

    
Get the 'NonSmoking' attribute value. When true, indicates that only non-smoking rooms SHOULD be returned in the availability response.

Returns:
value
 
         return ;
     }

    
Set the 'NonSmoking' attribute value. When true, indicates that only non-smoking rooms SHOULD be returned in the availability response.

Parameters:
criteriaRoomStayCandidateNonSmoking
 
             Boolean criteriaRoomStayCandidateNonSmoking) {
         this. = criteriaRoomStayCandidateNonSmoking;
     }

    
Check if ErrorList is current selection for choice.

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

    
Get the list of 'Error' element items. Errors MUST be returned if the message was not successfully processed.

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

    
Set the list of 'Error' element items. Errors MUST be returned if the message was not successfully processed.

Parameters:
list
 
     public void setErrorList(List<_Errorlist) {
         setChoiceSelect();
          = list;
     }

    
Get the number of 'Error' element items.

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

    
Add a 'Error' element item.

Parameters:
item
 
     public void addError(_Error item) {
         .add(item);
     }

    
Get 'Error' element item by position.

Parameters:
index
Returns:
item
 
     public _Error getError(int index) {
         return .get(index);
     }

    
Remove all 'Error' element items.
 
     public void clearErrorList() {
         .clear();
     }

    
Get the 'EchoToken' attribute value. EchoToken MAY provide a reference for additional message identification, assigned by the requesting host system. This attribute SHOULD NOT be used to maintain state, but SHOULD only be used for diagnostic purposes. When a request message includes an echo token the corresponding response message MUST include an echo token with an identical value.

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

    
Set the 'EchoToken' attribute value. EchoToken MAY provide a reference for additional message identification, assigned by the requesting host system. This attribute SHOULD NOT be used to maintain state, but SHOULD only be used for diagnostic purposes. When a request message includes an echo token the corresponding response message MUST include an echo token with an identical value.

Parameters:
echoToken
 
     public void setEchoToken(String echoToken) {
         this. = echoToken;
     }

    
Get the 'TimeStamp' attribute value. TimeStamp MUST indicate the creation date and time of the message in UTC using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ssZ with time values using the 24 hour clock (e.g. 20 November 2003, 1:59:38 pm UTC becomes 2003-11-20T13:59:38Z).

Returns:
value
 
     public DateTime getTimeStamp() {
         return ;
     }

    
Set the 'TimeStamp' attribute value. TimeStamp MUST indicate the creation date and time of the message in UTC using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ssZ with time values using the 24 hour clock (e.g. 20 November 2003, 1:59:38 pm UTC becomes 2003-11-20T13:59:38Z).

Parameters:
timeStamp
 
     public void setTimeStamp(DateTime timeStamp) {
         this. = timeStamp;
     }

    
Get the 'Version' attribute value. Version MUST be consistent with the underlying schema baseline.

Returns:
value
 
     public Float getVersion() {
         return ;
     }

    
Set the 'Version' attribute value. Version MUST be consistent with the underlying schema baseline.

Parameters:
version
 
     public void setVersion(Float version) {
         this. = version;
     }

    
Get the 'PrimaryLangID' attribute value. PrimaryLangID code MUST conform to ISO 639 language codes. The code MUST define the language of the request. FastRez RECOMMENDS that the response SHOULD match the request, but a response MAY use any language recognized by ISO 639.

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

    
Set the 'PrimaryLangID' attribute value. PrimaryLangID code MUST conform to ISO 639 language codes. The code MUST define the language of the request. FastRez RECOMMENDS that the response SHOULD match the request, but a response MAY use any language recognized by ISO 639.

Parameters:
primaryLangID
 
     public void setPrimaryLangID(String primaryLangID) {
         this. = primaryLangID;
     }
    
Warnings MAY be used in conjunction with the Success element to define one or more business errors or informational alerts associated with the availability. 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="Warnings" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Warning" maxOccurs="5">
         <!-- Reference to inner class Warning -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
     public static class Warnings
     {
         private List<WarningwarningList = new ArrayList<Warning>();

        
Get the list of 'Warning' element items.

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

        
Set the list of 'Warning' element items.

Parameters:
list
 
         public void setWarningList(List<Warninglist) {
              = list;
         }

        
Get the number of 'Warning' element items.

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

        
Add a 'Warning' element item.

Parameters:
item
 
         public void addWarning(Warning item) {
             .add(item);
         }

        
Get 'Warning' element item by position.

Parameters:
index
Returns:
item
 
         public Warning getWarning(int index) {
             return .get(index);
         }

        
Remove all 'Warning' element items.
 
         public void clearWarningList() {
             .clear();
         }
        
Warning MUST define a business error or informational alert associated with the availability. 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="Warning" maxOccurs="5">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="xs:string">
         <xs:attribute type="xs:string" use="required" name="Type"/>
         <xs:attribute type="xs:string" use="optional" name="ShortText"/>
         <xs:attribute type="xs:string" use="optional" name="Code"/>
         <xs:attribute type="xs:string" use="optional" name="Status"/>
         <xs:attribute type="xs:string" use="optional" name="Tag"/>
         <xs:attribute type="xs:string" use="optional" name="RPH"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
 
         public static class Warning
         {
             private String string;
             private String type;
             private String shortText;
             private String code;
             private String status;
             private String tag;
             private String RPH;

            
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 'Type' attribute value. Type MUST identify the type of warning and MUST refer to OpenTravel Code List Error Warning Type (EWT).

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

            
Set the 'Type' attribute value. Type MUST identify the type of warning and MUST refer to OpenTravel Code List Error Warning Type (EWT).

Parameters:
type
 
             public void setType(String type) {
                 this. = type;
             }

            
Get the 'ShortText' attribute value. ShortText MAY contain an abbreviated version of the warning in textual format.

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

            
Set the 'ShortText' attribute value. ShortText MAY contain an abbreviated version of the warning in textual format.

Parameters:
shortText
 
             public void setShortText(String shortText) {
                 this. = shortText;
             }

            
Get the 'Code' attribute value. Code MAY be used to identify a warning associated with this availability and MUST refer to OpenTravel Code List Error Codes (ERR).

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

            
Set the 'Code' attribute value. Code MAY be used to identify a warning associated with this availability and MUST refer to OpenTravel Code List Error Codes (ERR).

Parameters:
code
 
             public void setCode(String code) {
                 this. = code;
             }

            
Get the 'Status' attribute value. Status MAY be used to identify the status of the availability. RECOMMENDED values are (NotProcessed | Incomplete | Compete | Unknown).

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

            
Set the 'Status' attribute value. Status MAY be used to identify the status of the availability. RECOMMENDED values are (NotProcessed | Incomplete | Compete | Unknown).

Parameters:
status
 
             public void setStatus(String status) {
                 this. = status;
             }

            
Get the 'Tag' attribute value. Tag MAY identify an unknown or misspelled tag that caused an error in processing. It is RECOMMENDED that the Tag attribute use XPath notation to identify the location of a tag in the event that more than one tag of the same name is present in the document. Alternatively, the tag name alone MAY be used to identify missing data [Type=ReqFieldMissing].

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

            
Set the 'Tag' attribute value. Tag MAY identify an unknown or misspelled tag that caused an error in processing. It is RECOMMENDED that the Tag attribute use XPath notation to identify the location of a tag in the event that more than one tag of the same name is present in the document. Alternatively, the tag name alone MAY be used to identify missing data [Type=ReqFieldMissing].

Parameters:
tag
 
             public void setTag(String tag) {
                 this. = tag;
             }

            
Get the 'RPH' attribute value. The RPH (Reference Place Holder) MAY be used as an index for this warning.

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

            
Set the 'RPH' attribute value. The RPH (Reference Place Holder) MAY be used as an index for this warning.

Parameters:
RPH
 
             public void setRPH(String RPH) {
                 this. = RPH;
             }
         }
     }
    
RoomStay MUST specify availability details for a single property. 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="RoomStay" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="RoomTypes">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="RoomType" maxOccurs="unbounded">
               <!-- Reference to inner class Room -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element name="RatePlans">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="RatePlan" maxOccurs="unbounded">
               <!-- Reference to inner class RatePlan -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element name="RoomRates">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="RoomRate" maxOccurs="unbounded">
               <!-- Reference to inner class RoomRate -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element name="Guarantee">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="GuaranteesAccepted" minOccurs="0">
               <!-- Reference to inner class GuaranteesAccepted -->
             </xs:element>
           </xs:sequence>
           <xs:attribute use="required" name="GuaranteeType">
             <xs:simpleType>
               <!-- Reference to inner class Guarantee -->
             </xs:simpleType>
           </xs:attribute>
         </xs:complexType>
       </xs:element>
       <xs:element name="BasicPropertyInfo">
         <xs:complexType>
           <xs:attribute type="xs:string" use="optional" name="ChainCode"/>
           <xs:attribute type="xs:string" use="optional" name="BrandCode"/>
           <xs:attribute type="xs:string" use="required" name="HotelCode"/>
           <xs:attribute type="xs:string" use="optional" name="HotelName"/>
           <xs:attribute type="xs:string" use="optional" name="ChainName"/>
           <xs:attribute type="xs:string" use="optional" name="BrandName"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="ns:ListOfRPH" use="optional" name="WarningRPH"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfRPH">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
    public static class RoomStay
    {
        private List<RoomroomTypeList = new ArrayList<Room>();
        private List<RatePlanratePlanList = new ArrayList<RatePlan>();
        private List<RoomRateroomRateList = new ArrayList<RoomRate>();
        private GuaranteesAccepted guaranteesAccepted;
        private Guarantee guaranteeGuarantee;
        private String basicPropertyInfoChainCode;
        private String basicPropertyInfoBrandCode;
        private String basicPropertyInfoHotelCode;
        private String basicPropertyInfoHotelName;
        private String basicPropertyInfoChainName;
        private String basicPropertyInfoBrandName;
        private List<StringwarningRPHs = new ArrayList<String>();

        
Get the list of 'RoomType' element items. A collection of available RoomTypes. If more than one room type is available for this hotel, the RoomType element MUST repeat for each room type.The RoomType element is used to contain all the room type information for a single RateType Code (ex A1K) for a given date range.

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

        
Set the list of 'RoomType' element items. A collection of available RoomTypes. If more than one room type is available for this hotel, the RoomType element MUST repeat for each room type.The RoomType element is used to contain all the room type information for a single RateType Code (ex A1K) for a given date range.

Parameters:
list
        public void setRoomTypeList(List<Roomlist) {
             = list;
        }

        
Get the number of 'RoomType' element items.

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

        
Add a 'RoomType' element item.

Parameters:
item
        public void addRoomType(Room item) {
            .add(item);
        }

        
Get 'RoomType' element item by position.

Parameters:
index
Returns:
item
        public Room getRoomType(int index) {
            return .get(index);
        }

        
Remove all 'RoomType' element items.
        public void clearRoomTypeList() {
            .clear();
        }

        
Get the list of 'RatePlan' element items. A collection of available Rate Plans. If more than one rate plan is available for this hotel, the RatePlan element MUST repeat for each rate plan.The rate plan element is used to contain all the rate information for a single Rate Plan Code (ex RACK) for a given date range. A given Rate Plan may have variable rates, over the effective period of the Rate Plan, this is represented by the child element Rates.

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

        
Set the list of 'RatePlan' element items. A collection of available Rate Plans. If more than one rate plan is available for this hotel, the RatePlan element MUST repeat for each rate plan.The rate plan element is used to contain all the rate information for a single Rate Plan Code (ex RACK) for a given date range. A given Rate Plan may have variable rates, over the effective period of the Rate Plan, this is represented by the child element Rates.

Parameters:
list
        public void setRatePlanList(List<RatePlanlist) {
             = list;
        }

        
Get the number of 'RatePlan' element items.

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

        
Add a 'RatePlan' element item.

Parameters:
item
        public void addRatePlan(RatePlan item) {
            .add(item);
        }

        
Get 'RatePlan' element item by position.

Parameters:
index
Returns:
item
        public RatePlan getRatePlan(int index) {
            return .get(index);
        }

        
Remove all 'RatePlan' element items.
        public void clearRatePlanList() {
            .clear();
        }

        
Get the list of 'RoomRate' element items. A collection of available Room Rates. If more than one room rate is available for this hotel, the RoomRate element MUST repeat for each room rate.The combination of a given Rate Plan and Room Type. This allows for support for systems where Rate Plans are child of Room Type as well as systems which Room Types are child of Rate Plans.

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

        
Set the list of 'RoomRate' element items. A collection of available Room Rates. If more than one room rate is available for this hotel, the RoomRate element MUST repeat for each room rate.The combination of a given Rate Plan and Room Type. This allows for support for systems where Rate Plans are child of Room Type as well as systems which Room Types are child of Rate Plans.

Parameters:
list
        public void setRoomRateList(List<RoomRatelist) {
             = list;
        }

        
Get the number of 'RoomRate' element items.

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

        
Add a 'RoomRate' element item.

Parameters:
item
        public void addRoomRate(RoomRate item) {
            .add(item);
        }

        
Get 'RoomRate' element item by position.

Parameters:
index
Returns:
item
        public RoomRate getRoomRate(int index) {
            return .get(index);
        }

        
Remove all 'RoomRate' element items.
        public void clearRoomRateList() {
            .clear();
        }

        
Get the 'GuaranteesAccepted' element value. Guarantee MUST specify the guarantee information required to book a reservation.

Returns:
value
        public GuaranteesAccepted getGuaranteesAccepted() {
            return ;
        }

        
Set the 'GuaranteesAccepted' element value. Guarantee MUST specify the guarantee information required to book a reservation.

Parameters:
guaranteesAccepted
        public void setGuaranteesAccepted(GuaranteesAccepted guaranteesAccepted) {
            this. = guaranteesAccepted;
        }

        
Get the 'GuaranteeType' attribute value. GuaranteeType MUST specify the type of the guarantee required in order to book a reservation. FastRez GuaranteeType MUST either be GuaranteeRequired or None.

Returns:
value
        public Guarantee getGuaranteeGuarantee() {
            return ;
        }

        
Set the 'GuaranteeType' attribute value. GuaranteeType MUST specify the type of the guarantee required in order to book a reservation. FastRez GuaranteeType MUST either be GuaranteeRequired or None.

Parameters:
guaranteeGuarantee
        public void setGuaranteeGuarantee(Guarantee guaranteeGuarantee) {
            this. = guaranteeGuarantee;
        }

        
Get the 'ChainCode' attribute value. The ChainCode MAY identify a hotel chain or management group (e.g. Hyatt, Hilton, Marriott). The hotel chain code is decided between vendors and is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

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

        
Set the 'ChainCode' attribute value. The ChainCode MAY identify a hotel chain or management group (e.g. Hyatt, Hilton, Marriott). The hotel chain code is decided between vendors and is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

Parameters:
basicPropertyInfoChainCode
        public void setBasicPropertyInfoChainCode(
                String basicPropertyInfoChainCode) {
            this. = basicPropertyInfoChainCode;
        }

        
Get the 'BrandCode' attribute value. The BrandCode MAY identify the brand within a chain (e.g., Courtyard, Hampton Inn). This code is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

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

        
Set the 'BrandCode' attribute value. The BrandCode MAY identify the brand within a chain (e.g., Courtyard, Hampton Inn). This code is OPTIONAL if the hotel is an independent property that can be identified by the HotelCode attribute alone.

Parameters:
basicPropertyInfoBrandCode
        public void setBasicPropertyInfoBrandCode(
                String basicPropertyInfoBrandCode) {
            this. = basicPropertyInfoBrandCode;
        }

        
Get the 'HotelCode' attribute value. The HotelCode MUST uniquely identify a single hotel property for which the availability was performed. The HotelCode MAY be used in conjunction with the ChainCode and BrandCode in order to uniquely identify the hotel property. The hotel code is decided between vendors.

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

        
Set the 'HotelCode' attribute value. The HotelCode MUST uniquely identify a single hotel property for which the availability was performed. The HotelCode MAY be used in conjunction with the ChainCode and BrandCode in order to uniquely identify the hotel property. The hotel code is decided between vendors.

Parameters:
basicPropertyInfoHotelCode
        public void setBasicPropertyInfoHotelCode(
                String basicPropertyInfoHotelCode) {
            this. = basicPropertyInfoHotelCode;
        }

        
Get the 'HotelName' attribute value. HotelName MAY specify the proper name of the hotel.

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

        
Set the 'HotelName' attribute value. HotelName MAY specify the proper name of the hotel.

Parameters:
basicPropertyInfoHotelName
        public void setBasicPropertyInfoHotelName(
                String basicPropertyInfoHotelName) {
            this. = basicPropertyInfoHotelName;
        }

        
Get the 'ChainName' attribute value. ChainName MAY specify the name of the hotel chain (e.g., Hilton, Marriott, Hyatt).

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

        
Set the 'ChainName' attribute value. ChainName MAY specify the name of the hotel chain (e.g., Hilton, Marriott, Hyatt).

Parameters:
basicPropertyInfoChainName
        public void setBasicPropertyInfoChainName(
                String basicPropertyInfoChainName) {
            this. = basicPropertyInfoChainName;
        }

        
Get the 'BrandName' attribute value. BrandName MAY specify the name of the brand of the hotel property (e.g., Courtyard, Hampton Inn).

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

        
Set the 'BrandName' attribute value. BrandName MAY specify the name of the brand of the hotel property (e.g., Courtyard, Hampton Inn).

Parameters:
basicPropertyInfoBrandName
        public void setBasicPropertyInfoBrandName(
                String basicPropertyInfoBrandName) {
            this. = basicPropertyInfoBrandName;
        }

        
Get the list of 'WarningRPH' attribute items. This references the RPH found in the Warning element. Used to identify the warnings associated with this RoomStay.

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

        
Set the list of 'WarningRPH' attribute items. This references the RPH found in the Warning element. Used to identify the warnings associated with this RoomStay.

Parameters:
list
        public void setWarningRPHs(List<Stringlist) {
             = list;
        }

        
Serializer for 'WarningRPH' attribute list.

Parameters:
values
Returns:
text
        public static String serializeWarningRPHs(List<Stringvalues) {
            if (values == null) {
                return null;
            } else {
                java.lang.StringBuffer buff = new java.lang.StringBuffer();
                for (java.util.Iterator<Stringiter = values.iterator(); iter
                        .hasNext();) {
                    if (buff.length() > 0) {
                        buff.append(' ');
                    }
                    String value = iter.next();
                    buff.append(value);
                }
                return buff.toString();
            }
        }

        
Deserializer for 'WarningRPH' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
        public static List<StringdeserializeWarningRPHs(String text)
                throws org.jibx.runtime.JiBXException {
            org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                public java.lang.Object deserialize(String text) {
                    return text;
                }
            };
            return (List<String>) org.jibx.runtime.Utility.deserializeList(
                    textldser);
        }

        
Get the number of 'WarningRPH' attribute items.

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

        
Add a 'WarningRPH' attribute item.

Parameters:
item
        public void addWarningRPH(String item) {
            .add(item);
        }

        
Get 'WarningRPH' attribute item by position.

Parameters:
index
Returns:
item
        public String getWarningRPH(int index) {
            return .get(index);
        }

        
Remove all 'WarningRPH' attribute items.
        public void clearWarningRPHs() {
            .clear();
        }
        
RoomType MUST specify the details of an available room type. 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="RoomType" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="RoomDescription">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Text">
               <xs:complexType>
                 <xs:simpleContent>
                   <xs:extension base="xs:string">
                     <xs:attribute type="xs:string" use="optional" name="Language"/>
                   </xs:extension>
                 </xs:simpleContent>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
           <xs:attribute type="xs:string" use="optional" name="Name"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="required" name="RoomTypeCode"/>
     <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="BedTypeCode"/>
     <xs:attribute type="xs:boolean" use="optional" name="NonSmoking"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
        public static class Room
        {
            private String roomDescriptionTextString;
            private String roomDescriptionTextLanguage;
            private String roomDescriptionName;
            private String roomTypeCode;
            private List<StringbedTypeCodes = new ArrayList<String>();
            private Boolean nonSmoking;

            
Get the extension value.

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

            
Set the extension value.

Parameters:
roomDescriptionTextString
            public void setRoomDescriptionTextString(
                    String roomDescriptionTextString) {
                this. = roomDescriptionTextString;
            }

            
Get the 'Language' attribute value. Language MAY be used to specify the language of this text item if it differs from the language identified in the PrimaryLangID on the root element. Language MUST conform to ISO 639 language codes.

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

            
Set the 'Language' attribute value. Language MAY be used to specify the language of this text item if it differs from the language identified in the PrimaryLangID on the root element. Language MUST conform to ISO 639 language codes.

Parameters:
roomDescriptionTextLanguage
            public void setRoomDescriptionTextLanguage(
                    String roomDescriptionTextLanguage) {
                this. = roomDescriptionTextLanguage;
            }

            
Get the 'Name' attribute value. The Name MAY be used to identify the type of information sent in the Text element.

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

            
Set the 'Name' attribute value. The Name MAY be used to identify the type of information sent in the Text element.

Parameters:
roomDescriptionName
            public void setRoomDescriptionName(String roomDescriptionName) {
                this. = roomDescriptionName;
            }

            
Get the 'RoomTypeCode' attribute value. RoomTypeCode MUST specify the system room type code that identifies this room type (e.g. A1K, A1Q).

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

            
Set the 'RoomTypeCode' attribute value. RoomTypeCode MUST specify the system room type code that identifies this room type (e.g. A1K, A1Q).

Parameters:
roomTypeCode
            public void setRoomTypeCode(String roomTypeCode) {
                this. = roomTypeCode;
            }

            
Get the list of 'BedTypeCode' attribute items. BedTypeCode MAY specify the type of bed(s) found in the room. Typical values would be Double, Twin, Queen, or King. Refer to OpenTravel Code List Bed Type Code (BED).

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

            
Set the list of 'BedTypeCode' attribute items. BedTypeCode MAY specify the type of bed(s) found in the room. Typical values would be Double, Twin, Queen, or King. Refer to OpenTravel Code List Bed Type Code (BED).

Parameters:
list
            public void setBedTypeCodes(List<Stringlist) {
                 = list;
            }

            
Serializer for 'BedTypeCode' attribute list.

Parameters:
values
Returns:
text
            public static String serializeBedTypeCodes(List<Stringvalues) {
                if (values == null) {
                    return null;
                } else {
                    java.lang.StringBuffer buff = new java.lang.StringBuffer();
                    for (java.util.Iterator<Stringiter = values.iterator(); iter
                            .hasNext();) {
                        if (buff.length() > 0) {
                            buff.append(' ');
                        }
                        String value = iter.next();
                        buff.append(value);
                    }
                    return buff.toString();
                }
            }

            
Deserializer for 'BedTypeCode' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            public static List<StringdeserializeBedTypeCodes(String text)
                    throws org.jibx.runtime.JiBXException {
                org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                    public java.lang.Object deserialize(String text) {
                        return text;
                    }
                };
                return (List<String>) org.jibx.runtime.Utility.deserializeList(
                        textldser);
            }

            
Get the number of 'BedTypeCode' attribute items.

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

            
Add a 'BedTypeCode' attribute item.

Parameters:
item
            public void addBedTypeCode(String item) {
                .add(item);
            }

            
Get 'BedTypeCode' attribute item by position.

Parameters:
index
Returns:
item
            public String getBedTypeCode(int index) {
                return .get(index);
            }

            
Remove all 'BedTypeCode' attribute items.
            public void clearBedTypeCodes() {
                .clear();
            }

            
Get the 'NonSmoking' attribute value. The NonSmoking indicator MAY be used to specify whether or not the room type is non-smoking. When true, the room type MUST be non-smoking.

Returns:
value
            public Boolean getNonSmoking() {
                return ;
            }

            
Set the 'NonSmoking' attribute value. The NonSmoking indicator MAY be used to specify whether or not the room type is non-smoking. When true, the room type MUST be non-smoking.

Parameters:
nonSmoking
            public void setNonSmoking(Boolean nonSmoking) {
                this. = nonSmoking;
            }
        }
        
RatePlan MUST specify the details of an available rate plan. 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="RatePlan" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="MealsIncluded" minOccurs="0">
         <!-- Reference to inner class MealsIncluded -->
       </xs:element>
       <xs:element name="RatePlanDescription">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Text">
               <xs:complexType>
                 <xs:simpleContent>
                   <xs:extension base="xs:string">
                     <xs:attribute type="xs:string" use="optional" name="Language"/>
                   </xs:extension>
                 </xs:simpleContent>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
           <xs:attribute type="xs:string" use="optional" name="Name"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="required" name="RatePlanCode"/>
   </xs:complexType>
 </xs:element>
 
        public static class RatePlan
        {
            private MealsIncluded mealsIncluded;
            private String ratePlanDescriptionTextString;
            private String ratePlanDescriptionTextLanguage;
            private String ratePlanDescriptionName;
            private String ratePlanCode;

            
Get the 'MealsIncluded' element value.

Returns:
value
            public MealsIncluded getMealsIncluded() {
                return ;
            }

            
Set the 'MealsIncluded' element value.

Parameters:
mealsIncluded
            public void setMealsIncluded(MealsIncluded mealsIncluded) {
                this. = mealsIncluded;
            }

            
Get the extension value.

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

            
Set the extension value.

Parameters:
ratePlanDescriptionTextString
            public void setRatePlanDescriptionTextString(
                    String ratePlanDescriptionTextString) {
                this. = ratePlanDescriptionTextString;
            }

            
Get the 'Language' attribute value. Language MAY be used to specify the language of this text item if it differs from the language identified in the PrimaryLangID on the root element. Language MUST conform to ISO 639 language codes.

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

            
Set the 'Language' attribute value. Language MAY be used to specify the language of this text item if it differs from the language identified in the PrimaryLangID on the root element. Language MUST conform to ISO 639 language codes.

Parameters:
ratePlanDescriptionTextLanguage
            public void setRatePlanDescriptionTextLanguage(
                    String ratePlanDescriptionTextLanguage) {
                this. = ratePlanDescriptionTextLanguage;
            }

            
Get the 'Name' attribute value. The Name MAY be used to identify the type of information sent in the Text element.

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

            
Set the 'Name' attribute value. The Name MAY be used to identify the type of information sent in the Text element.

Parameters:
ratePlanDescriptionName
            public void setRatePlanDescriptionName(
                    String ratePlanDescriptionName) {
                this. = ratePlanDescriptionName;
            }

            
Get the 'RatePlanCode' attribute value. RatePlanCode MUST specify the code that identifies this rate plan.

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

            
Set the 'RatePlanCode' attribute value. RatePlanCode MUST specify the code that identifies this rate plan.

Parameters:
ratePlanCode
            public void setRatePlanCode(String ratePlanCode) {
                this. = ratePlanCode;
            }
            
MealsIncluded MAY specify which meals are included in this rate plan. FastRez RECOMMENDS that either the MealPlanCodes attribute be used OR the Breakfast, Lunch and Dinner booleans be used, but that they SHOULD NOT be used in conjunction with each other. 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="MealsIncluded" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:boolean" use="optional" name="Breakfast"/>
     <xs:attribute type="xs:boolean" use="optional" name="Lunch"/>
     <xs:attribute type="xs:boolean" use="optional" name="Dinner"/>
     <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="MealPlanCodes"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
            public static class MealsIncluded
            {
                private Boolean breakfast;
                private Boolean lunch;
                private Boolean dinner;
                private List<StringmealPlanCodes = new ArrayList<String>();

                
Get the 'Breakfast' attribute value. The Breakfast indicator MAY be used to specify if breakfast is included with this rate plan. When true, breakfast MUST be included.

Returns:
value
                public Boolean getBreakfast() {
                    return ;
                }

                
Set the 'Breakfast' attribute value. The Breakfast indicator MAY be used to specify if breakfast is included with this rate plan. When true, breakfast MUST be included.

Parameters:
breakfast
                public void setBreakfast(Boolean breakfast) {
                    this. = breakfast;
                }

                
Get the 'Lunch' attribute value. The Lunch indicator MAY be used to specify if lunch is included with this rate plan. When true, lunch MUST be included.

Returns:
value
                public Boolean getLunch() {
                    return ;
                }

                
Set the 'Lunch' attribute value. The Lunch indicator MAY be used to specify if lunch is included with this rate plan. When true, lunch MUST be included.

Parameters:
lunch
                public void setLunch(Boolean lunch) {
                    this. = lunch;
                }

                
Get the 'Dinner' attribute value. The Dinner indicator MAY be used to specify if dinner is included with this rate plan. When true, dinner MUST be included.

Returns:
value
                public Boolean getDinner() {
                    return ;
                }

                
Set the 'Dinner' attribute value. The Dinner indicator MAY be used to specify if dinner is included with this rate plan. When true, dinner MUST be included.

Parameters:
dinner
                public void setDinner(Boolean dinner) {
                    this. = dinner;
                }

                
Get the list of 'MealPlanCodes' attribute items. The MealPlanCodes MAY be used to identify the types of meals included with this rate plan. The MealPlanCodes MUST refer to OpenTravel Code List Meal Plan Type (MPT).

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

                
Set the list of 'MealPlanCodes' attribute items. The MealPlanCodes MAY be used to identify the types of meals included with this rate plan. The MealPlanCodes MUST refer to OpenTravel Code List Meal Plan Type (MPT).

Parameters:
list
                public void setMealPlanCodes(List<Stringlist) {
                     = list;
                }

                
Serializer for 'MealPlanCodes' attribute list.

Parameters:
values
Returns:
text
                public static String serializeMealPlanCodes(List<Stringvalues) {
                    if (values == null) {
                        return null;
                    } else {
                        java.lang.StringBuffer buff = new java.lang.StringBuffer();
                        for (java.util.Iterator<Stringiter = values
                                .iterator(); iter.hasNext();) {
                            if (buff.length() > 0) {
                                buff.append(' ');
                            }
                            String value = iter.next();
                            buff.append(value);
                        }
                        return buff.toString();
                    }
                }

                
Deserializer for 'MealPlanCodes' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
                public static List<StringdeserializeMealPlanCodes(String text)
                        throws org.jibx.runtime.JiBXException {
                    org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                        public java.lang.Object deserialize(String text) {
                            return text;
                        }
                    };
                    return (List<String>) org.jibx.runtime.Utility
                            .deserializeList(textldser);
                }

                
Get the number of 'MealPlanCodes' attribute items.

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

                
Add a 'MealPlanCodes' attribute item.

Parameters:
item
                public void addMealPlanCode(String item) {
                    .add(item);
                }

                
Get 'MealPlanCodes' attribute item by position.

Parameters:
index
Returns:
item
                public String getMealPlanCode(int index) {
                    return .get(index);
                }

                
Remove all 'MealPlanCodes' attribute items.
                public void clearMealPlanCodes() {
                    .clear();
                }
            }
        }
        
RoomRate MUST specify the details of an available room rate. 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="RoomRate" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Rates">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Rate">
               <xs:complexType>
                 <xs:sequence>
                   <xs:element name="CancelPolicies" minOccurs="0">
                     <!-- Reference to inner class CancelPolicies -->
                   </xs:element>
                   <xs:element name="Total">
                     <xs:complexType>
                       <xs:attribute type="xs:float" use="optional" name="AmountBeforeTax"/>
                       <xs:attribute type="xs:float" use="optional" name="AmountAfterTax"/>
                       <xs:attribute type="xs:string" use="required" name="CurrencyCode"/>
                     </xs:complexType>
                   </xs:element>
                 </xs:sequence>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:date" use="required" name="EffectiveDate"/>
     <xs:attribute type="xs:date" use="required" name="ExpireDate"/>
     <xs:attribute type="xs:boolean" use="required" name="ExpireDateExclusiveIndicator"/>
     <xs:attribute type="xs:string" use="required" name="RoomTypeCode"/>
     <xs:attribute type="xs:string" use="required" name="RatePlanCode"/>
     <xs:attribute type="xs:string" use="optional" name="PromotionCode"/>
   </xs:complexType>
 </xs:element>
 
        public static class RoomRate
        {
            private CancelPolicies cancelPolicies;
            private Float ratesTotalAmountBeforeTax;
            private Float ratesTotalAmountAfterTax;
            private String ratesTotalCurrencyCode;
            private LocalDate effectiveDate;
            private LocalDate expireDate;
            private Boolean expireDateExclusiveIndicator;
            private