Class: Ea::Transformations::Parsers::QeaParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- Ea::Transformations::Parsers::QeaParser
- 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
-
#database_stats ⇒ Hash
readonly
Database statistics.
-
#qea_database ⇒ Ea::Qea::Database
readonly
Loaded QEA database.
Attributes inherited from BaseParser
#configuration, #last_duration, #options
Instance Method Summary collapse
- #content_patterns ⇒ Object
-
#format_name ⇒ String
Get parser format name.
- #priority ⇒ Object
-
#supported_extensions ⇒ Array<String>
Get list of supported file extensions.
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_stats ⇒ Hash (readonly)
Returns Database statistics.
17 18 19 |
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 17 def database_stats @database_stats end |
#qea_database ⇒ Ea::Qea::Database (readonly)
Returns Loaded QEA database.
14 15 16 |
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 14 def qea_database @qea_database end |
Instance Method Details
#content_patterns ⇒ Object
33 34 35 |
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 33 def content_patterns [/^SQLite format/] end |
#format_name ⇒ String
Get parser format name
22 23 24 |
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 22 def format_name "Enterprise Architect Database (QEA)" end |
#priority ⇒ Object
37 38 39 |
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 37 def priority 90 end |
#supported_extensions ⇒ Array<String>
Get list of supported file extensions
29 30 31 |
# File 'lib/ea/transformations/parsers/qea_parser.rb', line 29 def supported_extensions [".qea", ".eap", ".eapx"] end |