Skip to content

Commit

Permalink
Fix missing labels in SparxConnecotr
Browse files Browse the repository at this point in the history
  • Loading branch information
kwkwan committed Jul 19, 2024
1 parent 0f0d103 commit 414bb20
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion lib/xmi/sparx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,26 @@ class SparxConnectorAppearance < Shale::Mapper
end
end

class SparxConnectorLabels < Shale::Mapper
attribute :rb, Shale::Type::String
attribute :lb, Shale::Type::String
attribute :mb, Shale::Type::String
attribute :rt, Shale::Type::String
attribute :lt, Shale::Type::String
attribute :mt, Shale::Type::String

xml do
root "labels"

map_attribute :rb, to: :rb
map_attribute :lb, to: :lb
map_attribute :mb, to: :mb
map_attribute :rt, to: :rt
map_attribute :lt, to: :lt
map_attribute :mt, to: :mt
end
end

class SparxConnector < Shale::Mapper
attribute :idref, Shale::Type::String
attribute :source, SparxConnectorSource
Expand All @@ -630,7 +650,7 @@ class SparxConnector < Shale::Mapper
attribute :properties, SparxConnectorProperties
attribute :documentation, Shale::Type::String
attribute :appearance, SparxConnectorAppearance
attribute :labels, Shale::Type::String
attribute :labels, SparxConnectorLabels
attribute :extended_properties, SparxElementExtendedProperties
attribute :style, SparxElementStyle
attribute :tags, SparxElementTags
Expand Down

0 comments on commit 414bb20

Please sign in to comment.