Class 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> &lt;complexType name="Reservation"&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/common}IdentifiableElement"&gt; &lt;sequence&gt; &lt;element name="component" type="{http://flower.com/docs/domain/component}ComponentReference"/&gt; &lt;element name="date" type="{http://flower.com/docs/domain/common}ISODateType"/&gt; &lt;element name="user" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="type" type="{http://flower.com/docs/domain/reservation}ReservationType"/&gt; &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Detail

      • 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
      • 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
      • 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 is String
        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 is String
        See Also:
        getUser()
      • getType

        public ReservationType getType()
        Gets the value of the type property. <p> The reservation type
        Returns:
        possible object is ReservationType
      • 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 is String
        See Also:
        getDescription()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object