Learn R Programming

geometa (version 0.6-2)

ISOParameter: ISOParameter

Description

ISOParameter

Usage

ISOParameter

Arguments

Value

Object of R6Class for modelling an ISOParameter

Format

R6Class object.

Fields

name

[character] name

direction

[ISOParameterDirection] direction

description

[character] description

optionality

[logical] parameter optionality

repeatability

[logical] parameter repeatability

valueType

[ISOTypeName|character] value type

Methods

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.

References

ISO 19119:2005 - Geographic information -- Services

Examples

Run this code
# 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