Class: Archimate::FileFormats::Sax::ModelExchangeFile::Relationship
- Inherits:
-
Handler
- Object
- Handler
- Archimate::FileFormats::Sax::ModelExchangeFile::Relationship
- Includes:
- CaptureDocumentation, CaptureProperties
- Defined in:
- lib/archimate/file_formats/sax/model_exchange_file/relationship.rb
Instance Attribute Summary
Attributes inherited from Handler
#attrs, #element_type, #name, #parent_handler
Instance Method Summary collapse
- #complete ⇒ Object
-
#initialize(name, attrs, parent_handler) ⇒ Relationship
constructor
A new instance of Relationship.
- #on_lang_string(name, _source) ⇒ Object
Methods included from CaptureProperties
Methods included from CaptureDocumentation
#documentation, #on_preserved_lang_string
Methods inherited from Handler
#characters, #diagram, #event, #method_missing, #process_text, #property_definitions, #respond_to_missing?
Constructor Details
#initialize(name, attrs, parent_handler) ⇒ Relationship
Returns a new instance of Relationship.
11 12 13 14 15 |
# File 'lib/archimate/file_formats/sax/model_exchange_file/relationship.rb', line 11 def initialize(name, attrs, parent_handler) super @rel_name = nil @relationship = nil end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Archimate::FileFormats::Sax::Handler
Instance Method Details
#complete ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/archimate/file_formats/sax/model_exchange_file/relationship.rb', line 17 def complete [ event(:on_relationship, relationship), event(:on_referenceable, relationship), event(:on_future, Sax::FutureReference.new(relationship, :source, attrs["source"])), event(:on_future, Sax::FutureReference.new(relationship, :target, attrs["target"])) ] end |
#on_lang_string(name, _source) ⇒ Object
26 27 28 29 |
# File 'lib/archimate/file_formats/sax/model_exchange_file/relationship.rb', line 26 def on_lang_string(name, _source) @rel_name = name false end |