R/ISOEvaluationMethodType.R

Defines functions values

#' ISOEvaluationMethodType
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO EvaluationMethodType
#' @return Object of \code{\link{R6Class}} for modelling an ISO EvaluationMethodType
#' @format \code{\link{R6Class}} object.
#'
#' @field value
#'
#' @section Methods:
#' \describe{
#'  \item{\code{new(xml,value, description)}}{
#'    This method is used to instantiate an ISOEvaluationMethodType
#'  }
#' }
#' 
#' @examples 
#'   #possible values
#'   values <- ISOEvaluationMethodType$values(labels = TRUE)
#'   
#'   #example of EvaluationMethodType
#'   indirect <- ISOEvaluationMethodType$new(value = "indirect")
#'   
#' @references 
#'   ISO 19115:2003 - Geographic information -- Metadata 
#' 
#' @author Emmanuel Blondel <[email protected]@gmail.com>
#'
ISOEvaluationMethodType <- R6Class("ISOEvaluationMethodType",
  inherit = ISOCodeListValue,
  private = list(
    xmlElement = "DQ_EvaluationMethodTypeCode",
    xmlNamespacePrefix = "GMD"
  ),
  public = list(
    initialize = function(xml = NULL, value, description = NULL){
      super$initialize(xml = xml, id = private$xmlElement, value = value,
                       description = description, setValue = FALSE)
    }
  )                        
)

ISOEvaluationMethodType$values <- function(labels = FALSE){
  return(ISOCodeListValue$values(ISOEvaluationMethodType, labels))
}

Try the geometa package in your browser

Any scripts or data that you put into this service are public.

geometa documentation built on Nov. 28, 2017, 5:05 p.m.