Constructor
# new DefaultParser(pluginData)
Default constructor.
Parameters:
Name | Type | Description |
---|---|---|
pluginData |
DefaultData
|
Plugin data storage. |
Members
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. |
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. |
- 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. |
# 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. |