ISOCodeListValue function

ISOCodeListValue

ISOCodeListValue

ISOCodeListValue

ISOCodeListValue class

Format

R6Class object.

Returns

Object of R6Class for modelling an ISO Metadata codelist item

Note

Abstract ISO codelist class used internally by geometa

References

ISO 19115:2003 - Geographic information -- Metadata

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOCodeListValue

Public fields

  • codelistId: codelist ID

  • attrs: attrs

  • value: value

  • valueDescription: value description

Methods

Public methods

Method new()

Method used to instantiate an ISOCodeListValue . By default, addCodeListAttrs = TRUE, to add codelist atributes to root XML. The parameter addCodeSpaceAttr = TRUE by default, and ignored if the valueof addCodeLisAttrs is set to FALSE. The argument setValue

sets the value as node text (defaut is TRUE). The argument setValueDescription

allows to force having description set as value, default is FALSE in which case the name will be preferred, and in case no name is provided, code value will be used.

Usage

ISOCodeListValue$new(
  xml = NULL,
  id,
  value = NULL,
  description = NULL,
  addCodeListAttrs = TRUE,
  addCodeSpaceAttr = TRUE,
  setValue = TRUE,
  setValueDescription = FALSE
)

Arguments

  • xml: object of class XMLInternalNode-class

  • id: id

  • value: value

  • description: description

  • addCodeListAttrs: add codelist attributes?

  • addCodeSpaceAttr: add codespace attribute?

  • setValue: set value?

  • setValueDescription: set value description?

Method getAcceptedValues()

Get accepted values

Usage

ISOCodeListValue$getAcceptedValues()

Returns

a vector of class character

Method clone()

The objects of this class are cloneable with this method.

Usage

ISOCodeListValue$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.

  • Maintainer: Emmanuel Blondel
  • License: MIT + file LICENSE
  • Last published: 2025-01-29