-
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.
#187 add AbstractSimpleComponent + test geometa coverage with SWE
- Loading branch information
Showing
6 changed files
with
73 additions
and
5 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,34 @@ | ||
#' SWEAbstractSimpleComponent | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO SWE | ||
#' @return Object of \code{\link{R6Class}} for modelling an SWS Abstract simple component | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' OGC Geography Markup Language. https://www.ogc.org/standards/swecommon | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
SWEAbstractSimpleComponent <- R6Class("SWEAbstractSimpleComponent", | ||
inherit = SWEAbstractDataComponent, | ||
private = list( | ||
xmlElement = "AbstractSimpleComponent", | ||
xmlNamespacePrefix = "SWE" | ||
), | ||
public = list( | ||
|
||
#'@description Initializes an object of class \link{SWEAbstractSimpleComponent} | ||
#'@param xml object of class \link{XMLInternalNode-class} from \pkg{XML} | ||
#'@param element element | ||
#'@param attrs attrs | ||
#'@param defaults defaults | ||
#'@param wrap wrap | ||
initialize = function(xml = NULL, element = NULL, attrs = list(), defaults = list(), wrap = TRUE){ | ||
if(is.null(element)) element <- private$xmlElement | ||
super$initialize(xml, element = element, attrs = attrs, defaults = defaults, wrap = wrap) | ||
} | ||
) | ||
) |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.