Package de.xima.fc.workflow
Class WorkflowValidationMessage
- java.lang.Object
 - 
- de.xima.fc.workflow.WorkflowValidationMessage
 
 
- 
- All Implemented Interfaces:
 IWorkflowValidationMessage,Serializable
public class WorkflowValidationMessage extends Object implements IWorkflowValidationMessage
POJO implementation of aIWorkflowValidationMessage.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description WorkflowValidationMessage(EValidationSeverity severity, String localizedMessage)Creates a newIWorkflowValidationMessagePOJO with the given values. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static IWorkflowValidationMessageerror(String localizedMessage)Creates a newIWorkflowValidationMessagewith the given message and the severity set toerror.StringgetLocalizedMessage()EValidationSeveritygetSeverity()inthashCode()StringtoString()static IWorkflowValidationMessagewarning(String localizedMessage)Creates a newIWorkflowValidationMessagewith the given message and the severity set towarning. 
 - 
 
- 
- 
Constructor Detail
- 
WorkflowValidationMessage
public WorkflowValidationMessage(EValidationSeverity severity, String localizedMessage)
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 Detail
- 
getLocalizedMessage
public String 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
public EValidationSeverity getSeverity()
- Specified by:
 getSeverityin interfaceIWorkflowValidationMessage- Returns:
 - The severity level of this validation message. Error are usually validation failures, while warnings are only informational.
 
 
- 
error
public static IWorkflowValidationMessage error(String localizedMessage)
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
public static IWorkflowValidationMessage warning(String localizedMessage)
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.
 
 
 - 
 
 -