-
Notifications
You must be signed in to change notification settings - Fork 5
/
GMLAbstractGeneralOperationParameter.R
42 lines (39 loc) · 1.42 KB
/
GMLAbstractGeneralOperationParameter.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#' GMLAbstractGeneralOperationParameter
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML abstract general operation parameter
#' @return Object of \code{\link{R6Class}} for modelling an GMLAbstractGeneralOperationParameter
#' @format \code{\link{R6Class}} object.
#'
#' @references
#' ISO 19136:2007 Geographic Information -- Geographic Markup Language.
#' http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554
#'
#' OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
GMLAbstractGeneralOperationParameter <- R6Class("GMLAbstractGeneralOperationParameter",
inherit = GMLDefinition,
private = list(
xmlElement = "AbstractGeneralOperationParameter",
xmlNamespacePrefix = "GML"
),
public = list(
#'@field minimumOccurs minimumOccurs [0..1]: integer
minimumOccurs = NULL,
#'@description Set minimum occurs
#'@param minimumOccurs object of class \link{integer}
setMinimumOccurs = function(minimumOccurs){
if(!is(minimumOccurs, "integer")){
minimumOccurs <- as.integer(minimumOccurs)
if(is.na(minimumOccurs)){
stop("The argument value should be an object of class 'integer'")
}
}
self$minimumOccurs <- GMLElement$create("minimumOccurs", value = minimumOccurs)
}
)
)