Class BpmnModelParser

java.lang.Object
org.tweetyproject.logics.bpm.parser.xml_to_bpmn.BpmnModelParser

public class BpmnModelParser extends Object
Parse a BPMN Model from the 'definitions' node of a XML representation
Author:
Benedikt Knopp
  • Constructor Details

    • BpmnModelParser

      public BpmnModelParser(RootParser rootParser)
      Creates a new parser for the given BPMN model
      Parameters:
      rootParser - the root parser of the BPMN model
  • Method Details

    • parse

      public void parse(Node rootNode) throws IllegalArgumentException
      Parameters:
      rootNode - the root of the XML tree representing the BPMN model
      Throws:
      IllegalArgumentException - if the name of the root node is not 'definitions'
    • get

      public BpmnModel get()
      retrieve the parsed instance of the BpmnModel class
      Returns:
      the parsed BPMN Model