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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the parsed BpmnModelgetNormalizedTagName
(Node node) Return the node name free of possible namespace prefixesparseBeliefBase
(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.void
Buffer Edgevoid
Put nodeMethods 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
-
getBpmnModel
-
putNode
-
putBufferedEdge
Buffer Edge- Parameters:
edge
- a prepared buffered edge
-
parseFile
public BeliefBase parseFile(File xmlFile) throws SAXException, IOException, ParserConfigurationException Parse 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:Parser
Parses the given reader into a belief base of the given type.- Specified by:
parseBeliefBase
in 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:Parser
Parses the given reader into a formula of the given type.- Specified by:
parseFormula
in classParser
- Parameters:
reader
- a reader- Returns:
- a formula
- Throws:
IOException
- if some IO issue occurred.ParserException
- some parsing exceptions may be added here.
-