Package de.xima.fc.workflow
Class WorkflowValidationMessage
java.lang.Object
de.xima.fc.workflow.WorkflowValidationMessage
- All Implemented Interfaces:
IWorkflowValidationMessage
,Serializable
POJO implementation of a
IWorkflowValidationMessage
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowValidationMessage
(EValidationSeverity severity, String localizedMessage) Creates a newIWorkflowValidationMessage
POJO with the given values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static IWorkflowValidationMessage
Creates a newIWorkflowValidationMessage
with the given message and the severity set toerror
.int
hashCode()
toString()
static IWorkflowValidationMessage
Creates a newIWorkflowValidationMessage
with the given message and the severity set towarning
.
-
Constructor Details
-
WorkflowValidationMessage
Creates a newIWorkflowValidationMessage
POJO with the given values.- Parameters:
severity
- The value that will be returned asIWorkflowValidationMessage.getSeverity()
.localizedMessage
- The value that will be returned asIWorkflowValidationMessage.getLocalizedMessage()
.
-
-
Method Details
-
equals
-
getLocalizedMessage
- Specified by:
getLocalizedMessage
in interfaceIWorkflowValidationMessage
- Returns:
- The localized message of the validation error or warning. This message should include a reference to the property or properties that have caused the warning or error.
-
getSeverity
- Specified by:
getSeverity
in interfaceIWorkflowValidationMessage
- Returns:
- The severity level of this validation message. Error are usually validation failures, while warnings are only informational.
-
hashCode
public int hashCode() -
toString
-
error
Creates a newIWorkflowValidationMessage
with the given message and the severity set toerror
.- Parameters:
localizedMessage
- The value that will be returned asIWorkflowValidationMessage.getLocalizedMessage()
.- Returns:
- A new error message with the given localized content.
-
warning
Creates a newIWorkflowValidationMessage
with the given message and the severity set towarning
.- Parameters:
localizedMessage
- The value that will be returned asIWorkflowValidationMessage.getLocalizedMessage()
.- Returns:
- A new warning message with the given localized content.
-