Class ModelValidationResultImpl
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.validation.ModelValidationResultImpl
-
- All Implemented Interfaces:
ValidationResult
public class ModelValidationResultImpl extends Object implements ValidationResult
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected int
code
protected ModelElementInstance
element
protected String
message
protected ValidationResultType
type
-
Constructor Summary
Constructors Constructor Description ModelValidationResultImpl(ModelElementInstance element, ValidationResultType type, int code, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
ModelElementInstance
getElement()
String
getMessage()
ValidationResultType
getType()
-
-
-
Field Detail
-
code
protected int code
-
type
protected ValidationResultType type
-
element
protected ModelElementInstance element
-
message
protected String message
-
-
Constructor Detail
-
ModelValidationResultImpl
public ModelValidationResultImpl(ModelElementInstance element, ValidationResultType type, int code, String message)
-
-
Method Detail
-
getType
public ValidationResultType getType()
- Specified by:
getType
in interfaceValidationResult
- Returns:
- The type of the result.
-
getElement
public ModelElementInstance getElement()
- Specified by:
getElement
in interfaceValidationResult
- Returns:
- the element
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceValidationResult
- Returns:
- A human consumable detail message about the validation
-
getCode
public int getCode()
- Specified by:
getCode
in interfaceValidationResult
- Returns:
- A reference code for this validation result
-
-