jcolibri.test.test2
Class TravelDescription
java.lang.Object
jcolibri.test.test2.TravelDescription
- All Implemented Interfaces:
- CaseComponent
public class TravelDescription
- extends java.lang.Object
- implements CaseComponent
Bean that stores the description of the case.
This version includes an enum for the accomodations and uses the MyStringType user defined type to store the hotels.
- Version:
- 1.0
- Author:
- Juan A. Recio-Garcia
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TravelDescription
public TravelDescription()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getAccommodation
public jcolibri.test.test2.TravelDescription.AccommodationTypes getAccommodation()
- Returns:
- the accomodation
setAccommodation
public void setAccommodation(jcolibri.test.test2.TravelDescription.AccommodationTypes accomodation)
- Parameters:
accomodation
- the accomodation to set
getCaseId
public java.lang.String getCaseId()
- Returns:
- the caseId
setCaseId
public void setCaseId(java.lang.String caseId)
- Parameters:
caseId
- the caseId to set
getDuration
public java.lang.Integer getDuration()
- Returns:
- the duration
setDuration
public void setDuration(java.lang.Integer duration)
- Parameters:
duration
- the duration to set
getHolidayType
public java.lang.String getHolidayType()
- Returns:
- the holidayType
setHolidayType
public void setHolidayType(java.lang.String holidayType)
- Parameters:
holidayType
- the holidayType to set
getHotel
public MyStringType getHotel()
- Returns:
- the hotel
setHotel
public void setHotel(MyStringType hotel)
- Parameters:
hotel
- the hotel to set
getNumberOfPersons
public java.lang.Integer getNumberOfPersons()
- Returns:
- the numberOfPersons
setNumberOfPersons
public void setNumberOfPersons(java.lang.Integer numberOfPersons)
- Parameters:
numberOfPersons
- the numberOfPersons to set
getPrice
public java.lang.Integer getPrice()
- Returns:
- the price
setPrice
public void setPrice(java.lang.Integer price)
- Parameters:
price
- the price to set
getRegion
public java.lang.String getRegion()
- Returns:
- the region
setRegion
public void setRegion(java.lang.String region)
- Parameters:
region
- the region to set
getSeason
public java.lang.String getSeason()
- Returns:
- the season
setSeason
public void setSeason(java.lang.String season)
- Parameters:
season
- the season to set
getTransportation
public java.lang.String getTransportation()
- Returns:
- the transportation
setTransportation
public void setTransportation(java.lang.String transportation)
- Parameters:
transportation
- the transportation to set
main
public static void main(java.lang.String[] args)
getIdAttribute
public Attribute getIdAttribute()
- Description copied from interface:
CaseComponent
- Returns the attribute that identifies the component.
An id-attribute must be unique for each component.
- Specified by:
getIdAttribute
in interface CaseComponent