Class: Lutaml::ModelTransformations::Parsers::QeaParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/lutaml/model_transformations/parsers/qea_parser.rb

Overview

QEA Parser implements the BaseParser interface for Enterprise Architect database files.

This parser wraps the existing Lutaml::Qea functionality and adapts it to the new unified transformation architecture. It provides enhanced error handling, progress tracking, and configuration integration.

Instance Attribute Summary collapse

Attributes inherited from BaseParser

#configuration, #options

Instance Method Summary collapse

Methods inherited from BaseParser

#can_parse?, #errors, #has_errors?, #has_warnings?, #initialize, #parse, #statistics, #warnings

Constructor Details

This class inherits a constructor from Lutaml::ModelTransformations::Parsers::BaseParser

Instance Attribute Details

#database_statsHash (readonly)

Returns Database statistics.

Returns:

  • (Hash)

    Database statistics



20
21
22
# File 'lib/lutaml/model_transformations/parsers/qea_parser.rb', line 20

def database_stats
  @database_stats
end

#qea_databaseLutaml::Qea::Database (readonly)

Returns Loaded QEA database.

Returns:



17
18
19
# File 'lib/lutaml/model_transformations/parsers/qea_parser.rb', line 17

def qea_database
  @qea_database
end

Instance Method Details

#content_patternsObject



36
37
38
# File 'lib/lutaml/model_transformations/parsers/qea_parser.rb', line 36

def content_patterns
  [/^SQLite format/]
end

#format_nameString

Get parser format name

Returns:

  • (String)

    Human-readable format name



25
26
27
# File 'lib/lutaml/model_transformations/parsers/qea_parser.rb', line 25

def format_name
  "Enterprise Architect Database (QEA)"
end

#priorityObject



40
41
42
# File 'lib/lutaml/model_transformations/parsers/qea_parser.rb', line 40

def priority
  90
end

#supported_extensionsArray<String>

Get list of supported file extensions

Returns:

  • (Array<String>)

    List of extensions



32
33
34
# File 'lib/lutaml/model_transformations/parsers/qea_parser.rb', line 32

def supported_extensions
  [".qea", ".eap", ".eapx"]
end