ISODistribution
ISODistribution
R6Class object.
Object of R6Class for modelling an ISO Distribution
geometa::geometaLogger -> geometa::ISOAbstractObject -> ISODistribution
distributionFormatdistributionFormat [0..*]: ISOFormat
distributordistributor [0..*]: ISODistributor
transferOptionstransferOptions [0..*]: ISODigitalTransferOptions
Inherited methods
geometa::geometaLogger$ERROR()geometa::geometaLogger$INFO()geometa::geometaLogger$WARN()geometa::ISOAbstractObject$addFieldAttrs()geometa::ISOAbstractObject$addListElement()geometa::ISOAbstractObject$checkMetadataStandardCompliance()geometa::ISOAbstractObject$contains()geometa::ISOAbstractObject$createLocalisedProperty()geometa::ISOAbstractObject$decode()geometa::ISOAbstractObject$delListElement()geometa::ISOAbstractObject$encode()geometa::ISOAbstractObject$getClass()geometa::ISOAbstractObject$getClassName()geometa::ISOAbstractObject$getNamespaceDefinition()geometa::ISOAbstractObject$isDocument()geometa::ISOAbstractObject$isFieldInheritedFrom()geometa::ISOAbstractObject$print()geometa::ISOAbstractObject$save()geometa::ISOAbstractObject$setAttr()geometa::ISOAbstractObject$setCodeList()geometa::ISOAbstractObject$setCodeListValue()geometa::ISOAbstractObject$setCodeSpace()geometa::ISOAbstractObject$setHref()geometa::ISOAbstractObject$setId()geometa::ISOAbstractObject$setIsNull()geometa::ISOAbstractObject$setValue()geometa::ISOAbstractObject$stopIfMetadataStandardIsNot()geometa::ISOAbstractObject$validate()geometa::ISOAbstractObject$wrapBaseElement()
new()Initializes object
ISODistribution$new(xml = NULL)xmlobject of class XMLInternalNode-class
addDistributor()Adds distributor
distributordistributor object of class ISODistributor
delDistributor()Deletes distributor
distributordistributor object of class ISODistributor
addDigitalTransferOptions()Adds digital transfer options
optionsoptions object of class ISODigitalTransferOptions
setDigitalTransferOptions()Sets digital transfer options
optionsoptions object of class ISODigitalTransferOptions
delDigitalTransferOptions()Deletes digital transfer options
optionsoptions object of class ISODigitalTransferOptions
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!