R/ISOMediumName.R

Defines functions values

#' ISOMediumName
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO medium name
#' @return Object of \code{\link{R6Class}} for modelling an ISOMediumName
#' @format \code{\link{R6Class}} object.
#' 
#' @examples
#'   #possible values
#'   values <- ISOMediumName$values(labels = TRUE)
#'   
#'   #MediumName
#'   MediumName <- ISOMediumName$new(value = "satellite")
#' 
#' @references 
#'   ISO 19115:2003 - Geographic information -- Metadata
#' 
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOMediumName <- R6Class("ISOMediumName",
inherit = ISOCodeListValue,
private = list(
  xmlElement = "MD_MediumNameCode",
  xmlNamespacePrefix = "GMD"
),
public = list(
  
  #'@description Initializes object
  #'@param xml object of class \link{XMLInternalNode-class}  
  #'@param value value
  #'@param description description
  initialize = function(xml = NULL, value, description = NULL){
    super$initialize(xml = xml, id = private$xmlElement, value = value, description = description,
                    addCodeSpaceAttr = FALSE)
 }
)                        
)

ISOMediumName$values <- function(labels = FALSE){
  return(ISOCodeListValue$values(ISOMediumName, labels))
}
eblondel/geometa documentation built on Sept. 8, 2023, 8:19 p.m.