Class Answer

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ReasonedAnswer, ReasonedAnswerDefinition

    public class Answer
    extends IdentifiableElement
    implements java.io.Serializable
    The definition of an answer which can be executed on a task instance <p>Java class for Answer complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="Answer"&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/common}IdentifiableElement"&gt; &lt;sequence&gt; &lt;element name="displayNames" type="{http://flower.com/docs/domain/i18n}I18NLabel" maxOccurs="unbounded"/&gt; &lt;element name="confirmationMessages" type="{http://flower.com/docs/domain/i18n}I18NLabel" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="icon" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Detail

      • displayNames

        protected java.util.List<I18NLabel> displayNames
      • confirmationMessages

        protected java.util.List<I18NLabel> confirmationMessages
      • icon

        protected java.lang.String icon
    • Constructor Detail

      • Answer

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

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

      • getDisplayNames

        public java.util.List<I18NLabel> getDisplayNames()
        Gets the value of the displayNames 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 displayNames property. <p> For example, to add a new item, do as follows: <pre> getDisplayNames().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list I18NLabel
      • getConfirmationMessages

        public java.util.List<I18NLabel> getConfirmationMessages()
        Gets the value of the confirmationMessages 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 confirmationMessages property. <p> For example, to add a new item, do as follows: <pre> getConfirmationMessages().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list I18NLabel
      • getIcon

        public java.lang.String getIcon()
        Gets the value of the icon property.
        Returns:
        possible object is String
      • setIcon

        public void setIcon​(java.lang.String value)
        Sets the value of the icon property.
        Parameters:
        value - allowed object is String
      • 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
      • setDisplayNames

        public void setDisplayNames​(java.util.List<I18NLabel> value)
      • setConfirmationMessages

        public void setConfirmationMessages​(java.util.List<I18NLabel> value)