ISODistribution {geometa} | R 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
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
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$validate()
geometa::ISOAbstractObject$wrapBaseElement()
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 19115:2003 - Geographic information – Metadata
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()