Module: Lutaml::XMI::Parsers::XMIBase
- Included in:
- AssociationDrop, AttributeDrop, CardinalityDrop, ConnectorDrop, ConstraintDrop, DataTypeDrop, DiagramDrop, EnumDrop, EnumOwnedLiteralDrop, GeneralizationAttributeDrop, GeneralizationDrop, KlassDrop, OperationDrop, Lutaml::XMI::PackageDrop, XML, SourceTargetDrop
- Defined in:
- lib/lutaml/xmi/parsers/xmi_base.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/lutaml/xmi/parsers/xmi_base.rb', line 13 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#set_xmi_model(xmi_model, id_name_mapping = nil) ⇒ Hash
30 31 32 33 34 35 36 37 |
# File 'lib/lutaml/xmi/parsers/xmi_base.rb', line 30 def set_xmi_model(xmi_model, id_name_mapping = nil) @id_name_mapping ||= id_name_mapping || {} @xmi_root_model ||= xmi_model if @id_name_mapping.empty? map_id_name(@id_name_mapping, @xmi_root_model) end end |