Class: Ea::Transformations::Parsers::QeaParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/ea/transformations/parsers/qea_parser.rb

Overview

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

This parser wraps the existing Ea::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, #last_duration, #options

Instance Method Summary collapse

Methods inherited from BaseParser

#add_error, #add_info, #add_warning, #assign_if_supported, #can_parse?, #clear_errors_and_warnings, #errors, #execute_parse, #format_file_size, #format_statistics, #has_errors?, #has_warnings?, #initialize, #parse, #record_parse_stats, #reset_statistics, #should_fail_fast?, #should_log_errors?, #should_validate_input?, #should_validate_output?, #statistics, #validate_file!, #validate_output!, #warnings

Constructor Details

This class inherits a constructor from Ea::Transformations::Parsers::BaseParser

Instance Attribute Details

#database_statsHash (readonly)

Returns Database statistics.

Returns:

  • (Hash)

    Database statistics



17
18
19
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 17

def database_stats
  @database_stats
end

#qea_databaseEa::Qea::Database (readonly)

Returns Loaded QEA database.

Returns:



14
15
16
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 14

def qea_database
  @qea_database
end

Instance Method Details

#content_patternsObject



33
34
35
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 33

def content_patterns
  [/^SQLite format/]
end

#format_nameString

Get parser format name

Returns:

  • (String)

    Human-readable format name



22
23
24
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 22

def format_name
  "Enterprise Architect Database (QEA)"
end

#priorityObject



37
38
39
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 37

def priority
  90
end

#supported_extensionsArray<String>

Get list of supported file extensions

Returns:

  • (Array<String>)

    List of extensions



29
30
31
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 29

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