Class Response

  • All Implemented Interfaces:
    java.io.Serializable

    public class Response
    extends java.lang.Object
    implements java.io.Serializable
    class Response
    See Also:
    Serialized Form
    • Field Detail

      • CONSTANT_STATUS_ACTIVE

        public static final int CONSTANT_STATUS_ACTIVE
        Active status value
        See Also:
        Constant Field Values
      • CONSTANT_STATUS_ANONYMIZED

        public static final int CONSTANT_STATUS_ANONYMIZED
        Anonymized status value
        See Also:
        Constant Field Values
      • RESOURCE_TYPE

        public static final java.lang.String RESOURCE_TYPE
        The resource type of responses
        See Also:
        Constant Field Values
    • Constructor Detail

      • Response

        public Response()
        Default constructor
      • Response

        public Response​(Response response)
        Creates a response that is a copy of another response
        Parameters:
        response - The response to copy
    • Method Detail

      • getEntry

        public Entry getEntry()
        Returns:
        the question associate to the response
      • setEntry

        public void setEntry​(Entry entry)
        set the question associate to the response
        Parameters:
        entry - the question associate to the response
      • getIterationNumber

        public int getIterationNumber()
        Return the iteration number of the response
        Returns:
        the nIterationNumber
      • setIterationNumber

        public void setIterationNumber​(int nIterationNumber)
        Set the iteration number of the response
        Parameters:
        nIterationNumber - the nIterationNumber to set
      • getIdResponse

        public int getIdResponse()
        Returns:
        the id of the response
      • setIdResponse

        public void setIdResponse​(int idResponse)
        set the id of the response
        Parameters:
        idResponse - the id of the response
      • getField

        public Field getField()
        get the field associate to the response
        Returns:
        the field associate to the response
      • setField

        public void setField​(Field field)
        set the field associate to the response
        Parameters:
        field - field
      • getToStringValueResponse

        public java.lang.String getToStringValueResponse()
        return the string value response
        Returns:
        the string value of the response
      • setToStringValueResponse

        public void setToStringValueResponse​(java.lang.String strValueResponse)
        set the string value response
        Parameters:
        strValueResponse - the string value of the response
      • setResponseValue

        public void setResponseValue​(java.lang.String strResponseValue)
        Set the response value
        Parameters:
        strResponseValue - the response value
      • getResponseValue

        public java.lang.String getResponseValue()
        Get the response value
        Returns:
        the response value
      • getStatus

        public int getStatus()
        Get the status of this response
        Returns:
        The status of this response
      • setStatus

        public void setStatus​(int nStatus)
        Set the status of this response
        Parameters:
        nStatus - The status of this response
      • getFile

        public fr.paris.lutece.portal.business.file.File getFile()
        Get the file associated with this response
        Returns:
        the file The file associated with this response
      • setFile

        public void setFile​(fr.paris.lutece.portal.business.file.File file)
        Set the file associated with this response
        Parameters:
        file - The file associated with this response
      • getIsImage

        public boolean getIsImage()
        Get the isImage of this response
        Returns:
        The bIsImage of this response
      • setIsImage

        public void setIsImage​(boolean bIsImage)
        Set the isImage of this response
        Parameters:
        bIsImage - of this response
      • getSortOrder

        public int getSortOrder()
        Returns:
        the nSortOrder
      • setSortOrder

        public void setSortOrder​(int nSortOrder)
        Parameters:
        nSortOrder - the nSortOrder to set