Class ModelValidationResultImpl
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.validation.ModelValidationResultImpl
-
- All Implemented Interfaces:
ValidationResult
public class ModelValidationResultImpl extends java.lang.Object implements ValidationResult
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected int
code
protected ModelElementInstance
element
protected java.lang.String
message
protected ValidationResultType
type
-
Constructor Summary
Constructors Constructor Description ModelValidationResultImpl(ModelElementInstance element, ValidationResultType type, int code, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
ModelElementInstance
getElement()
java.lang.String
getMessage()
ValidationResultType
getType()
-
-
-
Field Detail
-
code
protected int code
-
type
protected ValidationResultType type
-
element
protected ModelElementInstance element
-
message
protected java.lang.String message
-
-
Constructor Detail
-
ModelValidationResultImpl
public ModelValidationResultImpl(ModelElementInstance element, ValidationResultType type, int code, java.lang.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 java.lang.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
-
-