ISOLocale: ISOLocale

ISOLocaleR Documentation

ISOLocale

Description

ISOLocale

ISOLocale

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Locale

Super classes

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

Public fields

languageCode

languageCode [1..1]: ISOLanguage

country

country [0..1]: ISOCountry

characterEncoding

characterEncoding [1..1]: ISOCharacterSet

Methods

Public methods

Inherited methods

Method new()

Initializes object

Usage
ISOLocale$new(
  xml = NULL,
  id = NULL,
  language = NULL,
  country = NULL,
  encoding = NULL
)
Arguments
xml

object of class XMLInternalNode-class

id

id

language

language

country

country

encoding

encoding


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.

Author(s)

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

ISO 19115:2003 - Geographic information – Metadata

Examples

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

eblondel/geometa documentation built on Oct. 10, 2024, 4:46 p.m.