Class MVCMessage

java.lang.Object
fr.paris.lutece.portal.util.mvc.utils.MVCMessage
All Implemented Interfaces:
ErrorMessage, Serializable

public class MVCMessage extends Object implements ErrorMessage, Serializable
MVCMessage
See Also:
  • Constructor Details

    • MVCMessage

      public MVCMessage()
      Basic constructor
    • MVCMessage

      public MVCMessage(String strMessage)
      Constructor
      Parameters:
      strMessage - The message
    • MVCMessage

      public MVCMessage(String strMessage, String strFieldName)
      Constructor
      Parameters:
      strMessage - The message
      strFieldName - the field name
  • Method Details

    • getMessage

      public String getMessage()
      Returns the error's message
      Specified by:
      getMessage in interface ErrorMessage
      Returns:
      The message
    • setMessage

      public void setMessage(String message)
      Set the content of this error message
      Parameters:
      message - the message to set
    • setFieldName

      public void setFieldName(String strFieldName)
      Set the FieldName
      Parameters:
      FieldName - the FieldName to set
    • getFieldName

      public String getFieldName()
      Description copied from interface: ErrorMessage
      Returns the field name
      Specified by:
      getFieldName in interface ErrorMessage
      Returns:
      the field name