Class MVCMessage

  • All Implemented Interfaces:
    ErrorMessage, java.io.Serializable

    public class MVCMessage
    extends java.lang.Object
    implements ErrorMessage, java.io.Serializable
    MVCMessage
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MVCMessage()
      Basic constructor
      MVCMessage​(java.lang.String strMessage)
      Constructor
      MVCMessage​(java.lang.String strMessage, java.lang.String strFieldName)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldName()
      Returns the field name
      java.lang.String getMessage()
      Returns the error's message
      void setFieldName​(java.lang.String strFieldName)
      Set the FieldName
      void setMessage​(java.lang.String message)
      Set the content of this error message
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MVCMessage

        public MVCMessage()
        Basic constructor
      • MVCMessage

        public MVCMessage​(java.lang.String strMessage)
        Constructor
        Parameters:
        strMessage - The message
      • MVCMessage

        public MVCMessage​(java.lang.String strMessage,
                          java.lang.String strFieldName)
        Constructor
        Parameters:
        strMessage - The message
        strFieldName - the field name
    • Method Detail

      • getMessage

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

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

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

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