Class ReasonedAnswerDefinition

  • All Implemented Interfaces:
    java.io.Serializable

    public class ReasonedAnswerDefinition
    extends Answer
    implements java.io.Serializable
    <p>Java class for ReasonedAnswerDefinition complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="ReasonedAnswerDefinition"&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/taskclass}Answer"&gt; &lt;sequence&gt; &lt;element name="reasons" type="{http://flower.com/docs/domain/taskclass}Reason" maxOccurs="unbounded"/&gt; &lt;element name="targetStatus" type="{http://flower.com/docs/domain/common}Status" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Detail

      • reasons

        protected java.util.List<Reason> reasons
        The reasons of the answer
      • targetStatus

        protected Status targetStatus
        The status to apply on the task at answer processing
    • Constructor Detail

      • ReasonedAnswerDefinition

        public ReasonedAnswerDefinition()
        Default no-arg constructor abc
      • ReasonedAnswerDefinition

        public ReasonedAnswerDefinition​(Id id,
                                        java.util.List<I18NLabel> displayNames,
                                        java.util.List<I18NLabel> confirmationMessages,
                                        java.util.List<Reason> reasons,
                                        Status targetStatus)
        Fully-initialising value constructor
    • Method Detail

      • getReasons

        public java.util.List<Reason> getReasons()
        Gets the value of the reasons property. <p> 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 <CODE>set</CODE> method for the reasons property. <p> For example, to add a new item, do as follows: <pre> getReasons().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list Reason <p> The reasons of the answer
      • getTargetStatus

        public Status getTargetStatus()
        Gets the value of the targetStatus property. <p> The status to apply on the task at answer processing
        Returns:
        possible object is Status
      • setTargetStatus

        public void setTargetStatus​(Status value)
        Sets the value of the targetStatus property.
        Parameters:
        value - allowed object is Status
        See Also:
        getTargetStatus()
      • toString

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

        public int hashCode()
        Overrides:
        hashCode in class Answer
      • equals

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

        public void setReasons​(java.util.List<Reason> value)
        See Also:
        getReasons()