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 newIWorkflowValidationMessagePOJO with the given values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic IWorkflowValidationMessageCreates a newIWorkflowValidationMessagewith the given message and the severity set toerror.inthashCode()toString()static IWorkflowValidationMessageCreates a newIWorkflowValidationMessagewith the given message and the severity set towarning.
-
Constructor Details
-
WorkflowValidationMessage
Creates a newIWorkflowValidationMessagePOJO 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:
getLocalizedMessagein 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:
getSeverityin 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 newIWorkflowValidationMessagewith 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 newIWorkflowValidationMessagewith 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.
-