Class BpmnModelParser


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

      Constructors 
      Constructor Description
      BpmnModelParser​(RootParser rootParser)
      Creates a new parser for the given BPMN model
    • Method Summary

      Modifier and Type Method Description
      BpmnModel get()
      retrieve the parsed instance of the BpmnModel class
      void parse​(org.w3c.dom.Node rootNode)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BpmnModelParser

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

      • parse

        public void parse​(org.w3c.dom.Node rootNode)
                   throws java.lang.IllegalArgumentException
        Parameters:
        rootNode - the root of the XML tree representing the BPMN model
        Throws:
        java.lang.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