ISOSRVParameter

ISOSRVParameter

Format

R6Class object.

Value

Object of R6Class for modelling an ISOSRVParameter

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOSRVParameter

Public fields

name

name [1..1]: character

direction

direction [0..1]: ISOParameterDirection

description

description [0..1]: character

optionality

optionality [1..1]: character

repeatability

repeatability [1..1]: logical

valueType

valueType [1..1]: ISOTypeName (=> ISO 19139)

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOSRVParameter$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setName()

Set name

Usage

ISOSRVParameter$setName(name, attributeType, locales = NULL)

Arguments

name

name

attributeType

attribute type

locales

list of localized texts. Default is NULL


Method setDirection()

Set direction

Usage

ISOSRVParameter$setDirection(direction)

Arguments

direction

object of class ISOParameterDirection or character among values returned by ISOParameterDirection$values()


Method setDescription()

Set description

Usage

ISOSRVParameter$setDescription(description, locales = NULL)

Arguments

description

description

locales

list of localized texts. Default is NULL


Method setOptionality()

Set optionality

Usage

ISOSRVParameter$setOptionality(optional)

Arguments

optional

object of class logical


Method setRepeatability()

Set repeatability

Usage

ISOSRVParameter$setRepeatability(repeatable)

Arguments

repeatable

object of class logical


Method setValueType()

Set value type

Usage

ISOSRVParameter$setValueType(valueType, locales = NULL)

Arguments

valueType

object of class ISOTypeName or character

locales

list of localized texts. Default is NULL


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOSRVParameter$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  md <- ISOSRVParameter$new()
  md$setName("name", "attType")
  md$setDirection("in")
#> Error in super$initialize(xml = xml, id = private$xmlElement, value = value,     description = description, addCodeListAttrs = FALSE, setValue = FALSE): No ISO codelist for identifier 'LE_ParameterDirection'
  md$setDescription("description")
  md$setOptionality(FALSE)
  md$setRepeatability(FALSE)
  md$setValueType("CharacterString")  
  xml <- md$encode()
#> [geometa][WARN] Element '{http://www.isotc211.org/2005/srv}SV_Parameter': No matching global declaration available for the validation root at line 1. 
#> [geometa][WARN] Object 'ISOSRVParameter' is INVALID according to ISO 19139 XML schemas!