Sha256: 798c7bbd71352ce88d2888473e3f389f4d12f882d71745b40c393557ebb89b95

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "dms_angle"
require_relative "measure_list"
require_relative "measure"
require_relative "operation_parameter_property"

module Ogc
  module Gml
    class ParameterValue < Lutaml::Model::Serializable
      attribute :value, Measure
      attribute :dms_angle_value, DMSAngle
      attribute :string_value, :string
      attribute :integer_value, :integer
      attribute :boolean_value, :boolean
      attribute :value_list, MeasureList
      attribute :integer_value_list, :string
      attribute :value_file, :string
      attribute :operation_parameter, OperationParameterProperty

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

        map_element "value", to: :value
        map_element "dmsAngleValue", to: :dms_angle_value
        map_element "stringValue", to: :string_value
        map_element "integerValue", to: :integer_value
        map_element "booleanValue", to: :boolean_value
        map_element "valueList", to: :value_list
        map_element "integerValueList", to: :integer_value_list
        map_element "valueFile", to: :value_file
        map_element "operationParameter", to: :operation_parameter
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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