Class AnswerEntityImpl

java.lang.Object
com.flowable.questionnaire.service.impl.entity.AnswerEntityImpl
All Implemented Interfaces:
Answer, AnswerEntity

public class AnswerEntityImpl
extends java.lang.Object
implements AnswerEntity
Author:
Filip Hrisafov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String content  
    protected java.lang.String id  
    protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters  
    protected java.lang.String type  
  • Constructor Summary

    Constructors 
    Constructor Description
    AnswerEntityImpl()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getContent()
    The optional content of the answer.
    java.lang.String getId()
    Returns the unique id of this answer.
    java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameters()
    The optional parameters for the answer.
    java.lang.String getType()
    Returns the type (typically an enumeration) of the answer
    void setContent​(java.lang.String content)  
    void setId​(java.lang.String id)  
    void setParameters​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters)  
    void setType​(java.lang.String type)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      protected java.lang.String id
    • type

      protected java.lang.String type
    • content

      protected java.lang.String content
    • parameters

      protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters
  • Constructor Details

  • Method Details

    • getId

      public java.lang.String getId()
      Description copied from interface: Answer
      Returns the unique id of this answer.
      Specified by:
      getId in interface Answer
      Returns:
      the id of the answer
    • setId

      public void setId​(java.lang.String id)
      Specified by:
      setId in interface AnswerEntity
    • getType

      public java.lang.String getType()
      Description copied from interface: Answer
      Returns the type (typically an enumeration) of the answer
      Specified by:
      getType in interface Answer
      Returns:
      the type of this answer
    • setType

      public void setType​(java.lang.String type)
      Specified by:
      setType in interface AnswerEntity
    • getContent

      public java.lang.String getContent()
      Description copied from interface: Answer
      The optional content of the answer.
      Specified by:
      getContent in interface Answer
      Returns:
      the optional content of the answer, might be null
    • setContent

      public void setContent​(java.lang.String content)
      Specified by:
      setContent in interface AnswerEntity
    • getParameters

      public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameters()
      Description copied from interface: Answer
      The optional parameters for the answer.
      Specified by:
      getParameters in interface Answer
      Returns:
      the optional parameters for the question, might be empty or even null
    • setParameters

      public void setParameters​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters)
      Specified by:
      setParameters in interface AnswerEntity