ISOLocale function

ISOLocale

ISOLocale

ISOLocale

ISOLocale class

Format

R6Class object.

Returns

Object of R6Class for modelling an ISO Locale

Examples

loc <- ISOLocale$new() loc$setId("eng") loc$setLanguage("eng") loc$setCountry("UK") loc$setCharacterSet("utf8")

References

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOLocale

Public fields

  • languageCode: languageCode [1..1]: ISOLanguage (ISO 19139)

  • language: language [1..1]: ISOLanguage (ISO 19115-3)

  • country: country [0..1]: ISOCountry

  • characterEncoding: characterEncoding [1..1]: ISOCharacterSet

Methods

Public methods

Method new()

Initializes object

Usage

ISOLocale$new(
  xml = NULL,
  id = NULL,
  language = NULL,
  country = NULL,
  characterEncoding = NULL
)

Arguments

  • xml: object of class XMLInternalNode-class

  • id: id

  • language: language

  • country: country

  • characterEncoding: characterEncoding

Method setId()

Set ID

Usage

ISOLocale$setId(id)

Arguments

  • id: id

Method setLanguage()

Set language

Usage

ISOLocale$setLanguage(language)

Arguments

  • language: object of class ISOLanguage or any character among values returned by ISOLanguage$values()

Method setCountry()

Set country

Usage

ISOLocale$setCountry(country)

Arguments

  • country: object of class ISOCountry or any character among values returned by ISOCountry$values() or any other ISO-2 country code

Method setCharacterSet()

Set character set

Usage

ISOLocale$setCharacterSet(charset)

Arguments

  • charset: object of class ISOCharacterSet or any character among values returned by ISOCharacterSet$values()

Method clone()

The objects of this class are cloneable with this method.

Usage

ISOLocale$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.

  • Maintainer: Emmanuel Blondel
  • License: MIT + file LICENSE
  • Last published: 2025-01-29