ISOProcessStep

ISOProcessStep

Format

R6Class object.

Value

Object of R6Class for modelling an ISO ProcessStep

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOProcessStep

Public fields

description

description: character

rationale

rationale [0..1]: character

dateTime

dateTime [0..1]: POSIXct/POSIXt

processor

processor [0..*]: ISOResponsibleParty

source

source [0..*]: ISOSource

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOProcessStep$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setDescription()

Set description

Usage

ISOProcessStep$setDescription(description, locales = NULL)

Arguments

description

description

locales

list of localized texts. Default is NULL


Method setRationale()

Set rationale

Usage

ISOProcessStep$setRationale(rationale, locales = NULL)

Arguments

rationale

rationale

locales

list of localized texts. Default is NULL


Method setDateTime()

Set date time

Usage

ISOProcessStep$setDateTime(dateTime)

Arguments

dateTime

object of class POSIXct


Method addProcessor()

Adds processor

Usage

ISOProcessStep$addProcessor(processor)

Arguments

processor

object of class ISOResponsibleParty

Returns

TRUE if added, FALSE otherwise


Method delProcessor()

Deletes processor

Usage

ISOProcessStep$delProcessor(processor)

Arguments

processor

object of class ISOResponsibleParty

Returns

TRUE if deleted, FALSE otherwise


Method addSource()

Adds source

Usage

ISOProcessStep$addSource(source)

Arguments

source

object of class ISOSource

Returns

TRUE if added, FALSE otherwise


Method delSource()

Deletes source

Usage

ISOProcessStep$delSource(source)

Arguments

source

object of class ISOSource

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOProcessStep$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  ps <- ISOProcessStep$new()
  ps$setDescription("description")
  ps$setRationale("rationale")
  ps$setDateTime( ISOdate(2015, 1, 1, 23, 59, 59))
  rp <- ISOResponsibleParty$new()
  rp$setIndividualName("someone") #and more responsible party properties..
  ps$addProcessor(rp)
#> [1] TRUE
  xml <- ps$encode()
#> [geometa][WARN] Element '{http://www.isotc211.org/2005/gmd}CI_ResponsibleParty': Missing child element(s). Expected is one of ( {http://www.isotc211.org/2005/gmd}organisationName, {http://www.isotc211.org/2005/gmd}positionName, {http://www.isotc211.org/2005/gmd}contactInfo, {http://www.isotc211.org/2005/gmd}role ) at line 12. 
#> [geometa][WARN] Object 'ISOProcessStep' is INVALID according to ISO 19139 XML schemas!