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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MVCMessage()Basic constructorMVCMessage(String strMessage)ConstructorMVCMessage(String strMessage, String strFieldName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFieldName()Returns the field nameStringgetMessage()Returns the error's messagevoidsetFieldName(String strFieldName)Set the FieldNamevoidsetMessage(String message)Set the content of this error message
-
-
-
Constructor Detail
-
MVCMessage
public MVCMessage()
Basic constructor
-
MVCMessage
public MVCMessage(String strMessage)
Constructor- Parameters:
strMessage- The message
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the error's message- Specified by:
getMessagein interfaceErrorMessage- 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:ErrorMessageReturns the field name- Specified by:
getFieldNamein interfaceErrorMessage- Returns:
- the field name
-
-