# OpenSilex API
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 1.0.0-rc+2
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' CSVURINotFoundError Class
#'
#' @field rowIndex
#' @field colIndex
#' @field header
#' @field value
#' @field rdfType
#' @field objectURI
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
CSVURINotFoundError <- R6::R6Class(
'CSVURINotFoundError',
public = list(
`rowIndex` = NULL,
`colIndex` = NULL,
`header` = NULL,
`value` = NULL,
`rdfType` = NULL,
`objectURI` = NULL,
initialize = function(`rowIndex`, `colIndex`, `header`, `value`, `rdfType`, `objectURI`){
if (!missing(`rowIndex`)) {
stopifnot(is.numeric(`rowIndex`), length(`rowIndex`) == 1)
self$`rowIndex` <- `rowIndex`
}
if (!missing(`colIndex`)) {
stopifnot(is.numeric(`colIndex`), length(`colIndex`) == 1)
self$`colIndex` <- `colIndex`
}
if (!missing(`header`)) {
stopifnot(is.character(`header`), length(`header`) == 1)
self$`header` <- `header`
}
if (!missing(`value`)) {
stopifnot(is.character(`value`), length(`value`) == 1)
self$`value` <- `value`
}
if (!missing(`rdfType`)) {
stopifnot(is.character(`rdfType`), length(`rdfType`) == 1)
self$`rdfType` <- `rdfType`
}
if (!missing(`objectURI`)) {
stopifnot(is.character(`objectURI`), length(`objectURI`) == 1)
self$`objectURI` <- `objectURI`
}
},
toJSON = function() {
CSVURINotFoundErrorObject <- list()
if (!is.null(self$`rowIndex`)) {
CSVURINotFoundErrorObject[['rowIndex']] <- self$`rowIndex`
}
if (!is.null(self$`colIndex`)) {
CSVURINotFoundErrorObject[['colIndex']] <- self$`colIndex`
}
if (!is.null(self$`header`)) {
CSVURINotFoundErrorObject[['header']] <- self$`header`
}
if (!is.null(self$`value`)) {
CSVURINotFoundErrorObject[['value']] <- self$`value`
}
if (!is.null(self$`rdfType`)) {
CSVURINotFoundErrorObject[['rdfType']] <- self$`rdfType`
}
if (!is.null(self$`objectURI`)) {
CSVURINotFoundErrorObject[['objectURI']] <- self$`objectURI`
}
CSVURINotFoundErrorObject
},
fromJSON = function(CSVURINotFoundErrorJson) {
CSVURINotFoundErrorObject <- jsonlite::fromJSON(CSVURINotFoundErrorJson)
if (!is.null(CSVURINotFoundErrorObject$`rowIndex`)) {
self$`rowIndex` <- CSVURINotFoundErrorObject$`rowIndex`
}
if (!is.null(CSVURINotFoundErrorObject$`colIndex`)) {
self$`colIndex` <- CSVURINotFoundErrorObject$`colIndex`
}
if (!is.null(CSVURINotFoundErrorObject$`header`)) {
self$`header` <- CSVURINotFoundErrorObject$`header`
}
if (!is.null(CSVURINotFoundErrorObject$`value`)) {
self$`value` <- CSVURINotFoundErrorObject$`value`
}
if (!is.null(CSVURINotFoundErrorObject$`rdfType`)) {
self$`rdfType` <- CSVURINotFoundErrorObject$`rdfType`
}
if (!is.null(CSVURINotFoundErrorObject$`objectURI`)) {
self$`objectURI` <- CSVURINotFoundErrorObject$`objectURI`
}
},
fromJSONObject = function(CSVURINotFoundErrorObject) {
if (!is.null(CSVURINotFoundErrorObject$`rowIndex`)) {
self$`rowIndex` <- CSVURINotFoundErrorObject$`rowIndex`
}
if (!is.null(CSVURINotFoundErrorObject$`colIndex`)) {
self$`colIndex` <- CSVURINotFoundErrorObject$`colIndex`
}
if (!is.null(CSVURINotFoundErrorObject$`header`)) {
self$`header` <- CSVURINotFoundErrorObject$`header`
}
if (!is.null(CSVURINotFoundErrorObject$`value`)) {
self$`value` <- CSVURINotFoundErrorObject$`value`
}
if (!is.null(CSVURINotFoundErrorObject$`rdfType`)) {
self$`rdfType` <- CSVURINotFoundErrorObject$`rdfType`
}
if (!is.null(CSVURINotFoundErrorObject$`objectURI`)) {
self$`objectURI` <- CSVURINotFoundErrorObject$`objectURI`
}
},
toJSONString = function() {
sprintf(
'{
"rowIndex": %s,
"colIndex": %s,
"header": %s,
"value": %s,
"rdfType": %s,
"objectURI": %s
}',
ifelse(is.null(self$`rowIndex`), "null",as.numeric(jsonlite::toJSON(self$`rowIndex`,auto_unbox=TRUE, null = "null"))),
ifelse(is.null(self$`colIndex`), "null",as.numeric(jsonlite::toJSON(self$`colIndex`,auto_unbox=TRUE, null = "null"))),
ifelse(is.null(self$`header`), "null",jsonlite::toJSON(self$`header`,auto_unbox=TRUE, null = "null")),
ifelse(is.null(self$`value`), "null",jsonlite::toJSON(self$`value`,auto_unbox=TRUE, null = "null")),
ifelse(is.null(self$`rdfType`), "null",jsonlite::toJSON(self$`rdfType`,auto_unbox=TRUE, null = "null")),
ifelse(is.null(self$`objectURI`), "null",jsonlite::toJSON(self$`objectURI`,auto_unbox=TRUE, null = "null"))
)
},
fromJSONString = function(CSVURINotFoundErrorJson) {
CSVURINotFoundErrorObject <- jsonlite::fromJSON(CSVURINotFoundErrorJson)
self$`rowIndex` <- CSVURINotFoundErrorObject$`rowIndex`
self$`colIndex` <- CSVURINotFoundErrorObject$`colIndex`
self$`header` <- CSVURINotFoundErrorObject$`header`
self$`value` <- CSVURINotFoundErrorObject$`value`
self$`rdfType` <- CSVURINotFoundErrorObject$`rdfType`
self$`objectURI` <- CSVURINotFoundErrorObject$`objectURI`
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.