Sha256: f2eba7e2b3654001c736a4d4f175964bdfbb5ba0936aeef1e254ff3ac8b97dc7

Contents?: true

Size: 924 Bytes

Versions: 3

Compression:

Stored size: 924 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "abstract_geometry"
require_relative "abstract_time_object"

module Ogc
  module Gml
    class ValueArrayProperty < Lutaml::Model::Serializable
      attribute :owns, :boolean, default: -> { false }
      attribute :abstract_value, :string, collection: true
      attribute :abstract_geometry, AbstractGeometry, collection: true
      attribute :abstract_time_object, AbstractTimeObject, collection: true
      attribute :null, :string, collection: true

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

        map_attribute "owns", to: :owns
        map_element "AbstractValue", to: :abstract_value
        map_element "AbstractGeometry", to: :abstract_geometry
        map_element "AbstractTimeObject", to: :abstract_time_object
        map_element "Null", to: :null
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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