# frozen_string_literal: true module Niso module Jats class PrincipalAwardRecipient < Lutaml::Model::Serializable attribute :content, :string attribute :id, :string attribute :specific_use, :string attribute :lang, :string attribute :contrib_id, ContribId, collection: true attribute :name, Name, collection: true attribute :name_alternatives, NameAlternatives, collection: true attribute :institution, Institution, collection: true attribute :institution_wrap, InstitutionWrap, collection: true attribute :string_name, StringName, collection: true xml do root "principal-award-recipient" map_content to: :content map_attribute "id", to: :id map_attribute "specific-use", to: :specific_use map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml" map_element "contrib-id", to: :contrib_id map_element "name", to: :name map_element "name-alternatives", to: :name_alternatives map_element "institution", to: :institution map_element "institution-wrap", to: :institution_wrap map_element "string-name", to: :string_name end end end end