tracking-code-which-will-go-to-the-HEAD DefaultParser

Class

DefaultParser

DefaultParser(pluginData)

Class used for parsing data to Component.
Constructor

# new DefaultParser(pluginData)

Default constructor.
Parameters:
Name Type Description
pluginData DefaultData Plugin data storage.

View Source parser/DefaultParser.js, line 6

Members

DefaultData

# pluginData

Plugin data storage.

View Source parser/DefaultParser.js, line 16

Methods

# getModels(filesopt) → {Array.<string>}

Get the list of model paths from all parsable files.
Parameters:
Name Type Attributes Description
files Array.<FileInformation> <optional>
List of parsable files.

View Source parser/DefaultParser.js, line 35

List of folder and file paths that represent a model.
Array.<string>

# isParsable(fileInformation) → {boolean}

Indicate if this parser can parse this file.
Parameters:
Name Type Description
fileInformation FileInformation File information.

View Source parser/DefaultParser.js, line 118

- Boolean that indicates if this file can be parsed or not.
boolean

# parse(diagram, inputsopt, parentEventIdopt)

Convert the content of files into Components.
Parameters:
Name Type Attributes Default Description
diagram FileInformation Diagram file information.
inputs Array.<FileInput> <optional>
Data you want to parse.
parentEventId string <optional>
null Parent event id.

View Source parser/DefaultParser.js, line 25

# parseConfiguration(diagram, file, parentEventIdopt)

Set configuration into Components.
Parameters:
Name Type Attributes Default Description
diagram FileInformation Diagram file information.
file FileInput Configuration file of components.
parentEventId string <optional>
null Parent event id.

View Source parser/DefaultParser.js, line 45