Learn R Programming

geometa (version 0.6-2)

ISOCodeListValue: ISOCodeListValue

Description

ISOCodeListValue

Usage

ISOCodeListValue

Arguments

Value

Object of R6Class for modelling an ISO Metadata codelist element

Format

R6Class object.

Fields

codelistId

[character] codelist identifier

attrs

[list] list of codelist attributes

value

[character] codelist value

valueDescription

[character] codelist value description

Methods

new(xml, id, value, description, addCodeListAttrs, addCodeSpaceAttr, setValue)

This method is 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.

getAcceptedValues()

This method allows to get the codelist accepted values

References

ISO 19115:2003 - Geographic information -- Metadata