public class ViolationMessageCreator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MSG |
static int |
PREFIX_MSG |
Constructor and Description |
---|
ViolationMessageCreator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createExistenceViolationMessage(java.lang.String element,
java.lang.String reference,
int line,
int textVersion,
java.lang.String additionalInfo)
Creates a description of a found ExistenceViolation based on the given parameters
|
static java.lang.String |
createTypeViolationMessage(java.lang.String element,
int line,
java.lang.String reference,
java.lang.String incorrectType,
java.lang.String expectedType)
Creates a description of a found Reference Type violation based on the given parameters
|
public static final int DEFAULT_MSG
public static final int PREFIX_MSG
public static java.lang.String createExistenceViolationMessage(java.lang.String element, java.lang.String reference, int line, int textVersion, java.lang.String additionalInfo)
element
- the name of the BPMN element, where the violation occurredreference
- the name of the reference, where the violation occurredline
- the line of the file, where the violation occurredtextVersion
- the version of the violation message text (use constants:
DEFAULT, PREFIX)additionalInfo
- use for additional information for special violation message
text versions. For the DEFAULT version it is null, for the
PREFIX it is the prefix of the namespace.public static java.lang.String createTypeViolationMessage(java.lang.String element, int line, java.lang.String reference, java.lang.String incorrectType, java.lang.String expectedType)
element
- the name of the BPMN element, where the violation occurredline
- the line of the file, where the violation occurredreference
- the name of the reference, where the violation occurredincorrectType
- the incorrect type, which caused the violationexpectedType
- the types expected instead of the incorrect type