Sha256: 6332633af7db5333a1067ff3f7d190bde2ba864c75a70dd28c9c207345611212

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "definition"

module Ogc
  module Gml
    class DictionaryEntry < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :owns, :boolean # , default: -> { "false" }
      attribute :nil_reason, :string
      attribute :remote_schema, :string
      attribute :definition, Definition
      attribute :name, :string
      attribute :description, :string

      xml do
        root "dictionaryEntry"
        namespace "http://www.opengis.net/gml/3.2", "gml"

        map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_attribute "owns", to: :owns
        map_attribute "nilReason", to: :nil_reason
        map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "Definition", to: :definition, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "description", to: :description, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "name", to: :name, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ogc-gml-1.0.3 lib/ogc/gml/dictionary_entry.rb
ogc-gml-1.0.2 lib/ogc/gml/dictionary_entry.rb
ogc-gml-1.0.1 lib/ogc/gml/dictionary_entry.rb