# frozen_string_literal: true module Niso module Jats class InlineMedia < Lutaml::Model::Serializable attribute :content, :string attribute :content_type, :string attribute :hreflang, :string attribute :id, :string attribute :mime_subtype, :string attribute :mimetype, :string attribute :specific_use, :string attribute :vocab, :string attribute :vocab_identifier, :string attribute :vocab_term, :string attribute :vocab_term_identifier, :string attribute :lang, :string attribute :alt_text, AltText, collection: true attribute :long_desc, LongDesc, collection: true attribute :email, Email, collection: true attribute :ext_link, ExtLink, collection: true attribute :uri, Uri, collection: true attribute :bold, Bold, collection: true attribute :fixed_case, FixedCase, collection: true attribute :italic, Italic, collection: true attribute :monospace, Monospace, collection: true attribute :overline, Overline, collection: true attribute :roman, Roman, collection: true attribute :sans_serif, SansSerif, collection: true attribute :sc, Sc, collection: true attribute :strike, Strike, collection: true attribute :underline, Underline, collection: true attribute :ruby, Ruby, collection: true attribute :named_content, NamedContent, collection: true attribute :styled_content, StyledContent, collection: true attribute :sub, Sub, collection: true attribute :sup, Sup, collection: true xml do root "inline-media" map_content to: :content map_attribute "content-type", to: :content_type map_attribute "hreflang", to: :hreflang map_attribute "id", to: :id map_attribute "mime-subtype", to: :mime_subtype map_attribute "mimetype", to: :mimetype map_attribute "specific-use", to: :specific_use map_attribute "vocab", to: :vocab map_attribute "vocab-identifier", to: :vocab_identifier map_attribute "vocab-term", to: :vocab_term map_attribute "vocab-term-identifier", to: :vocab_term_identifier map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml" map_element "alt-text", to: :alt_text map_element "long-desc", to: :long_desc map_element "email", to: :email map_element "ext-link", to: :ext_link map_element "uri", to: :uri map_element "bold", to: :bold map_element "fixed-case", to: :fixed_case map_element "italic", to: :italic map_element "monospace", to: :monospace map_element "overline", to: :overline map_element "roman", to: :roman map_element "sans-serif", to: :sans_serif map_element "sc", to: :sc map_element "strike", to: :strike map_element "underline", to: :underline map_element "ruby", to: :ruby map_element "named-content", to: :named_content map_element "styled-content", to: :styled_content map_element "sub", to: :sub map_element "sup", to: :sup end end end end