org.camunda.bpm.model.xml.impl.validation
Class ModelValidationResultImpl

java.lang.Object
  extended by org.camunda.bpm.model.xml.impl.validation.ModelValidationResultImpl
All Implemented Interfaces:
ValidationResult

public class ModelValidationResultImpl
extends Object
implements ValidationResult

Author:
Daniel Meyer

Field Summary
protected  int code
           
protected  ModelElementInstance element
           
protected  String message
           
protected  ValidationResultType type
           
 
Constructor Summary
ModelValidationResultImpl(ModelElementInstance element, ValidationResultType type, int code, String message)
           
 
Method Summary
 int getCode()
           
 ModelElementInstance getElement()
           
 String getMessage()
           
 ValidationResultType getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ValidationResult
Returns:
The type of the result.

getElement

public ModelElementInstance getElement()
Specified by:
getElement in interface ValidationResult
Returns:
the element

getMessage

public String getMessage()
Specified by:
getMessage in interface ValidationResult
Returns:
A human consumable detail message about the validation

getCode

public int getCode()
Specified by:
getCode in interface ValidationResult
Returns:
A reference code for this validation result


Copyright © 2016 camunda services GmbH. All rights reserved.