ISODistribution: ISODistribution

ISODistributionR Documentation

ISODistribution

Description

ISODistribution

ISODistribution

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Distribution

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISODistribution

Public fields

distributionFormat

distributionFormat [0..*]: ISOFormat

distributor

distributor [0..*]: ISODistributor

transferOptions

transferOptions [0..*]: ISODigitalTransferOptions

Methods

Public methods

Inherited methods

Method new()

Initializes object

Usage
ISODistribution$new(xml = NULL)
Arguments
xml

object of class XMLInternalNode-class


Method addFormat()

Adds format

Usage
ISODistribution$addFormat(format)
Arguments
format

format object of class ISOFormat

Returns

TRUE if added, FALSE otherwise


Method delFormat()

Deletes format

Usage
ISODistribution$delFormat(format)
Arguments
format

format object of class ISOFormat

Returns

TRUE if deleted, FALSE otherwise


Method addDistributor()

Adds distributor

Usage
ISODistribution$addDistributor(distributor)
Arguments
distributor

distributor object of class ISODistributor

Returns

TRUE if added, FALSE otherwise


Method delDistributor()

Deletes distributor

Usage
ISODistribution$delDistributor(distributor)
Arguments
distributor

distributor object of class ISODistributor

Returns

TRUE if deleted, FALSE otherwise


Method addDigitalTransferOptions()

Adds digital transfer options

Usage
ISODistribution$addDigitalTransferOptions(options)
Arguments
options

options object of class ISODigitalTransferOptions

Returns

TRUE if added, FALSE otherwise


Method setDigitalTransferOptions()

Sets digital transfer options

Usage
ISODistribution$setDigitalTransferOptions(options)
Arguments
options

options object of class ISODigitalTransferOptions

Returns

TRUE if added, FALSE otherwise


Method delDigitalTransferOptions()

Deletes digital transfer options

Usage
ISODistribution$delDigitalTransferOptions(options)
Arguments
options

options object of class ISODigitalTransferOptions

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage
ISODistribution$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

- ISO 19139 https://schemas.isotc211.org/19139/-/gmd/1.0/gmd/#element_MD_Distribution

- ISO 19115-3 https://schemas.isotc211.org/19115/-3/mrd/1.0/mrd/#element_MD_Distribution

Examples

  md <- ISODistribution$new()
  
  dto <- ISODigitalTransferOptions$new()  
  for(i in 1:3){
   or <- ISOOnlineResource$new()
   or$setLinkage(paste0("http://somelink",i))
   or$setName(paste0("name",i))
   or$setDescription(paste0("description",i))
   or$setProtocol("WWW:LINK-1.0-http--link")
   dto$addOnlineResource(or)
  }
  md$setDigitalTransferOptions(dto)
  
  xml <- md$encode()
  

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