-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#181 M3, M5, test new standard codelist handling, applied to Telephon…
…eType class
- Loading branch information
Showing
6 changed files
with
212 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#' ISOTelephoneType | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO telephone type | ||
#' @return Object of \code{\link{R6Class}} for modelling an ISO TelephoneType | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @examples | ||
#' #possible values | ||
#' values <- ISOTelephoneType$values(labels = TRUE) | ||
#' | ||
#' voice <- ISOTelephoneType$new(value = "voice") | ||
#' | ||
#' @references | ||
#' ISO 19115-3 - Geographic information -- Metadata | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
ISOTelephoneType <- R6Class("ISOTelephoneType", | ||
inherit = ISOCodeListValue, | ||
private = list( | ||
xmlElement = list( | ||
"19115-3" = "CI_TelephoneTypeCode" | ||
), | ||
xmlNamespacePrefix = list( | ||
"19115-3" = "CIT" | ||
) | ||
), | ||
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, | ||
addCodeListAttrs = FALSE) | ||
} | ||
) | ||
) | ||
|
||
ISOTelephoneType$values <- function(labels = FALSE){ | ||
return(ISOCodeListValue$values(ISOTelephoneType, labels)) | ||
} |
Oops, something went wrong.