ISOMedium

ISOMedium

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Citation

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOMedium

Public fields

name

name

density

density

densityUnits

density units

volumes

volumes

mediumFormat

medium format

mediumNote

medium note

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOMedium$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setName()

Set name

Usage

ISOMedium$setName(name)

Arguments

name

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


Method addDensity()

Adds density

Usage

ISOMedium$addDensity(density)

Arguments

density

object of class numeric

Returns

TRUE if added, FALSE otherwise


Method delDensity()

Deletes density

Usage

ISOMedium$delDensity(density)

Arguments

density

object of class numeric

Returns

TRUE if deleted, FALSE otherwise


Method setDensityUnits()

Set density units

Usage

ISOMedium$setDensityUnits(densityUnits)

Arguments

densityUnits

densityUnits


Method setVolumes()

Set volumes

Usage

ISOMedium$setVolumes(volumes)

Arguments

volumes

object of class integer


Method addMediumFormat()

Adds medium format

Usage

ISOMedium$addMediumFormat(mediumFormat)

Arguments

mediumFormat

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

Returns

TRUE if added, FALSE otherwise


Method delMediumFormat()

Deletes medium format

Usage

ISOMedium$delMediumFormat(mediumFormat)

Arguments

mediumFormat

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

Returns

TRUE if deleted, FALSE otherwise


Method setMediumNote()

Set medium note

Usage

ISOMedium$setMediumNote(mediumNote, locales = NULL)

Arguments

mediumNote

medium note

locales

list of localized notes. Default is NULL


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOMedium$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

 md <- ISOMedium$new()
 md$setName("satellite")
 md$addDensity(1.0)
#> [1] TRUE
 md$setDensityUnits("string")
 md$setVolumes(1L)
 md$addMediumFormat("tar")
#> [1] TRUE
 md$setMediumNote("some note")
 xml <- md$encode()
#> [geometa][INFO] Object 'ISOMedium' is VALID according to ISO 19139 XML schemas!