Class Reservation
- java.lang.Object
-
- com.flower.docs.domain.common.IdentifiableElement
-
- com.flower.docs.domain.reservation.Reservation
-
- All Implemented Interfaces:
java.io.Serializable
public class Reservation extends IdentifiableElement implements java.io.Serializable
A component reservation: object allowing to reserve a component for a user <p>Java class for Reservation complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> <complexType name="Reservation"> <complexContent> <extension base="{http://flower.com/docs/domain/common}IdentifiableElement"> <sequence> <element name="component" type="{http://flower.com/docs/domain/component}ComponentReference"/> <element name="date" type="{http://flower.com/docs/domain/common}ISODateType"/> <element name="user" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="type" type="{http://flower.com/docs/domain/reservation}ReservationType"/> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/> </sequence> </extension> </complexContent> </complexType> </pre>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ComponentReferencecomponentThe reference of reserved componentprotected java.util.DatedateThe reference of reserved componentprotected java.lang.StringdescriptionDescribe the reason of the reservationprotected ReservationTypetypeThe reservation typeprotected java.lang.StringuserThe user for which the reservation has been created-
Fields inherited from class com.flower.docs.domain.common.IdentifiableElement
id
-
-
Constructor Summary
Constructors Constructor Description Reservation()Default no-arg constructor abcReservation(Id id, ComponentReference component, java.util.Date date, java.lang.String user, ReservationType type, java.lang.String description)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)ComponentReferencegetComponent()Gets the value of the component property.java.util.DategetDate()Gets the value of the date property.java.lang.StringgetDescription()Gets the value of the description property.ReservationTypegetType()Gets the value of the type property.java.lang.StringgetUser()Gets the value of the user property.inthashCode()voidsetComponent(ComponentReference value)Sets the value of the component property.voidsetDate(java.util.Date value)Sets the value of the date property.voidsetDescription(java.lang.String value)Sets the value of the description property.voidsetType(ReservationType value)Sets the value of the type property.voidsetUser(java.lang.String value)Sets the value of the user property.java.lang.StringtoString()-
Methods inherited from class com.flower.docs.domain.common.IdentifiableElement
getId, setId
-
-
-
-
Field Detail
-
component
protected ComponentReference component
The reference of reserved component
-
date
protected java.util.Date date
The reference of reserved component
-
user
protected java.lang.String user
The user for which the reservation has been created
-
type
protected ReservationType type
The reservation type
-
description
protected java.lang.String description
Describe the reason of the reservation
-
-
Constructor Detail
-
Reservation
public Reservation()
Default no-arg constructor abc
-
Reservation
public Reservation(Id id, ComponentReference component, java.util.Date date, java.lang.String user, ReservationType type, java.lang.String description)
Fully-initialising value constructor
-
-
Method Detail
-
getComponent
public ComponentReference getComponent()
Gets the value of the component property. <p> The reference of reserved component- Returns:
- possible object is
ComponentReference
-
setComponent
public void setComponent(ComponentReference value)
Sets the value of the component property.- Parameters:
value- allowed object isComponentReference- See Also:
getComponent()
-
getDate
public java.util.Date getDate()
Gets the value of the date property. <p> The reference of reserved component- Returns:
- possible object is
String
-
setDate
public void setDate(java.util.Date value)
Sets the value of the date property.- Parameters:
value- allowed object isString- See Also:
getDate()
-
getUser
public java.lang.String getUser()
Gets the value of the user property. <p> The user for which the reservation has been created- Returns:
- possible object is
String
-
setUser
public void setUser(java.lang.String value)
Sets the value of the user property.- Parameters:
value- allowed object isString- See Also:
getUser()
-
getType
public ReservationType getType()
Gets the value of the type property. <p> The reservation type- Returns:
- possible object is
ReservationType
-
setType
public void setType(ReservationType value)
Sets the value of the type property.- Parameters:
value- allowed object isReservationType- See Also:
getType()
-
getDescription
public java.lang.String getDescription()
Gets the value of the description property. <p> Describe the reason of the reservation- Returns:
- possible object is
String
-
setDescription
public void setDescription(java.lang.String value)
Sets the value of the description property.- Parameters:
value- allowed object isString- See Also:
getDescription()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-