Class RootParser
java.lang.Object
org.tweetyproject.commons.Parser
org.tweetyproject.logics.bpm.parser.xml_to_bpmn.RootParser
Instances of this class serve as the root of a parsing process for a BPMN XML file.
- Author:
 - Benedikt
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetNormalizedTagName(Node node)parseBeliefBase(Reader reader)Parses the given reader into a belief base of the given type.Parse the XML file to an instance of the BpmnModel classparseFormula(Reader reader)Parses the given reader into a formula of the given type.voidputBufferedEdge(BufferedBpmnEdge edge)voidMethods inherited from class org.tweetyproject.commons.Parser
isNumeric, parseBeliefBase, parseBeliefBaseFromFile, parseFormula, parseFormulaFromFile, parseListOfBeliefBases, parseListOfBeliefBases, parseListOfBeliefBasesFromFile, parseListOfBeliefBasesFromFile 
- 
Constructor Details
- 
RootParser
public RootParser()Create a new instance 
 - 
 - 
Method Details
- 
getNormalizedTagName
- Parameters:
 node- the node to retrieve the name for- Returns:
 - the node name free of possible namespace prefixes
 
 - 
getBpmnModel
- Returns:
 - the parsed BpmnModel
 
 - 
putNode
- Parameters:
 node- a parsed node
 - 
putBufferedEdge
- Parameters:
 edge- a prepared buffered edge
 - 
parseFile
public BeliefBase parseFile(File xmlFile) throws SAXException, IOException, ParserConfigurationExceptionParse the XML file to an instance of the BpmnModel class- Parameters:
 xmlFile- the XML file to parse to a BPMN model- Returns:
 - the parsed belief base
 - Throws:
 ParserConfigurationException- if some error occursSAXException- if some error occursIOException- if some error occurs
 - 
parseBeliefBase
Description copied from class:ParserParses the given reader into a belief base of the given type.- Specified by:
 parseBeliefBasein classParser- Parameters:
 reader- a reader- Returns:
 - a belief base
 - Throws:
 IOException- if some IO issue occurred.ParserException- some parsing exceptions may be added here.
 - 
parseFormula
Description copied from class:ParserParses the given reader into a formula of the given type.- Specified by:
 parseFormulain classParser- Parameters:
 reader- a reader- Returns:
 - a formula
 - Throws:
 IOException- if some IO issue occurred.ParserException- some parsing exceptions may be added here.
 
 -