ISOParameter
ISOParameter
Object of R6Class
for modelling an ISOParameter
R6Class
object.
name
[character
] name
direction
[ISOParameterDirection
] direction
description
[character
] description
optionality
[logical
] parameter optionality
repeatability
[logical
] parameter repeatability
valueType
[ISOTypeName
|character
] value type
new(xml)
This method is used to instantiate an ISOParameter
setName(name, attributeType, locales)
Sets the parameter name (character
) and attributeType (ISOTypeName
or character
). Locale names can be specified as list
with the
locales
argument.
setDirection(direction)
Sets the direction, an object of class ISOParameterDirection
or any
character
value among ISOParameterDirection$values()
setDescription(description, locales)
Sets the parameter description. Locale names can be specified as
list
with the locales
argument.
setOptionality(optional)
Set whether the parameter is optional (TRUE
), FALSE
otherwise
setRepeatability(repeatable)
Set whether the parameter is repeatable (TRUE
), FALSE
otherwise
setValueType(valueType, locales)
Sets the type of parameter value, object of class ISOTypeName
or character
Locale names can be specified as list
with the locales
argument.
ISO 19119:2005 - Geographic information -- Services
# NOT RUN {
md <- ISOParameter$new()
md$setName("name", "attType")
md$setDirection("in")
md$setDescription("description")
md$setOptionality(FALSE)
md$setRepeatability(FALSE)
md$setValueType("CharacterString")
xml <- md$encode()
# }
Run the code above in your browser using DataLab