ISODistribution

ISODistribution

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Distribution

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

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

Public fields

distributionFormat

distributionFormat [0..*]: ISOFormat

distributor

distributor [0..*]: ISODistributor

transferOptions

transferOptions [0..*]: ISODigitalTransferOptions

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.

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)
#> Warning: Method 'setDigitalTransferOptions' is deprecated, please use 'addDigitalTransferOptions'!
#> [1] TRUE
  
  xml <- md$encode()
#> [geometa][INFO] Object 'ISODistribution' is VALID according to ISO 19139 XML schemas!