org.camunda.bpm.engine.impl.bpmn.parser
Class BpmnParser

java.lang.Object
  extended by org.camunda.bpm.engine.impl.util.xml.Parser
      extended by org.camunda.bpm.engine.impl.bpmn.parser.BpmnParser

public class BpmnParser
extends Parser

Parser for BPMN 2.0 process models. There is only one instance of this parser in the process engine. This Parser creates BpmnParse instances that can be used to actually parse the BPMN 2.0 XML process definitions.

Author:
Tom Baeyens, Joram Barrez

Field Summary
static String ACTIVITI_BPMN_EXTENSIONS_NS
          Deprecated. use CAMUNDA_BPMN_EXTENSIONS_NS
static String BPMN_20_SCHEMA_LOCATION
          The location of the BPMN 2.0 XML schema.
static String BPMN_DC_NS
          The namespace of the BPMN 2.0 diagram common elements.
static String BPMN_DI_NS
          The namepace of the BPMN 2.0 diagram interchange elements.
static String BPMN20_NS
          The BPMN 2.0 namespace
protected  BpmnParseFactory bpmnParseFactory
           
static String CAMUNDA_BPMN_EXTENSIONS_NS
          The namespace of the camunda custom BPMN extensions.
protected  ExpressionManager expressionManager
           
static String OMG_DI_NS
          The namespace of the generic OMG DI elements (don't ask me why they didnt use the BPMN_DI_NS ...)
protected  List<BpmnParseListener> parseListeners
           
static String XSI_NS
          The Schema-Instance namespace.
 
Fields inherited from class org.camunda.bpm.engine.impl.util.xml.Parser
defaultSaxParserFactory, INSTANCE
 
Constructor Summary
BpmnParser(ExpressionManager expressionManager, BpmnParseFactory bpmnParseFactory)
           
 
Method Summary
 BpmnParse createParse()
          Creates a new BpmnParse instance that can be used to parse only one BPMN 2.0 process definition.
 ExpressionManager getExpressionManager()
           
 List<BpmnParseListener> getParseListeners()
           
 void setExpressionManager(ExpressionManager expressionManager)
           
 void setParseListeners(List<BpmnParseListener> parseListeners)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.util.xml.Parser
getSaxParser, getSaxParserFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BPMN20_NS

public static final String BPMN20_NS
The BPMN 2.0 namespace

See Also:
Constant Field Values

BPMN_20_SCHEMA_LOCATION

public static final String BPMN_20_SCHEMA_LOCATION
The location of the BPMN 2.0 XML schema.

See Also:
Constant Field Values

CAMUNDA_BPMN_EXTENSIONS_NS

public static final String CAMUNDA_BPMN_EXTENSIONS_NS
The namespace of the camunda custom BPMN extensions.

See Also:
Constant Field Values

ACTIVITI_BPMN_EXTENSIONS_NS

@Deprecated
public static final String ACTIVITI_BPMN_EXTENSIONS_NS
Deprecated. use CAMUNDA_BPMN_EXTENSIONS_NS
The namespace of the Activiti custom BPMN extensions.

See Also:
Constant Field Values

BPMN_DI_NS

public static final String BPMN_DI_NS
The namepace of the BPMN 2.0 diagram interchange elements.

See Also:
Constant Field Values

BPMN_DC_NS

public static final String BPMN_DC_NS
The namespace of the BPMN 2.0 diagram common elements.

See Also:
Constant Field Values

OMG_DI_NS

public static final String OMG_DI_NS
The namespace of the generic OMG DI elements (don't ask me why they didnt use the BPMN_DI_NS ...)

See Also:
Constant Field Values

XSI_NS

public static final String XSI_NS
The Schema-Instance namespace.

See Also:
Constant Field Values

expressionManager

protected ExpressionManager expressionManager

parseListeners

protected List<BpmnParseListener> parseListeners

bpmnParseFactory

protected BpmnParseFactory bpmnParseFactory
Constructor Detail

BpmnParser

public BpmnParser(ExpressionManager expressionManager,
                  BpmnParseFactory bpmnParseFactory)
Method Detail

createParse

public BpmnParse createParse()
Creates a new BpmnParse instance that can be used to parse only one BPMN 2.0 process definition.

Overrides:
createParse in class Parser

getExpressionManager

public ExpressionManager getExpressionManager()

setExpressionManager

public void setExpressionManager(ExpressionManager expressionManager)

getParseListeners

public List<BpmnParseListener> getParseListeners()

setParseListeners

public void setParseListeners(List<BpmnParseListener> parseListeners)


Copyright © 2017 camunda services GmbH. All rights reserved.