com.ean.wsapi.hotel.v3.Room Maven / Gradle / Ivy
package com.ean.wsapi.hotel.v3;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for Room complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Room">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="numberOfAdults" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="numberOfChildren" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="childAges" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
* <element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="lastName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="bedTypeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="bedTypeDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="numberOfBeds" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="smokingPreference" type="{http://v3.hotel.wsapi.ean.com/}SmokingPreference" minOccurs="0"/>
* <element name="roomTypeCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="rateCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="rateKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="roomDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="chargeableRate" type="{http://www.w3.org/2001/XMLSchema}float" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Room", propOrder = {
"numberOfAdults",
"numberOfChildren",
"childAges",
"firstName",
"lastName",
"bedTypeId",
"bedTypeDescription",
"numberOfBeds",
"smokingPreference",
"roomTypeCode",
"rateCode",
"rateKey",
"roomDescription",
"chargeableRate"
})
public class Room {
protected int numberOfAdults;
protected Integer numberOfChildren;
@XmlElement(type = Integer.class)
protected List childAges;
protected String firstName;
protected String lastName;
protected String bedTypeId;
protected String bedTypeDescription;
protected Integer numberOfBeds;
protected SmokingPreference smokingPreference;
protected String roomTypeCode;
protected String rateCode;
protected String rateKey;
protected String roomDescription;
protected Float chargeableRate;
/**
* Gets the value of the numberOfAdults property.
*
*/
public int getNumberOfAdults() {
return numberOfAdults;
}
/**
* Sets the value of the numberOfAdults property.
*
*/
public void setNumberOfAdults(int value) {
this.numberOfAdults = value;
}
/**
* Gets the value of the numberOfChildren property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getNumberOfChildren() {
return numberOfChildren;
}
/**
* Sets the value of the numberOfChildren property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setNumberOfChildren(Integer value) {
this.numberOfChildren = value;
}
/**
* Gets the value of the childAges property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the childAges property.
*
*
* For example, to add a new item, do as follows:
*
* getChildAges().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*
*
*/
public List getChildAges() {
if (childAges == null) {
childAges = new ArrayList();
}
return this.childAges;
}
/**
* Gets the value of the firstName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFirstName() {
return firstName;
}
/**
* Sets the value of the firstName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFirstName(String value) {
this.firstName = value;
}
/**
* Gets the value of the lastName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLastName() {
return lastName;
}
/**
* Sets the value of the lastName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastName(String value) {
this.lastName = value;
}
/**
* Gets the value of the bedTypeId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBedTypeId() {
return bedTypeId;
}
/**
* Sets the value of the bedTypeId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBedTypeId(String value) {
this.bedTypeId = value;
}
/**
* Gets the value of the bedTypeDescription property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBedTypeDescription() {
return bedTypeDescription;
}
/**
* Sets the value of the bedTypeDescription property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBedTypeDescription(String value) {
this.bedTypeDescription = value;
}
/**
* Gets the value of the numberOfBeds property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getNumberOfBeds() {
return numberOfBeds;
}
/**
* Sets the value of the numberOfBeds property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setNumberOfBeds(Integer value) {
this.numberOfBeds = value;
}
/**
* Gets the value of the smokingPreference property.
*
* @return
* possible object is
* {@link SmokingPreference }
*
*/
public SmokingPreference getSmokingPreference() {
return smokingPreference;
}
/**
* Sets the value of the smokingPreference property.
*
* @param value
* allowed object is
* {@link SmokingPreference }
*
*/
public void setSmokingPreference(SmokingPreference value) {
this.smokingPreference = value;
}
/**
* Gets the value of the roomTypeCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRoomTypeCode() {
return roomTypeCode;
}
/**
* Sets the value of the roomTypeCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRoomTypeCode(String value) {
this.roomTypeCode = value;
}
/**
* Gets the value of the rateCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRateCode() {
return rateCode;
}
/**
* Sets the value of the rateCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRateCode(String value) {
this.rateCode = value;
}
/**
* Gets the value of the rateKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRateKey() {
return rateKey;
}
/**
* Sets the value of the rateKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRateKey(String value) {
this.rateKey = value;
}
/**
* Gets the value of the roomDescription property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRoomDescription() {
return roomDescription;
}
/**
* Sets the value of the roomDescription property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRoomDescription(String value) {
this.roomDescription = value;
}
/**
* Gets the value of the chargeableRate property.
*
* @return
* possible object is
* {@link Float }
*
*/
public Float getChargeableRate() {
return chargeableRate;
}
/**
* Sets the value of the chargeableRate property.
*
* @param value
* allowed object is
* {@link Float }
*
*/
public void setChargeableRate(Float value) {
this.chargeableRate = value;
}
}