ISOLocale

ISOLocale

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Locale

References

ISO 19115:2003 - Geographic information – Metadata

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

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

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.

Examples

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