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 ComponentReference
component
The reference of reserved componentprotected java.util.Date
date
The reference of reserved componentprotected java.lang.String
description
Describe the reason of the reservationprotected ReservationType
type
The reservation typeprotected java.lang.String
user
The 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 boolean
equals(java.lang.Object other)
ComponentReference
getComponent()
Gets the value of the component property.java.util.Date
getDate()
Gets the value of the date property.java.lang.String
getDescription()
Gets the value of the description property.ReservationType
getType()
Gets the value of the type property.java.lang.String
getUser()
Gets the value of the user property.int
hashCode()
void
setComponent(ComponentReference value)
Sets the value of the component property.void
setDate(java.util.Date value)
Sets the value of the date property.void
setDescription(java.lang.String value)
Sets the value of the description property.void
setType(ReservationType value)
Sets the value of the type property.void
setUser(java.lang.String value)
Sets the value of the user property.java.lang.String
toString()
-
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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-