ISOCodeListValue
ISOCodeListValue
ISOCodeListValue class
R6Class
object.
Object of R6Class
for modelling an ISO Metadata codelist item
Abstract ISO codelist class used internally by geometa
ISO 19115:2003 - Geographic information -- Metadata
Emmanuel Blondel emmanuel.blondel1@gmail.com
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> ISOCodeListValue
codelistId
: codelist ID
attrs
: attrs
value
: value
valueDescription
: value description
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.
ISOCodeListValue$new(
xml = NULL,
id,
value = NULL,
description = NULL,
addCodeListAttrs = TRUE,
addCodeSpaceAttr = TRUE,
setValue = TRUE,
setValueDescription = FALSE
)
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?
getAcceptedValues()
Get accepted values
ISOCodeListValue$getAcceptedValues()
a vector of class character
clone()
The objects of this class are cloneable with this method.
ISOCodeListValue$clone(deep = FALSE)
deep
: Whether to make a deep clone.