#' ISOProgress
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO status
#' @return Object of \code{\link{R6Class}} for modelling an ISO progress status
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' #possible values
#' values <- ISOProgress$values(labels = TRUE)
#'
#' #pending status
#' pending <- ISOProgress$new(value = "pending")
#'
#' @references
#' ISO 19115:2003 - Geographic information -- Metadata
#' ISO/TS 19115-3:2016 - Geographic information — Metadata — Part 3: XML schema implementation for fundamental concepts
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOProgress<- R6Class("ISOProgress",
inherit = ISOCodeListValue,
private = list(
xmlElement = "MD_ProgressCode",
xmlNamespacePrefix = list(
"19139" = "GMD",
"19115-3" = "MCC"
)
),
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,
setValue = FALSE, addCodeSpaceAttr = FALSE)
}
)
)
ISOProgress$values <- function(labels = FALSE){
return(ISOCodeListValue$values(ISOProgress, labels))
}
#' ISOStatus
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO status
#' @return Object of \code{\link{R6Class}} for modelling an ISO progress status
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' #possible values
#' values <- ISOStatus$values(labels = TRUE)
#'
#' #pending status
#' pending <- ISOStatus$new(value = "pending")
#'
#' @note deprecated - use \link{ISOProgress} instead
#'
#' @references
#' ISO 19115:2003 - Geographic information -- Metadata
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOStatus<- R6Class("ISOStatus",
inherit = ISOCodeListValue,
private = list(
deprecated = TRUE,
xmlElement = "MD_ProgressCode",
xmlNamespacePrefix = list(
"19139" = "GMD",
"19115-3" = "MCC"
)
),
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){
warnings("Class 'ISOStatus' is deprecated, please use 'ISOProgress' instead!")
ISOProgress$new(xml = xml, value = value, description = description)
}
)
)
ISOStatus$values <- function(labels = FALSE){
return(ISOProgress$values(labels = labels))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.