public class BPMN2SyntaxChecker extends Object implements SyntaxChecker
Modifier and Type | Class and Description |
---|---|
class |
BPMN2SyntaxChecker.ValidationSyntaxError |
Modifier and Type | Field and Description |
---|---|
static String |
BPMN2_TYPE |
protected Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>> |
errors |
static String |
PROCESS_TYPE |
static String |
SIMULATION_TYPE |
Constructor and Description |
---|
BPMN2SyntaxChecker(String json,
String preprocessingData,
IDiagramProfile profile) |
Modifier and Type | Method and Description |
---|---|
void |
checkSyntax() |
void |
clearErrors() |
boolean |
errorsFound() |
Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>> |
getErrors() |
org.json.JSONObject |
getErrorsAsJson() |
boolean |
isCompensatingFlowNodeInProcess(org.eclipse.bpmn2.FlowNode node,
org.eclipse.bpmn2.Process process) |
boolean |
isCompensatingFlowNodeInSubprocess(org.eclipse.bpmn2.FlowNode node,
org.eclipse.bpmn2.SubProcess subProcess) |
public static final String BPMN2_TYPE
public static final String SIMULATION_TYPE
public static final String PROCESS_TYPE
protected Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>> errors
public BPMN2SyntaxChecker(String json, String preprocessingData, IDiagramProfile profile)
public void checkSyntax()
checkSyntax
in interface SyntaxChecker
public Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>> getErrors()
getErrors
in interface SyntaxChecker
public org.json.JSONObject getErrorsAsJson()
getErrorsAsJson
in interface SyntaxChecker
public boolean errorsFound()
errorsFound
in interface SyntaxChecker
public void clearErrors()
clearErrors
in interface SyntaxChecker
public boolean isCompensatingFlowNodeInSubprocess(org.eclipse.bpmn2.FlowNode node, org.eclipse.bpmn2.SubProcess subProcess)
public boolean isCompensatingFlowNodeInProcess(org.eclipse.bpmn2.FlowNode node, org.eclipse.bpmn2.Process process)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.